結果
問題 | No.193 筒の数式 |
ユーザー | 👑 yumechi |
提出日時 | 2015-04-26 22:56:31 |
言語 | Python3 (3.11.6 + numpy 1.26.0 + scipy 1.11.3) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 426 bytes |
コンパイル時間 | 245 ms |
コンパイル使用メモリ | 10,684 KB |
実行使用メモリ | 7,964 KB |
最終ジャッジ日時 | 2023-09-18 12:22:02 |
合計ジャッジ時間 | 1,497 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge12 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | AC | 15 ms
7,780 KB |
testcase_03 | AC | 16 ms
7,776 KB |
testcase_04 | AC | 16 ms
7,824 KB |
testcase_05 | AC | 15 ms
7,768 KB |
testcase_06 | AC | 16 ms
7,852 KB |
testcase_07 | AC | 16 ms
7,904 KB |
testcase_08 | AC | 16 ms
7,764 KB |
testcase_09 | AC | 16 ms
7,832 KB |
testcase_10 | AC | 16 ms
7,780 KB |
testcase_11 | AC | 16 ms
7,832 KB |
testcase_12 | AC | 16 ms
7,816 KB |
testcase_13 | AC | 16 ms
7,776 KB |
testcase_14 | AC | 16 ms
7,812 KB |
testcase_15 | AC | 15 ms
7,964 KB |
testcase_16 | AC | 16 ms
7,828 KB |
testcase_17 | AC | 15 ms
7,820 KB |
testcase_18 | AC | 16 ms
7,820 KB |
ソースコード
S = input() maxnum = -9999999999999999999999999 length = len(S) ckecknum = lambda x: not (x == "+" or x == "-") for i in range(length): line = S[i:length] + S[0:i] # frist and end check first = line[0] end = line[length - 1] if not ckecknum(first) or not ckecknum(end): line = "" continue try: maxnum = max(maxnum, eval(line)) except: pass print(maxnum)