結果

問題 No.2551 2, 3, 5, 7 Game
ユーザー Today03Today03
提出日時 2023-11-25 19:31:35
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 318 ms / 2,357 ms
コード長 532 bytes
コンパイル時間 2,279 ms
コンパイル使用メモリ 198,768 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-26 11:09:54
合計ジャッジ時間 4,470 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,812 KB
testcase_01 AC 2 ms
6,940 KB
testcase_02 AC 2 ms
6,940 KB
testcase_03 AC 2 ms
6,944 KB
testcase_04 AC 2 ms
6,940 KB
testcase_05 AC 312 ms
6,944 KB
testcase_06 AC 318 ms
6,940 KB
testcase_07 AC 313 ms
6,940 KB
testcase_08 AC 304 ms
6,940 KB
testcase_09 AC 291 ms
6,940 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#include <iterator>
using namespace std;
#if __has_include("Today's/debug.cpp")
#include "Today's/debug.cpp"
#else
#define debug(...)
#define print_line
#define debugc(...)
#define cerr \
	if (false) cerr
#endif

void solve() {
	long long N;
	cin >> N;
	long long now = 1;
	while (true) {
		now *= 2;
		if (now >= N) {
			cout << "ryota\n";
			return;
		}
		now *= 7;
		if (now >= N) {
			cout << "sepa\n";
			return;
		}
	}
}

int main() {
	int T;
	cin >> T;
	for (int i = 0; i < T; i++) {
		solve();
	}
}
0