結果

問題 No.2551 2, 3, 5, 7 Game
ユーザー konchakoncha
提出日時 2023-11-25 14:16:27
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 250 ms / 2,357 ms
コード長 332 bytes
コンパイル時間 284 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 77,896 KB
最終ジャッジ日時 2023-11-25 14:16:30
合計ジャッジ時間 2,717 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
59,608 KB
testcase_01 AC 43 ms
59,612 KB
testcase_02 AC 42 ms
59,612 KB
testcase_03 AC 41 ms
59,612 KB
testcase_04 AC 42 ms
59,612 KB
testcase_05 AC 246 ms
77,764 KB
testcase_06 AC 250 ms
77,764 KB
testcase_07 AC 243 ms
77,764 KB
testcase_08 AC 247 ms
77,764 KB
testcase_09 AC 212 ms
77,896 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import ceil

T = int(input())
numbers = [int(input()) for _ in range(T)]

for N in numbers:
    win = ceil(N/2)
    flag = False
    now = win

    while now > 1:
        if flag:
            now = ceil(now/2)
        else:
            now = ceil(now/7)
        flag = not flag
    
    print("sepa" if flag else "ryota")
0