結果
| 問題 |
No.207 世界のなんとか
|
| コンテスト | |
| ユーザー |
ixTL255
|
| 提出日時 | 2023-03-15 20:13:58 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 447 bytes |
| コンパイル時間 | 15,335 ms |
| コンパイル使用メモリ | 388,088 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-18 08:50:43 |
| 合計ジャッジ時間 | 16,316 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 19 |
ソースコード
fn main() {
let mut s = String::new();
std::io::stdin().read_line(&mut s).ok();
let mut itr = s.trim().split_whitespace();
let a: isize = itr.next().unwrap().parse().unwrap();
let b: isize = itr.next().unwrap().parse().unwrap();
for i in a..=b {
if i % 3 == 0 {
println!("{}", i);
continue;
}
if i.to_string().contains('3') {
println!("{}", i);
}
}
}
ixTL255