結果
| 問題 | No.522 Make Test Cases(テストケースを作る) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-07-30 16:18:34 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
AC
|
| 実行時間 | 867 ms / 2,000 ms |
| コード長 | 332 bytes |
| コンパイル時間 | 10,919 ms |
| コンパイル使用メモリ | 405,332 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-30 16:18:52 |
| 合計ジャッジ時間 | 15,592 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
コンパイルメッセージ
warning: unused imports: `HashMap`, `HashSet`
--> src/main.rs:1:24
|
1 | use std::collections::{HashMap, HashSet};
| ^^^^^^^ ^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
warning: unused import: `proconio::marker::Chars`
--> src/main.rs:3:5
|
3 | use proconio::marker::Chars;
| ^^^^^^^^^^^^^^^^^^^^^^^
ソースコード
use std::collections::{HashMap, HashSet};
use proconio::marker::Chars;
fn main() {
proconio::input! {
n: u32,
}
for a in 1..=n / 3 {
for b in a..=n / 2 {
let c = n - (a + b);
if c < b {
break;
}
println!("{a} {b} {c}");
}
}
}