結果
| 問題 | No.182 新規性の虜 |
| コンテスト | |
| ユーザー |
angel_p_57
|
| 提出日時 | 2016-01-17 11:28:25 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 217 ms / 5,000 ms |
| コード長 | 335 bytes |
| 記録 | |
| コンパイル時間 | 465 ms |
| コンパイル使用メモリ | 53,624 KB |
| 実行使用メモリ | 185,600 KB |
| 最終ジャッジ日時 | 2024-12-26 20:10:46 |
| 合計ジャッジ時間 | 2,769 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 27 |
ソースコード
#include <iostream>
#include <cstdint>
using namespace std;
uint64_t m[1<<25];
int main(void)
{
ios::sync_with_stdio(false);
cin.tie(0);
int n,a;
cin>>n;
a=-n;
for ( int x;cin>>x; )
{
int i=x>>5;
int sw=x*2&62;
int c=(m[i]>>sw)&3;
a+=(9>>(2-c))&3;
m[i]^=((uint64_t)13>>(c*2)&3)<<sw;
}
cout<<a;
}
angel_p_57