結果
問題 |
No.722 100×100=1000
|
ユーザー |
![]() |
提出日時 | 2019-09-09 18:27:30 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 495 bytes |
コンパイル時間 | 299 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-10-12 12:11:52 |
合計ジャッジ時間 | 2,034 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 21 WA * 6 |
ソースコード
def main(): A,B =map(int,input().split()) a,b= str(A),str(B) if a[0] =='-': a=a[1:] if b[0] =='-': b=b[1:] bl = 1#暗算できるか def calc(bl): c =A*B if bl: return int(c/10) if abs(c)>99999999: return 'E' else: return c for s in a[1:]: if s !='0': bl =0 if bl: for s in b[1:]: if s!='0': bl=0 print(calc(bl)) main()