結果

問題 No.2551 2, 3, 5, 7 Game
ユーザー ntuda
提出日時 2023-12-06 20:46:53
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 563 ms / 2,357 ms
コード長 260 bytes
コンパイル時間 382 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 76,672 KB
最終ジャッジ日時 2024-09-27 01:47:49
合計ジャッジ時間 4,373 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

from bisect import *

tmp = 1
X = []
while tmp <= 10 ** 16:
    tmp *= 2
    X.append(tmp)
    tmp *= 7
    X.append(tmp)
for _ in range(int(input())):
    N = int(input())
    if (bisect_left(X, N) & 1):
        print("sepa")
    else:
        print("ryota")
0