Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
95 commits
Select commit Hold shift + click to select a range
5df058f
default code styleを変更
chaemon Aug 19, 2019
93c5968
Merge remote-tracking branch 'upstream/master'
chaemon Aug 20, 2019
9371251
add default_code_style
chaemon Aug 20, 2019
aacbe3f
add default code style
chaemon Aug 20, 2019
9dfb445
add cs
chaemon Aug 20, 2019
707fed9
remove nim import
chaemon Aug 20, 2019
cea942b
Merge branch 'chaemon-cs'
chaemon Aug 20, 2019
7ee172e
add C#
chaemon Aug 20, 2019
eb0b4ed
add C#
chaemon Aug 20, 2019
c43f208
add C#
chaemon Aug 25, 2019
d329424
C#用にmono compilerを追加
chaemon Aug 25, 2019
6cad673
modify cs.py
chaemon Aug 25, 2019
9e95f84
NIMをそのまま流用してたとこがあったので、
chaemon Aug 26, 2019
73df5c8
C#のスペルミスを修正
chaemon Aug 26, 2019
f6dae48
resolve conflict
chaemon Sep 1, 2019
34fb502
resolve conflict
chaemon Sep 1, 2019
e7c4c64
Merge branch 'master' of https://github.com/kyuridenamida/atcoder-tools
chaemon Sep 1, 2019
71973c8
小数における誤差ジャッジに対応
chaemon Sep 23, 2019
549d40f
Merge remote-tracking branch 'kyuri/master'
chaemon Sep 23, 2019
53e8d65
constatns_prediction.pyのdecimalを大文字に, 10^9+7を削除
chaemon Sep 23, 2019
febcb0b
細かな表記を修正
chaemon Sep 23, 2019
b09cc4d
指摘事項の容易に反映できるところを反映
chaemon Sep 23, 2019
addf6d2
JudgeTypeをEnumに。Judge classをNormalJudge, DecimalJudgeに分離
chaemon Sep 28, 2019
74f15b2
flake8のエラーを修正
chaemon Sep 28, 2019
60bb42f
decimal caseに対応するように修正
chaemon Sep 29, 2019
100fab9
tester.pyの表記を修正
chaemon Sep 29, 2019
9990601
Decimal Testを追加。ErrorTypeをEnumに
chaemon Sep 30, 2019
475006e
decimal testの名称変更、judgetypeをoutput, expectedに統一
chaemon Oct 1, 2019
fe8d148
テスト
chaemon Oct 4, 2019
a63dbe4
ディレクトリ名を変更
chaemon Oct 4, 2019
5a7b827
Merge remote-tracking branch 'kyuri/master' into kyuri
chaemon Oct 6, 2019
91e5589
modified tester
chaemon Oct 6, 2019
ddc3e18
1.1.6
chaemon Oct 6, 2019
41eb8e0
mergeの失敗を修正
chaemon Oct 6, 2019
e782514
interactiveを追加
chaemon Oct 12, 2019
a2d34a7
interactiveを変更
chaemon Oct 13, 2019
78dade4
stderrを出力するように変更
chaemon Oct 13, 2019
cf761d1
MultiSolutionJudgeを追加。オプションsetを追加
chaemon Oct 14, 2019
08cd4c2
judgetype_setter.pyが追加されていなかったので追加
chaemon Oct 14, 2019
dccbc25
testが通るように変更
chaemon Oct 14, 2019
0822e30
analyze_problem_contentをget_problem_contentに変更しproblem_contentに移動
chaemon Oct 14, 2019
91c09ce
flake8が通らなかったので修正
chaemon Oct 14, 2019
3a3a8ec
インタラクティブと複数解のテストを追加
chaemon Oct 14, 2019
5ac9a86
不要なファイルの削除
chaemon Oct 14, 2019
3528dd7
インタラクティブと複数解のテストを/tmpでやるように修正
chaemon Oct 15, 2019
47d0468
コンパイルしたファイルの実行権限を755にするように変更
chaemon Oct 20, 2019
4d5cadc
テスト用
chaemon Oct 20, 2019
c9e2b9b
/tmp/test_run_single_test_multisolutionのパーミッションを777にする
chaemon Oct 20, 2019
2125ca5
テスト用にtravisを一時的に変更
chaemon Oct 20, 2019
ae79d82
testerのg++オプションに-std=c++14を追加
chaemon Oct 20, 2019
9981d05
コンパイルエラーを修正
chaemon Oct 20, 2019
ab1f70f
subprocessのtextをはずす
chaemon Oct 20, 2019
ac1e470
interactiveのテストを変更
chaemon Oct 20, 2019
731f28c
interactiveの英語版も追加
chaemon Oct 20, 2019
32d15f3
judge_statusのロジックを変更
chaemon Oct 20, 2019
18871d2
judge_statusをspecial_judge_statusに変更
chaemon Oct 20, 2019
9568158
judge_typeのverifyでMultiSolutionとInteractiveについてNotImplementedErrorを出す…
chaemon Oct 20, 2019
46669f9
run_programに例外Judge_ERRORを追加
chaemon Oct 20, 2019
b042a57
run_programを整形
chaemon Oct 20, 2019
432c9da
default judge templateを追加
chaemon Oct 21, 2019
af75e49
judge_templateを追加
chaemon Oct 21, 2019
c442e53
Merge remote-tracking branch 'upstream/master' into kyuri
chaemon Nov 1, 2019
1541328
compilerを追加
chaemon Nov 2, 2019
21eb4c4
compilerを追加
chaemon Nov 2, 2019
616a85d
compilerの標記を整形
chaemon Nov 2, 2019
dba141b
compilerの変更
chaemon Nov 4, 2019
42e11d6
flake8, pep8を通るように変更
chaemon Nov 4, 2019
d24d7e7
compileコマンド実行時の不具合を修正
chaemon Nov 4, 2019
2b112c6
コンパイルエラー時に終了するように変更
chaemon Nov 4, 2019
5fc4ba1
コンパイルエラーで終了するように変更
chaemon Nov 4, 2019
181caa4
add test_compiler_and_tester
chaemon Nov 6, 2019
ddde5c5
delete executable file
chaemon Nov 6, 2019
21049e3
atcoder-tools set normal --lang LANGでコード生成もするように変更しました
chaemon Nov 9, 2019
988a1bd
judgetype_setterがjudge_type以外もsetできるようになってるので、setterに変更
chaemon Nov 9, 2019
1bb1a48
コンパイルテストにおけるmain.cppのコードをシンプルに
chaemon Nov 9, 2019
4c3ff24
TLEやREのときにexec_res.outputやstderrがNoneやbytes型になってエラーになる問題を解消
chaemon Nov 15, 2019
79888bb
デバッグ用のPrint文が残っていたので削除
chaemon Nov 16, 2019
380b8b8
nimのデフォルトテンプレートを修正
chaemon Nov 16, 2019
3d857fe
testを通るように修正
chaemon Nov 20, 2019
4062552
言語ごとに設定を変更できるように(compilerなどの利便性のため)
chaemon Nov 20, 2019
9b79cba
decimal judgeの際にdecimal以外のものが入っていたときのエラーを修正
chaemon Nov 28, 2019
14022f5
pep8, flake8のエラーを修正
chaemon Nov 28, 2019
9623f4a
簡単な表記ミスなどを修正
chaemon Dec 2, 2019
75c452e
decimalのmixedを追加
chaemon Dec 7, 2019
306ed4d
test_testerを修正
chaemon Dec 7, 2019
8b07c4f
testerを指摘どおりに修正
chaemon Dec 7, 2019
f3677cd
compilerの関数を変更
chaemon Dec 7, 2019
0a17632
testerのcompile_typeを追加
chaemon Dec 7, 2019
6c8f9d1
setterに-dオプションを追加、multisolution_testのmetadataを最初normalにしてsetterでmulti…
chaemon Dec 7, 2019
9ded6b3
pep8, flake8のエラーを修正
chaemon Dec 7, 2019
206eb57
test_testerを修正
chaemon Dec 7, 2019
bc5637e
test coverageを上げる
chaemon Dec 7, 2019
55f389d
compileの設定を変更。なぜかrustのテストで落ちるようになってしまったので修正
chaemon Dec 7, 2019
9e81f1d
.atcodertools.tomlでcompile_commandが指定できていなかったので修正
chaemon Dec 7, 2019
d9a6228
指摘事項を反映
chaemon Dec 7, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
constatns_prediction.pyのdecimalを大文字に, 10^9+7を削除
  • Loading branch information
