1 条题解
-
0
#include<bits/stdc++.h> using namespace std; struct node{int p, cf;} a[101]; int main(){ int n, q; cin >> n >> q; for(int i = 1, x, y; i <= q; i++){ cin >> x >> y; if(x == 3){ if(a[y].cf == 1) cout << "Yes\n"; else cout << "No\n"; } if(x == 2) a[y].p += 2; if(x == 1) a[y].p += 1; if(a[y].p >= 2) a[y].cf = 1; } return 0; }
- 1
信息
- ID
- 1729
- 时间
- 2000ms
- 内存
- 1024MiB
- 难度
- 9
- 标签
- 递交数
- 8
- 已通过
- 7
- 上传者