結果
問題 |
No.862 XORでX
|
ユーザー |
![]() |
提出日時 | 2019-08-10 02:41:21 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 491 bytes |
コンパイル時間 | 664 ms |
コンパイル使用メモリ | 66,744 KB |
最終ジャッジ日時 | 2025-01-07 11:37:03 |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 19 WA * 9 |
ソースコード
#include <iostream> using namespace std; int main(){ int i,j,n,x; cin >> n >> x; for(i=4;i<=100000;i+=4){ if(i==x/4*4) continue; if(n<=4) break; for(j=0;j<4;j++){ cout << i + j << endl; } n -= 4; } if(n==1){ cout << x << endl; } if(n==2){ cout << (x^1) << endl; cout << 1 << endl; } if(n==3){ cout << (x^3) << endl; cout << 1 << endl; cout << 2 << endl; } if(n==4){ cout << x << endl; cout << 1 << endl; cout << 2 << endl; cout << 3 << endl; } }