結果
| 問題 |
No.722 100×100=1000
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-10-09 15:02:39 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 270 bytes |
| コンパイル時間 | 162 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 17,572 KB |
| 最終ジャッジ日時 | 2024-10-12 11:13:41 |
| 合計ジャッジ時間 | 4,313 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 WA * 1 |
| other | AC * 9 TLE * 1 -- * 17 |
ソースコード
def f(n):
c=0
while n%10==0:
c+=1
n//=10
return c
a,b=map(int,input().split())
c,d=f(a),f(b)
e,f=a//(10**c),b//(10**d)
if 1<=e<=9 and 1<=f<=9 and c>=2 and d>=2:
print(a*b//10)
else:
res=a*b
if abs(res)<10**8:
print(res)
else:
print("E")