結果

問題 No.722 100×100=1000
ユーザー kazuppa
提出日時 2024-10-06 11:43:55
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 41 ms / 2,000 ms
コード長 383 bytes
コンパイル時間 152 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 52,096 KB
最終ジャッジ日時 2024-10-06 11:43:57
合計ジャッジ時間 2,337 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

a, b = map(int, input().split())
ok = 0
for i in range(2, 10):
    if a % (10**i) != 0 or abs(a // (10**i)) >= 10:
        continue
    for j in range(2, 10):
        if ok == 0 and b % (10**j) == 0 and 1 <= abs(b // (10**j)) <= 9:
            ok = 1
            print(a * b // 10)
if ok == 0:
    if -99999999 <= a * b <= 99999999:
        print(a * b)
    else:
        print("E")
0