結果

問題 No.722 100×100=1000
コンテスト
ユーザー nebukuro09
提出日時 2018-08-03 22:27:38
言語 PyPy2
(7.3.15)
結果
WA  
実行時間 -
コード長 325 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 150 ms
コンパイル使用メモリ 77,368 KB
最終ジャッジ日時 2025-12-04 01:16:52
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 2
other AC * 20 WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

def ok(A):
    return A[0] != '-' and A[0] >= '1' and A[0] <= '9' and len(A) >= 3 and set(A[1:]) == set(['0'])

A, B = raw_input().split()
if ok(A) and ok (B):
    AB = str(int(A) * int(B))
    print AB[:-1]
else:
    AB = int(A) * int(B)
    if AB < -99999999 and AB > 99999999:
        print 'E'
    else:
        print AB
0