We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17f9ae8 commit 352ec6eCopy full SHA for 352ec6e
1 file changed
khj20006/202510/15 BOJ P3 Game on Plane.md
@@ -0,0 +1,19 @@
1
+```cpp
2
+#include <bits/stdc++.h>
3
+using namespace std;
4
+
5
+int T, N, a, d[5001]{};
6
7
+int main(){
8
+ cin.tie(0)->sync_with_stdio(0);
9
10
+ for(int i=2;i<=5000;i++) {
11
+ bitset<5000> v;
12
+ for(int j=0;j<=i-j-2;j++) v[d[j]^d[i-j-2]]=1;
13
+ while(v[d[i]]) d[i]++;
14
+ }
15
16
+ for(cin>>T;T--;cout<<(d[a] ? "First\n" : "Second\n")) cin>>a;
17
18
+}
19
+```
0 commit comments