結果
| 問題 |
No.722 100×100=1000
|
| コンテスト | |
| ユーザー |
convexineq
|
| 提出日時 | 2021-02-26 02:13:45 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 44 ms / 2,000 ms |
| コード長 | 395 bytes |
| コンパイル時間 | 265 ms |
| コンパイル使用メモリ | 82,048 KB |
| 実行使用メモリ | 52,096 KB |
| 最終ジャッジ日時 | 2024-12-29 20:00:53 |
| 合計ジャッジ時間 | 2,466 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 27 |
ソースコード
def is10(x):
c = 0
while x%10==0:
x //= 10
c += 1
if abs(x) <= 9 and c >= 2:
return (c,x)
else:
return (-1,-1)
A,B = map(int,input().split())
if A==0 or B==0:
print(0)
exit()
n,a = is10(A)
m,b = is10(B)
if n >= 2 and m >= 2:
print(a*b*10**(n+m-1))
else:
x = A*B
if abs(x) < 10**8:
print(x)
else:
print("E")
convexineq