結果

問題 No.153 石の山
ユーザー ntuda
提出日時 2025-02-15 18:48:54
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 35 ms / 5,000 ms
コード長 254 bytes
コンパイル時間 246 ms
コンパイル使用メモリ 82,912 KB
実行使用メモリ 53,484 KB
最終ジャッジ日時 2025-02-15 18:48:57
合計ジャッジ時間 2,341 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
if N == 1:
    print("B")
elif N <= 8:
    print("A")
elif N <= 24:
    if N % 2 == 1:
        print("B")
    else:
        print("A")
elif N <= 96:
    print("A")
else:
    if N % 2 == 1:
        print("B")
    else:
        print("A")
0