結果

問題 No.2297 Best Grouping
ユーザー YGBK
提出日時 2023-05-15 18:14:32
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 320 bytes
コンパイル時間 2,902 ms
コンパイル使用メモリ 74,800 KB
実行使用メモリ 41,308 KB
最終ジャッジ日時 2024-11-30 23:04:13
合計ジャッジ時間 6,368 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 2
other AC * 15 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class MyMain {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.nextLine());

		if (n % 3 == 0)	System.out.println(0);
		if (n % 3 == 1)	System.out.println(2);
		if (n % 3 == 3)	System.out.println(1);

		sc.close();
	}

}
0