結果
| 問題 | No.722 100×100=1000 |
| コンテスト | |
| ユーザー |
r_ishida
|
| 提出日時 | 2026-01-23 06:54:12 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 43 ms / 2,000 ms |
| コード長 | 728 bytes |
| 記録 | |
| コンパイル時間 | 233 ms |
| コンパイル使用メモリ | 82,576 KB |
| 実行使用メモリ | 54,208 KB |
| 最終ジャッジ日時 | 2026-01-23 06:54:15 |
| 合計ジャッジ時間 | 2,722 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 27 |
ソースコード
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 > 1 and 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