結果

問題 No.1893 Cycle
ユーザー Shirotsume
提出日時 2022-01-31 20:48:30
言語 Java
(openjdk 23)
結果
AC  
実行時間 114 ms / 2,000 ms
コード長 335 bytes
コンパイル時間 1,766 ms
コンパイル使用メモリ 74,112 KB
実行使用メモリ 41,348 KB
最終ジャッジ日時 2024-06-11 09:04:22
合計ジャッジ時間 5,320 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class Main {
	  public static void main(String[] args) {
	        Scanner sc = new Scanner(System.in);
	        int x = sc.nextInt();
	        int y = sc.nextInt();
	        int z;
	        if((x + 4) % 12 == y) z = (x + 8) % 12;
	        else z = (x + 4) % 12;
	        System.out.println(z);
	  }


}
0