結果
| 問題 | No.499 7進数変換 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-04-03 08:59:17 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 423 bytes |
| 記録 | |
| コンパイル時間 | 13,321 ms |
| コンパイル使用メモリ | 378,660 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-28 17:43:04 |
| 合計ジャッジ時間 | 14,464 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 30 WA * 1 |
ソースコード
use std::io::*;
fn main() {
let mut s: String = String::new();
std::io::stdin().read_to_string(&mut s).ok();
let mut itr = s.trim().split_whitespace();
let mut n: usize = itr.next().unwrap().parse().unwrap();
let mut out = Vec::new();
while n > 0 {
write!(out, "{}", n % 7).ok();
n /= 7;
}
out.reverse();
writeln!(out, "").ok();
stdout().write_all(&out).unwrap();
}