結果
問題 |
No.207 世界のなんとか
|
ユーザー |
|
提出日時 | 2018-05-28 15:27:57 |
言語 | Rust (1.83.0 + proconio) |
結果 |
WA
|
実行時間 | - |
コード長 | 854 bytes |
コンパイル時間 | 11,613 ms |
コンパイル使用メモリ | 403,368 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-30 07:46:23 |
合計ジャッジ時間 | 13,191 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 WA * 18 |
ソースコード
use std::io::stdin; fn get_line() -> String { let mut line = String::new(); stdin().read_line(&mut line).ok(); line } fn main() { let line = get_line(); let line: Vec<&str> = line.trim().split_whitespace().collect(); let line: Vec<i32> = line.iter().map(|x| x.parse().unwrap()).collect(); let a = line[0]; let b = line[1]; let mut results: Vec<i32> = Vec::new(); for i in a..b + 1 { if i % 3 == 0 { results.push(i); } else { let str = i.to_string(); let str = str.as_str(); for j in str.chars() { println!("test {}", j); if j == '3' { results.push(i); break; } } } } for i in results.iter() { println!("{}", i); } }