結果
| 問題 | No.3240 Count 8 Included Numbers (Easy) |
| コンテスト | |
| ユーザー |
Cecil
|
| 提出日時 | 2025-08-22 21:18:57 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 64 ms / 2,000 ms |
| + 311µs | |
| コード長 | 124 bytes |
| 記録 | |
| コンパイル時間 | 250 ms |
| コンパイル使用メモリ | 96,240 KB |
| 実行使用メモリ | 79,104 KB |
| 最終ジャッジ日時 | 2026-07-14 07:09:28 |
| 合計ジャッジ時間 | 2,837 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 16 |
ソースコード
N = int(input())
ans = 0
for i in range(1, N+1):
num = list(str(i))
if num.count("8")>0:
ans += 1
print(ans)
Cecil