chaemon committed Sep 23, 2019
commit 53e8d652da057a19788b0200df0e784c78f0d28e
6 changes: 3 additions & 3 deletions atcodertools/constprediction/constants_prediction.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def __init__(self, cands):
self.cands = cands


class MultipledecimalCandidatesError(Exception):
class MultipleDecimalCandidatesError(Exception):

def __init__(self, cands):
self.cands = cands
Expand Down Expand Up @@ -109,7 +109,7 @@ def predict_yes_no(html: str) -> Tuple[Optional[str], Optional[str]]:
def predict_judge_type(html: str) -> Optional[JudgeType]:
def normalize(sentence):
return sentence.replace('\\', '').replace("{", "").replace("}", "").replace(",", "").replace(" ", "").replace(
"10^9+7", "1000000007").lower().strip()
"1000000007").lower().strip()

soup = BeautifulSoup(html, "html.parser")
sentences = soup.get_text().split("\n")
Expand Down Expand Up @@ -142,7 +142,7 @@ def normalize(sentence):
if len(decimal_val_cands) == 1:
return JudgeType("decimal", is_absolute, is_relative, 10.0**(int(list(decimal_val_cands)[0])))

raise MultipledecimalCandidatesError(decimal_cands)
raise MultipleDecimalCandidatesError(decimal_cands)

return JudgeType("normal")

Expand Down