結果
| 問題 | No.722 100×100=1000 |
| コンテスト | |
| ユーザー |
r_ishida
|
| 提出日時 | 2026-01-23 06:53:40 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 716 bytes |
| 記録 | |
| コンパイル時間 | 442 ms |
| コンパイル使用メモリ | 82,752 KB |
| 実行使用メモリ | 54,280 KB |
| 最終ジャッジ日時 | 2026-01-23 06:53:43 |
| 合計ジャッジ時間 | 3,153 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 21 WA * 6 |
ソースコード
import math
import sys
def S(): return sys.stdin.readline().rstrip()
def I(): return int(sys.stdin.readline().rstrip())
def MI(): return map(int, sys.stdin.readline().rstrip().split())
def LI(): return list(map(int, sys.stdin.readline().rstrip().split()))
def LS(): return list(sys.stdin.readline().rstrip().split())
def check(n):
if n == 0:
return False
l = len(str(n))
cnt = 0
while n%10 == 0:
n //= 10
cnt += 1
return cnt == l-1
a, b = MI()
m = 1
if a*b < 0:
m = -1
a = abs(a)
b = abs(b)
if check(a) and check(b):
ans = a*b*m
if ans%10 == 0:
ans //= 10
else:
ans = a*b*m
if not -99999999 <= ans <= 99999999:
ans = 'E'
print(ans)
r_ishida