結果

問題 No.722 100×100=1000
ユーザー nebukuro09nebukuro09
提出日時 2018-08-03 22:27:38
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 325 bytes
コンパイル時間 858 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 6,400 KB
最終ジャッジ日時 2024-04-20 14:56:02
合計ジャッジ時間 1,736 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
6,272 KB
testcase_01 AC 10 ms
6,144 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 11 ms
6,272 KB
testcase_05 AC 10 ms
6,272 KB
testcase_06 AC 11 ms
6,272 KB
testcase_07 WA -
testcase_08 AC 11 ms
6,272 KB
testcase_09 AC 11 ms
6,144 KB
testcase_10 AC 11 ms
6,272 KB
testcase_11 AC 11 ms
6,272 KB
testcase_12 AC 11 ms
6,144 KB
testcase_13 AC 11 ms
6,272 KB
testcase_14 WA -
testcase_15 AC 11 ms
6,272 KB
testcase_16 AC 10 ms
6,144 KB
testcase_17 WA -
testcase_18 AC 11 ms
6,144 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 11 ms
6,144 KB
testcase_22 WA -
testcase_23 AC 11 ms
6,272 KB
testcase_24 AC 12 ms
6,272 KB
testcase_25 AC 11 ms
6,144 KB
testcase_26 AC 11 ms
6,272 KB
testcase_27 WA -
testcase_28 AC 11 ms
6,144 KB
testcase_29 AC 11 ms
6,144 KB
testcase_30 AC 11 ms
6,272 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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