結果

問題 No.722 100×100=1000
ユーザー nebukuro09nebukuro09
提出日時 2018-08-03 22:29:13
言語 Python2
(2.7.18)
結果
AC  
実行時間 11 ms / 2,000 ms
コード長 389 bytes
コンパイル時間 384 ms
コンパイル使用メモリ 6,624 KB
実行使用メモリ 6,100 KB
最終ジャッジ日時 2023-08-28 15:45:37
合計ジャッジ時間 1,772 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 10 ms
5,920 KB
testcase_01 AC 10 ms
5,844 KB
testcase_02 AC 10 ms
5,916 KB
testcase_03 AC 10 ms
5,844 KB
testcase_04 AC 10 ms
5,896 KB
testcase_05 AC 10 ms
5,968 KB
testcase_06 AC 10 ms
5,960 KB
testcase_07 AC 10 ms
5,968 KB
testcase_08 AC 10 ms
5,916 KB
testcase_09 AC 10 ms
6,100 KB
testcase_10 AC 10 ms
5,928 KB
testcase_11 AC 11 ms
5,912 KB
testcase_12 AC 10 ms
5,848 KB
testcase_13 AC 10 ms
5,916 KB
testcase_14 AC 10 ms
5,968 KB
testcase_15 AC 10 ms
5,984 KB
testcase_16 AC 10 ms
5,848 KB
testcase_17 AC 10 ms
5,980 KB
testcase_18 AC 10 ms
5,960 KB
testcase_19 AC 10 ms
5,968 KB
testcase_20 AC 10 ms
5,956 KB
testcase_21 AC 10 ms
5,848 KB
testcase_22 AC 10 ms
5,960 KB
testcase_23 AC 10 ms
5,968 KB
testcase_24 AC 10 ms
5,924 KB
testcase_25 AC 10 ms
5,984 KB
testcase_26 AC 10 ms
5,840 KB
testcase_27 AC 10 ms
5,848 KB
testcase_28 AC 11 ms
6,000 KB
testcase_29 AC 10 ms
5,920 KB
testcase_30 AC 10 ms
6,048 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def ok(S):
    if S[0] == '-':
        A = S[1:]
    else:
        A = S[:]
    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 or AB > 99999999:
        print 'E'
    else:
        print AB
0