結果

問題 No.1893 Cycle
ユーザー
提出日時 2024-05-05 00:13:43
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 260 bytes
コンパイル時間 11,141 ms
コンパイル使用メモリ 377,044 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-26 15:51:57
合計ジャッジ時間 12,311 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

fn main() {
	let mut s = String::new();
	std::io::stdin().read_line(&mut s).ok();
	let v: Vec<u8> = s.split_whitespace().flat_map(str::parse).collect();
	let m = v[0].max(v[1]);
	let a = (m + 4) % 12;
	println!("{}", if v.contains(&a) { m - 4 } else { a });
}
0