結果
問題 |
No.722 100×100=1000
|
ユーザー |
![]() |
提出日時 | 2018-09-30 15:15:24 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 34 ms / 2,000 ms |
コード長 | 385 bytes |
コンパイル時間 | 743 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-12-29 19:38:41 |
合計ジャッジ時間 | 2,098 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 27 |
ソースコード
from math import * a,b = map(int, input().split()) if a != 0 and b != 0: a_digit = floor(log10(abs(a))) b_digit = floor(log10(abs(b))) if a_digit >= 2 and b_digit >= 2 and a%(10**a_digit) == 0 and b%(10**b_digit) == 0: print(a*b // 10) else: if -99999999 <= a*b <= 99999999: print(a*b) else: print("E") else: print(0)