結果

問題 No.1893 Cycle
ユーザー tomarint
提出日時 2022-04-08 23:05:23
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 236 bytes
コンパイル時間 13,115 ms
コンパイル使用メモリ 377,640 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-28 14:08:52
合計ジャッジ時間 14,213 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

use proconio::input;

fn main() {
    input! {
        mut x: i32,
        mut y: i32,
    };
    let mut z = (x + 4) % 12;
    if z != y {
        println!("{}", z);
        return;
    }
    z = (x + 8) % 12;
    println!("{}", z);
}
0