結果
問題 |
No.3300 Frog Game
|
ユーザー |
|
提出日時 | 2025-10-08 10:59:02 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 339 bytes |
コンパイル時間 | 3,573 ms |
コンパイル使用メモリ | 274,544 KB |
実行使用メモリ | 7,716 KB |
最終ジャッジ日時 | 2025-10-08 10:59:07 |
合計ジャッジ時間 | 5,217 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 35 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)n; ++i) using ll = long long; ll n, a, b; signed main() { cin.tie(0)->sync_with_stdio(0); cin >> n >> a >> b; n -= 2; n %= a + b; if (b <= n) { cout << "sepa\n"; return 0; } cout << (n / a % 2 == 1 ? "sepa" : "ryota") << endl; }