結果
問題 |
No.3300 Frog Game
|
ユーザー |
|
提出日時 | 2025-10-05 14:03:08 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 2,142 bytes |
コンパイル時間 | 4,594 ms |
コンパイル使用メモリ | 335,264 KB |
実行使用メモリ | 7,716 KB |
最終ジャッジ日時 | 2025-10-05 14:03:15 |
合計ジャッジ時間 | 5,745 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 34 WA * 1 |
ソースコード
// # pragma GCC target("avx2") // # pragma GCC optimize("O3") // # pragma GCC optimize("unroll-loops") #include <bits/stdc++.h> #include <atcoder/all> using namespace std; using namespace atcoder; // #include <boost/multiprecision/cpp_int.hpp> // using namespace boost::multiprecision; #define ll long long #define rep(i, n) for (ll i = 0; i < (ll)(n); i++) #define vi vector<int> #define vl vector<ll> #define vd vector<double> #define vb vector<bool> #define vs vector<string> #define vc vector<char> #define ull unsigned long long #define chmax(a, b) a = max(a, b) #define chmin(a, b) a = min(a, b) ll inf = (1ll << 61); // const double PI=3.1415926535897932384626433832795028841971; // ll rui(ll a,ll b){ // if(b[i]==0)return 1; // if(b%2==1) return a*rui(a*a,b/2); // return rui(a*a,b/2); // } // ll kai(ll n){ // if(n==0)return 1; // return n*kai(n-1); // } // using mint = modint998244353;//static_modint<998244353> // using mint = modint1000000007;//static_modint<1000000007> // using mint = modint;//mint::set_mod(mod); // using mint1=static_modint<998244352>; // ll const mod=1000000007ll; // ll const mod=998244353ll; // ll modrui(ll a,ll b,ll mod){ // a%=mod; // if(b[i]==0)return 1; // if(b%2==1) return a*modrui(a*a%mod,b/2,mod)%mod; // return modrui(a*a%mod,b/2,mod)%mod; // } // ll inv(ll x){ // x%=mod; // return modrui(x,mod-2); // } // ll modkai(ll n){ // ll ret=1; // rep(i,n){ // ret*=(i+1)%mod; // ret%=mod; // } // return ret; // } // void incr(vl &v,ll n){// n進法 // ll k=v.size(); // v[k-1]++; // ll now=k-1; // while (v[now]>=n) // { // v[now]=0; // if(now==0)break; // v[now-1]++; // now--; // } // return; // } void solve(){ ll n,a,b; cin >> n >> a >> b; n-=1; n%=a+b; if(a>b)swap(a,b); if(n==0)cout << "sepa\n"; else if(n>=b)cout << "sepa\n"; else cout << ((n/a)%2==0 ? "ryota\n":"sepa\n"); } int main(){ ios::sync_with_stdio(false); std::cin.tie(nullptr); ll t = 1; // cin >> t; while (t--) solve(); }