結果
| 問題 |
No.2551 2, 3, 5, 7 Game
|
| コンテスト | |
| ユーザー |
rlangevin
|
| 提出日時 | 2023-12-15 12:34:33 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 490 bytes |
| コンパイル時間 | 336 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 22,288 KB |
| 最終ジャッジ日時 | 2024-09-27 06:15:51 |
| 合計ジャッジ時間 | 11,925 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 TLE * 1 -- * 4 |
ソースコード
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**7)
from functools import lru_cache
T = int(input())
for _ in range(T):
N = int(input())
@lru_cache(maxsize=None)
def f(x):
v = 0
if 2 * x < N:
v |= 1 - f(2 * x)
if 3 * x < N:
v |= 1 - f(3 * x)
if 5 * x < N:
v |= 1 - f(5 * x)
if 7 * x < N:
v |= 1 - f(7 * x)
return v
print("sepa") if f(1) else print("ryota")
rlangevin