結果
| 問題 | No.182 新規性の虜 |
| コンテスト | |
| ユーザー |
angel_p_57
|
| 提出日時 | 2016-01-17 11:28:25 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 100 ms / 5,000 ms |
| コード長 | 335 bytes |
| 記録 | |
| コンパイル時間 | 340 ms |
| コンパイル使用メモリ | 70,008 KB |
| 実行使用メモリ | 185,728 KB |
| 最終ジャッジ日時 | 2026-06-01 16:05:52 |
| 合計ジャッジ時間 | 3,688 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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