結果
| 問題 |
No.193 筒の数式
|
| コンテスト | |
| ユーザー |
sasa8uyauya
|
| 提出日時 | 2024-12-01 08:46:58 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 235 bytes |
| コンパイル時間 | 324 ms |
| コンパイル使用メモリ | 82,292 KB |
| 実行使用メモリ | 66,956 KB |
| 最終ジャッジ日時 | 2024-12-01 08:47:01 |
| 合計ジャッジ時間 | 2,208 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 16 |
ソースコード
s=input() n=len(s) s=s+s a=-10**10 for i in range(n): if (s[i] not in "+-") and (s[i+n-1] not in "+-"): q=[""] for c in s[i:i+n]: if c in "+-": q+=[""] if c!="+": q[-1]+=[c] a=max(a,sum(int(v) for v in q)) print(a)
sasa8uyauya