結果
| 問題 | No.3390 Public or Private |
| コンテスト | |
| ユーザー |
👑 tails
|
| 提出日時 | 2025-11-28 23:17:03 |
| 言語 | cLay (20241019-1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 295 bytes |
| コンパイル時間 | 2,601 ms |
| コンパイル使用メモリ | 201,176 KB |
| 実行使用メモリ | 305,960 KB |
| 最終ジャッジ日時 | 2025-11-28 23:17:36 |
| 合計ジャッジ時間 | 7,883 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 5 TLE * 1 -- * 21 |
ソースコード
map<pair<int,int>,int>fo;
int@n,@m;
rep(m){
int@u,@v;
fo[{u,v}]=1;
}
int@c,@(q,a,b)[c];
rep(i,c){
if(q[i]==1){
int&t=fo[{a[i],b[i]}];
t^=1;
}
map<int,int>pr;
int z=n-1;
rep(j,i+1){
if(q[j]==2&&a[j]!=a[i]&&!fo[{a[i],a[j]}]){
int&t=pr[a[j]];
t^=1;
z+=t?-1:1;
}
}
wt(z);
}
tails