結果
| 問題 |
No.722 100×100=1000
|
| コンテスト | |
| ユーザー |
iad_2889
|
| 提出日時 | 2019-05-15 05:31:53 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 513 bytes |
| コンパイル時間 | 230 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-10-12 12:06:19 |
| 合計ジャッジ時間 | 2,013 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 20 WA * 7 |
ソースコード
def calc(A,B):
def _(num):
count = 0
while num and not num % 10:
num//=10
count+=1
return count >= 2
ans = str(A * B)
minus = ans[0] == "-"
if minus:
ans = ans[1:]
if 1 <= abs(A) <= 9 and 1 <= abs(B) <= 9 or _(A) and _(B):
if ans[-1] == "0":
ans = ans[:-1]
else:
if len(ans) > 8:
ans = "E"
if minus:
ans = "-" + ans
return ans
A,B = map(int,input().split())
print(calc(A,B))
iad_2889