結果
| 問題 |
No.1415 100の倍数かつ正整数(1)
|
| コンテスト | |
| ユーザー |
lam6er
|
| 提出日時 | 2025-03-20 20:21:08 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 39 ms / 2,000 ms |
| コード長 | 307 bytes |
| コンパイル時間 | 170 ms |
| コンパイル使用メモリ | 82,544 KB |
| 実行使用メモリ | 53,448 KB |
| 最終ジャッジ日時 | 2025-03-20 20:22:43 |
| 合計ジャッジ時間 | 1,967 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