結果
| 問題 |
No.722 100×100=1000
|
| コンテスト | |
| ユーザー |
bellangeldindon
|
| 提出日時 | 2019-05-21 14:59:53 |
| 言語 | Python2 (2.7.18) |
| 結果 |
AC
|
| 実行時間 | 13 ms / 2,000 ms |
| コード長 | 445 bytes |
| コンパイル時間 | 216 ms |
| コンパイル使用メモリ | 7,040 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2024-12-29 19:44:49 |
| 合計ジャッジ時間 | 1,652 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 27 |
ソースコード
def ax10n(s): if s == '0': return False if s[0] == '-': if len(s) < 4: return False for i in range(2, len(s)): if s[i] != '0': return False else: if len(s) < 3: return False for i in range(1, len(s)): if s[i] != '0': return False return True A, B = raw_input().split() if ax10n(A) and ax10n(B): ans10 = int(A)*int(B) ans = ans10/10 print ans else: ans = int(A)*int(B) if len(str(abs(ans))) > 8: print 'E' else: print ans
bellangeldindon