結果
問題 |
No.722 100×100=1000
|
ユーザー |
![]() |
提出日時 | 2018-08-09 10:40:35 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 518 bytes |
コンパイル時間 | 79 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-10-12 10:53:20 |
合計ジャッジ時間 | 1,866 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 2 |
other | AC * 15 WA * 12 |
ソースコード
import re x = input().split() def true_or_false (lst): regex = r"[1-9]" pattern = re.compile(regex) for ls in lst: if (ls[0]) == '-': if pattern.match(ls[2:]): return True else: if pattern.match(ls[1:]): return True return False if true_or_false(x): ans = int(x[0]) * int(x[1]) if -99999999 <= ans <= 99999999: print(ans) else: print("E") else: print(int(x[0]) * int(x[1]) / 10)