結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
53,460 KB
testcase_01 AC 36 ms
53,460 KB
testcase_02 AC 36 ms
53,460 KB
testcase_03 AC 36 ms
53,460 KB
testcase_04 AC 37 ms
53,460 KB
testcase_05 AC 491 ms
76,148 KB
testcase_06 AC 502 ms
76,132 KB
testcase_07 AC 506 ms
76,140 KB
testcase_08 AC 521 ms
76,148 KB
testcase_09 AC 484 ms
76,008 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from bisect import *

tmp = 1
X = [1]
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("ryota")
    else:
        print("sepa")
0