結果

問題 No.2551 2, 3, 5, 7 Game
ユーザー koncha
提出日時 2023-11-25 14:13:09
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 358 bytes
コンパイル時間 374 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 78,464 KB
最終ジャッジ日時 2024-09-26 10:40:28
合計ジャッジ時間 2,664 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import ceil

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

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

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