結果

問題 No.3137 Non-Intersect Chord Triangle Game
ユーザー nikoro256
提出日時 2025-05-02 22:44:25
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 434 bytes
コンパイル時間 326 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 92,636 KB
最終ジャッジ日時 2025-05-02 22:44:35
合計ジャッジ時間 9,620 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 33 WA * 32
権限があれば一括ダウンロードができます

ソースコード

diff #

N,M=map(int,input().split())
l=[]
for _ in range(M):
    P,Q=map(int,input().split())
    l.append(P)
    l.append(Q)
if M==0:
    if N==2 or N>=6:
        print('Akane')
    else:
        print('Aoi')
    exit()
#print(l)
l.sort()
for i in range(len(l)-1):
    if l[i+1]-l[i]-1 == 2 or l[i+1]-l[i]-1 >= 6:
        print('Akane')
        exit()
if l[0]+N-l[-1]-1 == 2 or l[0]+N-l[-1]-1 >= 6:
    print('Akane')
    exit()
print('Aoi')
0