結果

問題 No.2551 2, 3, 5, 7 Game
ユーザー ntudantuda
提出日時 2023-12-06 20:46:53
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 528 ms / 2,357 ms
コード長 260 bytes
コンパイル時間 317 ms
コンパイル使用メモリ 81,572 KB
実行使用メモリ 76,144 KB
最終ジャッジ日時 2023-12-06 20:46:57
合計ジャッジ時間 4,293 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
53,460 KB
testcase_01 AC 37 ms
53,460 KB
testcase_02 AC 37 ms
53,460 KB
testcase_03 AC 37 ms
53,460 KB
testcase_04 AC 37 ms
53,460 KB
testcase_05 AC 500 ms
76,144 KB
testcase_06 AC 516 ms
76,144 KB
testcase_07 AC 500 ms
76,144 KB
testcase_08 AC 528 ms
76,144 KB
testcase_09 AC 479 ms
75,884 KB
権限があれば一括ダウンロードができます

ソースコード

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