結果

問題 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  
実行時間 373 ms / 2,357 ms
コード長 532 bytes
コンパイル時間 2,340 ms
コンパイル使用メモリ 200,368 KB
実行使用メモリ 6,676 KB
最終ジャッジ日時 2023-11-25 19:31:40
合計ジャッジ時間 5,133 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,676 KB
testcase_01 AC 2 ms
6,676 KB
testcase_02 AC 2 ms
6,676 KB
testcase_03 AC 2 ms
6,676 KB
testcase_04 AC 2 ms
6,676 KB
testcase_05 AC 373 ms
6,676 KB
testcase_06 AC 344 ms
6,676 KB
testcase_07 AC 372 ms
6,676 KB
testcase_08 AC 343 ms
6,676 KB
testcase_09 AC 352 ms
6,676 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