結果

問題 No.3137 Non-Intersect Chord Triangle Game
ユーザー nikoro256
提出日時 2025-05-02 22:58:36
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 420 bytes
コンパイル時間 648 ms
コンパイル使用メモリ 82,844 KB
実行使用メモリ 92,716 KB
最終ジャッジ日時 2025-05-02 22:58:47
合計ジャッジ時間 9,363 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 31 WA * 34
権限があれば一括ダウンロードができます

ソースコード

diff #

N,M=map(int,input().split())
l=[]
for _ in range(M):
    P,Q=map(int,input().split())
    l.append(P)
    l.append(Q)

def ok(n):
    return n%2==0 and n!=4

if M==0:
    if ok(N):
        print('Akane')
    else:
        print('Aoi')
    exit()
#print(l)
l.sort()
for i in range(len(l)-1):
    if ok(l[i+1]-l[i]-1):
        print('Akane')
        exit()
if ok(l[0]+N-l[-1]-1):
    print('Akane')
    exit()
print('Aoi')
0