結果
問題 | No.1569 Nixoracci's Number |
ユーザー |
👑 |
提出日時 | 2021-06-27 13:43:27 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 239 bytes |
コンパイル時間 | 182 ms |
コンパイル使用メモリ | 28,672 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-27 13:24:18 |
合計ジャッジ時間 | 930 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 |
ソースコード
#include <stdio.h>int main(){int i, N;long long K, A[201];scanf("%d %lld", &N, &K);for (i = 0, A[N] = 0; i < N; i++) {scanf("%lld", &(A[i]));A[N] ^= A[i];}printf("%lld\n", A[(K-1)%(N+1)]);fflush(stdout);return 0;}