結果
問題 |
No.3300 Frog Game
|
ユーザー |
![]() |
提出日時 | 2025-10-05 16:27:24 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 341 bytes |
コンパイル時間 | 2,719 ms |
コンパイル使用メモリ | 275,852 KB |
実行使用メモリ | 7,716 KB |
最終ジャッジ日時 | 2025-10-05 16:27:30 |
合計ジャッジ時間 | 3,935 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 35 |
ソースコード
#include<bits/stdc++.h> using namespace std; #define rep(i, n) for(int i = 0; i < (int)(n); i++) int main(){ long long N, A, B; cin >> N >> A >> B; N %= (A+B); if(N <= 1)N += A+B; if(N <= max(A, B)+1)cout << ((N-2)/min(A, B)%2 ? "sepa" : "ryota") << endl; else cout << ((N-2-max(A, B))/min(A, B)%2 ? "ryota" : "sepa") << endl; }