結果

問題 No.3300 Frog Game
ユーザー テナガザル
提出日時 2025-10-05 16:27:39
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 583 bytes
コンパイル時間 773 ms
コンパイル使用メモリ 97,224 KB
実行使用メモリ 7,720 KB
最終ジャッジ日時 2025-10-05 16:27:47
合計ジャッジ時間 1,691 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 5 WA * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <algorithm>

using namespace std;

int main()
{
  // int t;
  // cin >> t;
  // while (t--)
  // {

  //   int n = 50, a, b;
  //   cin >> a >> b;
  //   vector<int> w(n + 1);
  //   w[n] = 1;
  //   for (int i = n - 1; i >= 0; --i)
  //   {
  //     if ((i + a <= n && w[i + a] == 0) || (i + b <= n && w[i + b] == 0)) w[i] = 1;
  //   }
  //   for (int i = 0; i <= n; ++i) cout << w[i];
  //   cout << endl;
  // }
  long long n, a, b;
  cin >> n >> a >> b;
  long long d = n % (a + b);
  cout << (d <= a ? "sepa" : "ryota") << endl;
}
0