結果
| 問題 | No.1003 サイコロの実装 (1) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-01-18 13:16:32 |
| 言語 | Rust (1.94.0 + proconio + num + itertools) |
| 結果 |
AC
|
| 実行時間 | 0 ms / 2,000 ms |
| + 829µs | |
| コード長 | 286 bytes |
| 記録 | |
| コンパイル時間 | 484 ms |
| コンパイル使用メモリ | 196,208 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-20 11:48:50 |
| 合計ジャッジ時間 | 2,389 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 |
ソースコード
use proconio::{fastout, input};
#[fastout]
fn main() {
input! {
n: u32,
}
println!("{}", output(solve(n)))
}
fn solve(n: u32) -> bool {
n % 6 == 0
}
fn output(ans: bool) -> &'static str {
match ans {
true => "Yes",
false => "No",
}
}