Git Product home page Git Product logo

pycoder-tools's People

Contributors

m2tkl avatar

Watchers

 avatar

pycoder-tools's Issues

判定処理の種類を増やす

# 期待される出力
a b

# ただしaは誤差が10^-6以下であること

上記のような一部のみ誤差判定を行うようなケースに対応した判定処理がないため、現状提出ができない。
#12 にて正誤判定を無視して提出するオプションの追加を検討しているが、判定自体を正しく行えるように判定処理を追加する

デバッグオプションの追加

-Dオプションでデバッグできるようにする

  • 実行するテストケースの選択
  • 出力のチェックはせずに入力と期待される出力の表示、printの表示を行う

サンプルケースの取得ができないコンテストへの対応

あるコンテストを堺にurlの形式が変化している(末尾が数字 => アルファベット)ため、サンプルケースが取得できない回がある。(現状はアルファベットのほうしか取得できません)

  • abc => abc020以降はOK 以前はNG
  • arc => arc035以降はOK 以前はNG

arc002のテストケース取得に失敗

エラー内容は下記の通り。

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以下であること

submit処理のアップデート

languageアップデートに伴うsubmit周りのアップデートが必要.
urlやlanguage-idが変わっているかもしれないので調べる.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.