結果
| 問題 |
No.3137 Non-Intersect Chord Triangle Game
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-05-02 22:04:20 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 681 bytes |
| コンパイル時間 | 2,410 ms |
| コンパイル使用メモリ | 199,956 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2025-05-02 22:04:26 |
| 合計ジャッジ時間 | 5,450 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 34 WA * 31 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
int N,M; cin >> N >> M;
vector<bool> NG(N);
while(M--){
int p,q; cin >> p >> q; p--; q--;
NG.at(p) = true,NG.at(q) = true;
}
int rot = 0;
for(int i=0; i<N; i++) if(NG.at(i)){rot = i; break;}
rotate(NG.begin(),NG.begin()+rot,NG.end());
int streak = 0,win = 0;
for(int i=0; i<N; i++){
if(NG.at(i)){
if(streak%4 == 2) win = 1;
streak = 0;
}
else streak++;
}
if(streak%4 == 2) win = 1;
if(win) cout << "Akane" << endl;
else cout << "Aoi" << endl;
}