結果
| 問題 |
No.722 100×100=1000
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-10-09 15:03:50 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 289 bytes |
| コンパイル時間 | 79 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-10-12 11:13:37 |
| 合計ジャッジ時間 | 1,961 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 WA * 1 |
| other | AC * 25 WA * 2 |
ソースコード
def f(n):
if n==0:return 0
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")