結果
| 問題 |
No.1415 100の倍数かつ正整数(1)
|
| コンテスト | |
| ユーザー |
lam6er
|
| 提出日時 | 2025-03-20 18:40:59 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 41 ms / 2,000 ms |
| コード長 | 307 bytes |
| コンパイル時間 | 203 ms |
| コンパイル使用メモリ | 82,348 KB |
| 実行使用メモリ | 53,660 KB |
| 最終ジャッジ日時 | 2025-03-20 18:41:19 |
| 合計ジャッジ時間 | 1,983 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 |
ソースコード
n = input().strip()
if n.startswith('-'):
print(0)
else:
stripped = n.lstrip('0')
if not stripped:
stripped = '0'
if len(stripped) < 3:
print(0)
else:
q_str = stripped[:-2]
q_stripped = q_str.lstrip('0') or '0'
q = int(q_stripped)
print(q)
lam6er