結果
| 問題 | No.722 100×100=1000 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-08-12 11:14:53 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 498 bytes |
| 記録 | |
| コンパイル時間 | 507 ms |
| コンパイル使用メモリ | 20,892 KB |
| 実行使用メモリ | 21,760 KB |
| 最終ジャッジ日時 | 2026-04-29 10:46:45 |
| 合計ジャッジ時間 | 8,937 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 4 WA * 5 TLE * 1 -- * 17 |
ソースコード
from sys import stdin
def calc1(x, y):
return (x * y) // 10
def calc2(x, y):
ret = x * y
if ret // 100000000:
return 'E'
else:
return ret
def main():
A, B = map(int, input().split())
for n in (abs(A), abs(B)):
m = 0
while not m:
d, m = divmod(n, 10)
n //= 10
if d:
ans = calc2(A, B)
break
else:
ans = calc1(A, B)
print(ans)
input = lambda: stdin.readline()
main()