結果

問題 No.1893 Cycle
コンテスト
ユーザー ixTL255
提出日時 2023-01-24 08:19:16
言語 Rust
(1.94.0 + proconio + num + itertools)
コンパイル:
/usr/bin/rustc_custom
実行:
./target/release/main
結果
WA  
実行時間 -
コード長 353 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 474 ms
コンパイル使用メモリ 193,052 KB
実行使用メモリ 7,848 KB
最終ジャッジ日時 2026-03-12 10:31:17
合計ジャッジ時間 1,552 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge3_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 21
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

fn main() {
    let mut s = String::new();
    std::io::stdin().read_line(&mut s).ok();
    let mut itr = s.trim().split_whitespace();
    let a: isize = itr.next().unwrap().parse().unwrap();
    let b: isize = itr.next().unwrap().parse().unwrap();

	let ans =
		if (a + 4) % 12 == b { (a + 4) % 12 }
		else { (a + 8) % 12 };

    println!("{}", ans);
}
0