結果
| 問題 | No.207 世界のなんとか |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-10-12 18:02:41 |
| 言語 | Rust (1.97.1 + proconio + num + itertools + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 0 ms / 5,000 ms |
| + 895µs | |
| コード長 | 408 bytes |
| 記録 | |
| コンパイル時間 | 440 ms |
| コンパイル使用メモリ | 189,572 KB |
| 実行使用メモリ | 9,920 KB |
| 最終ジャッジ日時 | 2026-10-12 18:02:44 |
| 合計ジャッジ時間 | 2,333 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 19 |
コンパイルメッセージ
warning: unnecessary parentheses around `for` iterator expression
--> src/main.rs:7:14
|
7 | for i in (a..b+1){
| ^ ^
|
= note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
help: remove these parentheses
|
7 - for i in (a..b+1){
7 + for i in a..b+1 {
|
ソースコード
use proconio::input;
fn main() {
input!{
a:usize,
b:usize,
}
for i in (a..b+1){
let mut s=0;
if i%3==0{
print!{"{}\n",i};
continue;
}
let mut c=i;
while c>0{
if c%10==3{
s=1;break;
}
c/=10;
}
if s==1{
print!("{}\n",i);
}
}
}