結果

問題 No.193 筒の数式
ユーザー lloyzlloyz
提出日時 2023-04-26 00:11:39
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 268 bytes
コンパイル時間 176 ms
コンパイル使用メモリ 82,324 KB
実行使用メモリ 67,296 KB
最終ジャッジ日時 2024-04-27 08:14:42
合計ジャッジ時間 2,108 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 AC 50 ms
54,320 KB
testcase_03 AC 45 ms
54,420 KB
testcase_04 AC 44 ms
53,620 KB
testcase_05 AC 45 ms
53,604 KB
testcase_06 AC 46 ms
54,540 KB
testcase_07 AC 47 ms
54,140 KB
testcase_08 AC 46 ms
53,824 KB
testcase_09 AC 45 ms
54,220 KB
testcase_10 AC 50 ms
53,824 KB
testcase_11 AC 50 ms
54,620 KB
testcase_12 AC 46 ms
55,220 KB
testcase_13 AC 46 ms
54,544 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import deque

Que = deque(list(input()))

n = len(Que)
ans = 0
for _ in range(n):
    s = ''.join(Que)
    if s[0] not in ['-', '+'] and s[-1] not in ['-', '+']:
        ans = max(ans, eval(s))
    temp = Que.pop()
    Que.appendleft(temp)
print(ans)
0