結果
| 問題 | No.1915 Addition |
| コンテスト | |
| ユーザー |
hiromi_ayase
|
| 提出日時 | 2022-04-30 00:58:19 |
| 言語 | Rust (1.94.0 + proconio + num + itertools) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 432 bytes |
| 記録 | |
| コンパイル時間 | 3,623 ms |
| コンパイル使用メモリ | 175,956 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-08-01 14:47:51 |
| 合計ジャッジ時間 | 6,403 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | WA * 10 |
ソースコード
fn main() {
let t = getline().parse::<usize>().unwrap();
for _ in 0..t {
let n = getline().parse::<i64>().unwrap();
let mut f: i64 = 1;
while f < n + 1 {
f *= 10;
}
let m = f - (n + 1);
println!("{}", m);
}
}
fn getline() -> String {
let mut __ret = String::new();
std::io::stdin().read_line(&mut __ret).ok();
__ret.trim().to_string()
}
hiromi_ayase