結果

問題 No.3264 岩井数
ユーザー おもち(求肥)
提出日時 2025-09-06 15:14:25
言語 Rust
(1.83.0 + proconio)
結果
WA  
実行時間 -
コード長 274 bytes
コンパイル時間 13,719 ms
コンパイル使用メモリ 398,124 KB
実行使用メモリ 7,720 KB
最終ジャッジ日時 2025-09-06 15:14:42
合計ジャッジ時間 16,708 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 1
other WA * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

use proconio::input;
fn main() {
  input!{
    n: usize
  }

  let mut multiplier = 1;
  loop {
    let current = n*multiplier;
    if current<1_000_000_000{multiplier += 10; continue;}
    if current % n == 0 { println!("{}", current); return;}
    multiplier += 10;
  }
}
0