結果

問題 No.2551 2, 3, 5, 7 Game
ユーザー hato336hato336
提出日時 2023-11-25 13:44:42
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 696 bytes
コンパイル時間 227 ms
コンパイル使用メモリ 81,572 KB
実行使用メモリ 88,504 KB
最終ジャッジ日時 2023-11-25 13:44:45
合計ジャッジ時間 2,793 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

import collections,sys,math,functools,operator,itertools,bisect,heapq,decimal,string,time,random
#sys.setrecursionlimit(10**9)
#sys.set_int_max_str_digits(0)
t = int(input())
#alist = list(map(int,input().split()))
#alist = []
#s = input()
#n,m = map(int,input().split())
#for i in range(n):
#    alist.append(list(map(int,input().split())))
input = sys.stdin.readline()
def calc(x,n,turn):
    if x >= n:
        return turn
    else:
        a = []
        for i in [2,3,5,7]:
            a.append(calc(x*i,n,turn^1))
        if turn in a:
            return turn
        else:
            return turn^1
for i in range(t):
    n = int(input())
    print('sepa' if calc(1,n,0) == 0 else 'ryota')
0