結果
問題 | No.1674 Introduction to XOR |
ユーザー |
👑 |
提出日時 | 2021-09-10 21:26:33 |
言語 | C (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 221 bytes |
コンパイル時間 | 309 ms |
コンパイル使用メモリ | 28,672 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-11 22:25:36 |
合計ジャッジ時間 | 1,805 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 7 WA * 14 |
ソースコード
#include <stdio.h>int main(){int i, j, N;long long A, X = 1;scanf("%d", &N);for (i = 1; i <= N; i++) {scanf("%lld", &A);while ((A & X) != 0) X <<= 1;}printf("%lld\n", X);fflush(stdout);return 0;}