結果
| 問題 |
No.722 100×100=1000
|
| コンテスト | |
| ユーザー |
maspy
|
| 提出日時 | 2020-01-17 14:06:29 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 34 ms / 2,000 ms |
| コード長 | 386 bytes |
| コンパイル時間 | 603 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-12-29 19:50:28 |
| 合計ジャッジ時間 | 2,362 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 27 |
ソースコード
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
A,B = map(int,read().split())
def anzan(A):
A = abs(A)
L = len(str(A))
return L >= 3 and A % (10**(L-1)) == 0
answer = A * B
if anzan(A) and anzan(B):
answer //= 10
else:
if not(-99999999 <= answer <= 99999999):
answer = 'E'
print(answer)
maspy