結果
| 問題 |
No.722 100×100=1000
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-03-25 00:30:18 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 46 ms / 2,000 ms |
| コード長 | 404 bytes |
| コンパイル時間 | 419 ms |
| コンパイル使用メモリ | 82,200 KB |
| 実行使用メモリ | 53,488 KB |
| 最終ジャッジ日時 | 2024-12-29 20:11:57 |
| 合計ジャッジ時間 | 2,702 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 27 |
ソースコード
A,B = input().split()
v = (int(A)*int(B)) >= 0
A = str(abs(int(A)))
B = str(abs(int(B)))
if A.count('0') == len(A)-1 and len(A) >= 3 and B.count('0') == len(B)-1 and len(B) >= 3:
print(str(int(A)*int(B))[:-1] if v else '-'+str(int(A)*int(B))[:-1])
else:
ans = int(A)*int(B)
if len(str(ans)) >= 9:
print('E')
else:
print(str(int(A)*int(B)) if v else '-'+str(int(A)*int(B)))