結果

問題 No.499 7進数変換
コンテスト
ユーザー ixTL255
提出日時 2023-01-11 22:50:47
言語 Rust
(1.94.0 + proconio + num + itertools)
コンパイル:
/usr/bin/rustc_custom
実行:
./target/release/main
結果
WA  
実行時間 -
コード長 309 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 10,968 ms
コンパイル使用メモリ 184,168 KB
実行使用メモリ 7,968 KB
最終ジャッジ日時 2026-05-28 21:24:28
合計ジャッジ時間 12,104 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 30 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

fn main() {
    let mut n = String::new();
    std::io::stdin().read_line(&mut n).ok();
    let mut n: usize = n.trim().parse().unwrap();
    let mut ans = String::new();
    while n != 0 {
        ans += &(n % 7).to_string();
        n /= 7;
    }
    println!("{}", ans.chars().rev().collect::<String>());
}
0