結果

問題 No.722 100×100=1000
コンテスト
ユーザー nebukuro09
提出日時 2018-08-03 22:29:13
言語 PyPy2
(7.3.20)
コンパイル:
pypy2 -m py_compile _filename_
実行:
/usr/bin/pypy2 Main.pyc
結果
AC  
実行時間 59 ms / 2,000 ms
+ 839µs
コード長 389 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 66 ms
コンパイル使用メモリ 81,024 KB
実行使用メモリ 81,152 KB
最終ジャッジ日時 2026-07-18 18:12:55
合計ジャッジ時間 3,381 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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