結果
問題 | No.193 筒の数式 |
ユーザー | taba |
提出日時 | 2016-04-16 21:49:17 |
言語 | Python2 (2.7.18) |
結果 |
WA
|
実行時間 | - |
コード長 | 342 bytes |
コンパイル時間 | 45 ms |
コンパイル使用メモリ | 6,944 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-04-15 02:12:57 |
合計ジャッジ時間 | 834 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
ソースコード
s=raw_input() m=-19**19 for i in range(len(s)): t=list(s[i:]+s[:i]) for j in range(len(t)-3,-1,-1): if t[j].isdigit()==False and t[j+1]=="0" and t[j+2].isdigit(): t.pop(j+1) while t[1].isdigit() and t[0]=="0": t.pop(0) t="".join(t) print t,s[i:]+s[:i],s[:i],s[i:] if t[0].isdigit() and t[-1].isdigit(): m=max(m,eval(t)) print m