結果
| 問題 |
No.1893 Cycle
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-09-25 01:25:25 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 337 bytes |
| コンパイル時間 | 14,834 ms |
| コンパイル使用メモリ | 379,180 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-22 12:37:51 |
| 合計ジャッジ時間 | 15,133 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
fn main() {
let mut xy = String::new();
std::io::stdin().read_line(&mut xy).ok();
let xy: Vec<usize> = xy.trim().split_whitespace().map(|s| s.parse().unwrap()).collect();
let x = xy[0];
let y = xy[1];
let cands = vec![(x+4)%12, (x+8)%12];
println!("{}", cands.iter().filter(|&&v| v != y).nth(0).unwrap());
}