結果
問題 |
No.1569 Nixoracci's Number
|
ユーザー |
![]() |
提出日時 | 2021-12-13 21:36:11 |
言語 | Java (openjdk 23) |
結果 |
RE
|
実行時間 | - |
コード長 | 449 bytes |
コンパイル時間 | 3,658 ms |
コンパイル使用メモリ | 79,180 KB |
実行使用メモリ | 56,028 KB |
最終ジャッジ日時 | 2024-07-22 21:00:32 |
合計ジャッジ時間 | 6,624 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | RE * 21 |
ソースコード
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); long K = sc.nextInt(); long[] A = new long[N+1]; for( int i = 0; i < N; i++ ) { A[i] = sc.nextLong(); A[N] ^= A[i]; } int k = (int)((K-1)%(N+1)); System.out.println(A[k]); } }