結果
問題 | No.2551 2, 3, 5, 7 Game |
ユーザー |
![]() |
提出日時 | 2023-11-25 19:31:35 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 344 ms / 2,357 ms |
コード長 | 532 bytes |
コンパイル時間 | 1,845 ms |
コンパイル使用メモリ | 191,336 KB |
最終ジャッジ日時 | 2025-02-18 01:09:53 |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
ソースコード
#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(); } }