結果
問題 |
No.814 ジジ抜き
|
ユーザー |
|
提出日時 | 2020-03-27 04:35:00 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 338 ms / 3,000 ms |
コード長 | 268 bytes |
コンパイル時間 | 583 ms |
コンパイル使用メモリ | 61,916 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2025-01-02 08:01:27 |
合計ジャッジ時間 | 7,733 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 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; long L2=L>>D; while(K>0&&L2%4) { ans^=L; L+=1<<D; L2++; K--; } while(K%4)ans^=L+(--K<<D); } cout<<ans<<endl; }