結果
問題 | No.193 筒の数式 |
ユーザー |
|
提出日時 | 2015-04-26 23:44:12 |
言語 | Python2 (2.7.18) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 227 bytes |
コンパイル時間 | 167 ms |
コンパイル使用メモリ | 7,200 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-05 02:55:23 |
合計ジャッジ時間 | 1,056 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 15 WA * 1 |
ソースコード
#!/usr/bin/python ok = lambda x: (x[0] not in '+-') and (x[-1] not in '+-') s = raw_input() hamark = -float('inf') for i in xrange(len(s)): x = s[i:] + s[:i] if ok(x): hamark = max(hamark, eval(x)) print hamark