Submission #44451791
Source Code Expand
// clang-format off
#include <bits/stdc++.h>
using namespace std;
#if __has_include(<atcoder/all>)
#include <atcoder/all>
using namespace atcoder;
#endif
#define _overload3(_1,_2,_3,name,...) name
#define _REP(i,n) REPI(i,0,n)
#define REPI(i,a,b) for(int i=int(a);i<int(b);++i)
#define REP(...) _overload3(__VA_ARGS__,REPI,_REP,)(__VA_ARGS__)
#define _RREP(i,n) RREPI(i,n,0)
#define RREPI(i,a,b) for(int i=int(a);i>=int(b);--i)
#define RREP(...) _overload3(__VA_ARGS__,RREPI,_RREP,)(__VA_ARGS__)
#define ALL(a) (a).begin(),(a).end()
#define ALLR(a) (a).rbegin(),(a).rend()
typedef long long ll;
const int INF32 = 1001001001;
const long long INF64 = 1001001001001001001;
struct Init { Init() { ios::sync_with_stdio(0); cin.tie(0); cout << setprecision(15); }} init;
template<class T> bool chmax(T &a, const T &b) { if (a < b) { a = b; return true; } return false; }
template<class T> bool chmin(T &a, const T &b) { if (a > b) { a = b; return true; } return false; }
template<class T> T gcd(T x, T y){ return (x % y) ? gcd(y, x % y) : y; }
template<class T> T lcm(T x, T y){ return x / gcd(x, y) * y; }
template<class T, class... Ts> void output(const T& a, const Ts&... b) { cout << a; (cout << ... << (cout << ' ', b)); cout << '\n'; }
template<class T> void output(vector<T> v) { for (auto u : v) cout << u << ' '; cout << '\n'; };
void yesno(bool is_ok) { cout << (is_ok ? "yes" : "no") << '\n'; }
void YesNo(bool is_ok) { cout << (is_ok ? "Yes" : "No") << '\n'; }
void YESNO(bool is_ok) { cout << (is_ok ? "YES" : "NO") << '\n'; }
// clang-format on
int main() {
int n, h, w;
cin >> n >> h >> w;
int g = 0;
REP(i, n) {
int a, b;
cin >> a >> b;
--a;
--b;
g ^= a;
g ^= b;
}
output(g == 0 ? "Second" : "First");
}
Submission Info
| Submission Time |
|
| Task |
B33 - Game 6 |
| User |
noko206 |
| Language |
C++ (GCC 9.2.1) |
| Score |
1000 |
| Code Size |
1834 Byte |
| Status |
AC |
| Exec Time |
31 ms |
| Memory |
3648 KiB |
Compile Error
./Main.cpp: In instantiation of ‘void output(const T&, const Ts& ...) [with T = const char*; Ts = {}]’:
./Main.cpp:45:39: required from here
./Main.cpp:26:86: warning: statement has no effect [-Wunused-value]
26 | template<class T, class... Ts> void output(const T& a, const Ts&... b) { cout << a; (cout << ... << (cout << ' ', b)); cout << '\n'; }
| ^~~~
Judge Result
| Set Name |
Sample |
All |
| Score / Max Score |
0 / 0 |
1000 / 1000 |
| Status |
|
|
| Set Name |
Test Cases |
| Sample |
sample_01.txt, sample_02.txt |
| All |
sample_01.txt, sample_02.txt, test_01.txt, test_02.txt, test_03.txt, test_04.txt, test_05.txt, test_06.txt, test_07.txt, test_08.txt, test_09.txt, test_10.txt, test_11.txt, test_12.txt, test_13.txt, test_14.txt, test_15.txt, test_16.txt, test_17.txt, test_18.txt, test_19.txt, test_20.txt, test_21.txt, test_22.txt, test_23.txt, test_24.txt, test_25.txt, test_26.txt, test_27.txt, test_28.txt, test_29.txt, test_30.txt, test_31.txt, test_32.txt, test_33.txt, test_34.txt, test_35.txt, test_36.txt, test_37.txt, test_38.txt, test_39.txt, test_40.txt |
| Case Name |
Status |
Exec Time |
Memory |
| sample_01.txt |
AC |
7 ms |
3624 KiB |
| sample_02.txt |
AC |
3 ms |
3612 KiB |
| test_01.txt |
AC |
3 ms |
3460 KiB |
| test_02.txt |
AC |
2 ms |
3500 KiB |
| test_03.txt |
AC |
2 ms |
3516 KiB |
| test_04.txt |
AC |
3 ms |
3628 KiB |
| test_05.txt |
AC |
29 ms |
3564 KiB |
| test_06.txt |
AC |
13 ms |
3468 KiB |
| test_07.txt |
AC |
16 ms |
3464 KiB |
| test_08.txt |
AC |
23 ms |
3632 KiB |
| test_09.txt |
AC |
13 ms |
3624 KiB |
| test_10.txt |
AC |
14 ms |
3464 KiB |
| test_11.txt |
AC |
16 ms |
3564 KiB |
| test_12.txt |
AC |
27 ms |
3580 KiB |
| test_13.txt |
AC |
24 ms |
3632 KiB |
| test_14.txt |
AC |
10 ms |
3564 KiB |
| test_15.txt |
AC |
18 ms |
3576 KiB |
| test_16.txt |
AC |
11 ms |
3632 KiB |
| test_17.txt |
AC |
19 ms |
3644 KiB |
| test_18.txt |
AC |
13 ms |
3520 KiB |
| test_19.txt |
AC |
26 ms |
3644 KiB |
| test_20.txt |
AC |
17 ms |
3576 KiB |
| test_21.txt |
AC |
29 ms |
3632 KiB |
| test_22.txt |
AC |
30 ms |
3580 KiB |
| test_23.txt |
AC |
24 ms |
3524 KiB |
| test_24.txt |
AC |
31 ms |
3500 KiB |
| test_25.txt |
AC |
29 ms |
3512 KiB |
| test_26.txt |
AC |
27 ms |
3512 KiB |
| test_27.txt |
AC |
29 ms |
3628 KiB |
| test_28.txt |
AC |
27 ms |
3624 KiB |
| test_29.txt |
AC |
29 ms |
3568 KiB |
| test_30.txt |
AC |
30 ms |
3512 KiB |
| test_31.txt |
AC |
28 ms |
3524 KiB |
| test_32.txt |
AC |
29 ms |
3524 KiB |
| test_33.txt |
AC |
27 ms |
3624 KiB |
| test_34.txt |
AC |
29 ms |
3464 KiB |
| test_35.txt |
AC |
31 ms |
3648 KiB |
| test_36.txt |
AC |
29 ms |
3592 KiB |
| test_37.txt |
AC |
29 ms |
3576 KiB |
| test_38.txt |
AC |
31 ms |
3628 KiB |
| test_39.txt |
AC |
24 ms |
3648 KiB |
| test_40.txt |
AC |
28 ms |
3520 KiB |