結果
| 問題 | No.3240 Count 8 Included Numbers (Easy) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-01-09 23:21:06 |
| 言語 | Rust (1.94.0 + proconio + num + itertools) |
| 結果 |
AC
|
| 実行時間 | 0 ms / 2,000 ms |
| + 854µs | |
| コード長 | 227 bytes |
| 記録 | |
| コンパイル時間 | 715 ms |
| コンパイル使用メモリ | 185,848 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-20 03:21:01 |
| 合計ジャッジ時間 | 2,181 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 16 |
ソースコード
use proconio::input;
fn main() {
input! { n: u32 }
let mut cnt = 0;
for i in 1..=n {
let s: String = i.to_string();
if s.contains("8") {
cnt += 1;
}
}
println!("{cnt}");
}