m2tkl / pycoder-tools Goto Github PK
View Code? Open in Web Editor NEWhandy tools for atcoder users with python
handy tools for atcoder users with python
# 期待される出力
a b
# ただしaは誤差が10^-6以下であること
上記のような一部のみ誤差判定を行うようなケースに対応した判定処理がないため、現状提出ができない。
#12 にて正誤判定を無視して提出するオプションの追加を検討しているが、判定自体を正しく行えるように判定処理を追加する
-D
オプションでデバッグできるようにする
file pathやdirectory pathが散らばっているので一括管理するモジュールを作成する
あるコンテストを堺にurlの形式が変化している(末尾が数字 => アルファベット)ため、サンプルケースが取得できない回がある。(現状はアルファベットのほうしか取得できません)
abc, arc, agc以外のコンテストへ対応する
https://atcoder.jp/contests/abc069/tasks/arc080_b
以下の最後の部分がサンプルケースの入出力として不必要であるが取得してしまっている。
エラー内容は下記の通り。
Traceback (most recent call last):
File "/Users/kenmatsui/git/github.com/kenchalros/pycoder-tools/atcode", line 42, in <module>
main()
File "/Users/kenmatsui/git/github.com/kenchalros/pycoder-tools/atcode", line 36, in main
tm.fetch_sample_cases()
File "/Users/kenmatsui/git/github.com/kenchalros/pycoder-tools/libpycoder/testmake.py", line 34, in fetch_sample_cases
res.text)
File "/Users/kenmatsui/git/github.com/kenchalros/pycoder-tools/libpycoder/atscraper.py", line 70, in extract_sample_test_cases_from_prob_page
if sec.find('h3').get_text() == '問題文':
AttributeError: 'NoneType' object has no attribute 'get_text'
出力の形式とその正誤判定によっては下記のように現状提出できない(OKと判定されないと提出しないようになっている)問題があるため、正解と判定されなくても強制的に提出するオプションをつける。
出力形式: a b
ただし、aは誤差 10^-9以下であること
languageアップデートに伴うsubmit周りのアップデートが必要.
urlやlanguage-idが変わっているかもしれないので調べる.
abc057のd問題で、日本語のサンプルケースは4つ、英語のサンプルケースは3つであることから、(日本語ケース + 英語ケース)/ 2
という式では適切に取得できないパターンあり。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.