結果

問題 No.499 7進数変換
コンテスト
ユーザー ixTL255
提出日時 2023-01-11 22:50:47
言語 Rust
(1.99.0 + proconio + num + itertools + ACL)
コンパイル:
/usr/bin/rustc_custom
実行:
./target/release/main
結果
WA  
実行時間 -
コード長 309 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 11,253 ms
コンパイル使用メモリ 186,068 KB
実行使用メモリ 9,916 KB
最終ジャッジ日時 2026-10-06 01:42:58
合計ジャッジ時間 13,058 ms
ジャッジサーバーID
(参考情報)
judge3_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