結果
| 問題 |
No.193 筒の数式
|
| コンテスト | |
| ユーザー |
kazuppa
|
| 提出日時 | 2025-05-01 08:55:46 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 313 bytes |
| コンパイル時間 | 587 ms |
| コンパイル使用メモリ | 12,032 KB |
| 実行使用メモリ | 11,520 KB |
| 最終ジャッジ日時 | 2025-05-01 08:55:50 |
| 合計ジャッジ時間 | 2,567 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 9 WA * 5 RE * 2 |
ソースコード
s = input()
n = len(s)
ans = 0
for _ in range(n):
if (
ord("0") <= ord(s[0])
and ord(s[0]) <= ord("9")
and ord("0") <= ord(s[n - 1])
and ord(s[n - 1]) <= ord("9")
):
ans = max(ans, eval(s))
s += s[0]
s = s[1:]
# print(s)
print(ans)
# print(eval("11+"))
kazuppa