結果
問題 |
No.814 ジジ抜き
|
ユーザー |
|
提出日時 | 2020-03-27 04:31:01 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 230 bytes |
コンパイル時間 | 571 ms |
コンパイル使用メモリ | 60,672 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2025-01-02 08:01:04 |
合計ジャッジ時間 | 8,217 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
other | WA * 23 |
コンパイルメッセージ
main.cpp:4:1: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type] 4 | main() | ^~~~
ソースコード
#include<iostream> using namespace std; int N; main() { cin>>N; long ans=0; for(int i=0;i<N;i++) { long K,L,D; cin>>K>>L>>D; if(K%2)ans^=L; long t=0; while(K%4) { t^=--K; } ans^=t<<D; } cout<<ans<<endl; }