結果
問題 | No.1674 Introduction to XOR |
ユーザー |
|
提出日時 | 2021-09-10 21:22:39 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 171 bytes |
コンパイル時間 | 714 ms |
コンパイル使用メモリ | 64,448 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-11 22:13:10 |
合計ジャッジ時間 | 1,716 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 |
コンパイルメッセージ
main.cpp:5:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 5 | main() | ^~~~
ソースコード
#include<iostream> using namespace std; int N; long A; main() { cin>>N; for(;N--;) { long B;cin>>B;A|=B; } int id=0; while(A>>id&1)id++; cout<<(1LL<<id)<<endl; }