結果

問題 No.2551 2, 3, 5, 7 Game
ユーザー sepa38sepa38
提出日時 2023-11-23 21:31:39
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 531 ms / 2,357 ms
コード長 190 bytes
コンパイル時間 260 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 75,912 KB
最終ジャッジ日時 2023-11-23 21:31:44
合計ジャッジ時間 4,828 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
59,468 KB
testcase_01 AC 42 ms
59,468 KB
testcase_02 AC 56 ms
64,728 KB
testcase_03 AC 42 ms
59,468 KB
testcase_04 AC 43 ms
59,468 KB
testcase_05 AC 502 ms
75,912 KB
testcase_06 AC 526 ms
75,912 KB
testcase_07 AC 504 ms
75,912 KB
testcase_08 AC 531 ms
75,912 KB
testcase_09 AC 499 ms
75,912 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

for _ in range(int(input())):
  n = int(input())
  flg = 0
  while n > 1:
    if flg:
      n = (n + 6) // 7
    else:
      n = (n + 1) // 2
    flg ^= 1
  print("ryota" if flg else "sepa")
0