結果
| 問題 |
No.722 100×100=1000
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-11-08 10:32:48 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 408 bytes |
| コンパイル時間 | 144 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-10-12 11:15:02 |
| 合計ジャッジ時間 | 1,903 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 2 |
| other | AC * 5 WA * 22 |
ソースコード
def calc(a,b):
ans=a*b
if -99999999 > ans or 99999999 < ans:
print('E')
else:
print(int(ans))
def mental(a,b):
ans=(a*b)/10
print(int(ans))
if __name__ == '__main__':
a,b=input().split(' ')
absA=str(abs(int(a)))
absB=str(abs(int(b)))
if int(absA)!=0 and int(absB)!=0:
if int(a)%100==0 and int(b)%100==0 and absA[1]=='0' and absB[1]=='0':
mental(int(a),int(b))
else:
calc(int(a),int(b))