結果
| 問題 |
No.2285 Make A Unit Square
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-04-28 21:44:11 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 758 bytes |
| コンパイル時間 | 1,589 ms |
| コンパイル使用メモリ | 196,976 KB |
| 最終ジャッジ日時 | 2025-02-12 15:04:07 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | WA * 4 |
ソースコード
#include <bits/stdc++.h>
using i64 = long long;
int sg[200];
void solve() {
int a, b;
std::cin >> a >> b;
if (a > 100) {
a -= (a - 100) / 34 * 34;
}
if (b > 100) {
b -= (b - 100) / 34 * 34;
}
if (a ^ b) {
std::cout << "First\n";
} else {
std::cout << "Second\n";
}
}
int main() {
std::ios::sync_with_stdio(false);
std::cin.tie(nullptr);
for (int i = 2; i < 200; i++) {
std::set<int> s;
for (int j = 2; j + 2 <= i; j++) {
s.insert(sg[j] ^ sg[i - j]);
}
while (s.count(sg[i])) {
sg[i]++;
}
}
int t;
std::cin >> t;
while (t--) {
solve();
}
return 0;
}