結果
| 問題 | No.1003 サイコロの実装 (1) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-01-18 13:16:32 |
| 言語 | Rust (1.92.0 + proconio + num + itertools) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 286 bytes |
| 記録 | |
| コンパイル時間 | 26,613 ms |
| コンパイル使用メモリ | 411,696 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2026-01-18 13:17:01 |
| 合計ジャッジ時間 | 24,437 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge6 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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",
}
}