結果
問題 | No.2551 2, 3, 5, 7 Game |
ユーザー | hato336 |
提出日時 | 2023-11-25 14:01:11 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 742 ms / 2,357 ms |
コード長 | 850 bytes |
コンパイル時間 | 275 ms |
コンパイル使用メモリ | 81,696 KB |
実行使用メモリ | 91,704 KB |
最終ジャッジ日時 | 2023-11-25 14:01:17 |
合計ジャッジ時間 | 5,833 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 138 ms
89,144 KB |
testcase_01 | AC | 131 ms
88,760 KB |
testcase_02 | AC | 132 ms
88,760 KB |
testcase_03 | AC | 132 ms
88,760 KB |
testcase_04 | AC | 132 ms
88,760 KB |
testcase_05 | AC | 740 ms
91,448 KB |
testcase_06 | AC | 740 ms
91,576 KB |
testcase_07 | AC | 718 ms
91,576 KB |
testcase_08 | AC | 742 ms
91,576 KB |
testcase_09 | AC | 720 ms
91,704 KB |
ソースコード
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 @functools.lru_cache(maxsize=1000000) 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()) c = 0 for j in range(20): if 14**j < n <= 2*14**j: print('ryota') c = 1 break if c == 0: print('sepa')