結果
問題 |
No.722 100×100=1000
|
ユーザー |
![]() |
提出日時 | 2020-03-31 00:03:59 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 387 bytes |
コンパイル時間 | 87 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-06-23 07:31:35 |
合計ジャッジ時間 | 1,929 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 24 RE * 3 |
ソースコード
a,b = map(int,input().split()) def calc(a,b): if abs(a*b) > 99999999: return 'E' else: return a*b if a-(a//abs(a))*int(str(abs(a))[0])*(10**(len(str(abs(a)))-1)) == 0 and b-(b//abs(b))*int(str(abs(b))[0])*(10**(len(str(abs(b)))-1)) == 0: if abs(a) >= 100 and abs(b) >= 100: print(a*b//10) else: print(calc(a,b)) else: print(calc(a,b))