結果

問題 No.207 世界のなんとか
コンテスト
ユーザー ああ
提出日時 2026-10-12 18:02:41
言語 Rust
(1.97.1 + proconio + num + itertools + ACL)
コンパイル:
/usr/bin/rustc_custom
実行:
./target/release/main
結果
AC  
実行時間 0 ms / 5,000 ms
+ 895µs
コード長 408 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 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 {
  |

ソースコード

diff #
raw source code

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);
        }
    }
}
0