結果
問題 |
No.3300 Frog Game
|
ユーザー |
![]() |
提出日時 | 2025-10-06 19:12:00 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 426 bytes |
コンパイル時間 | 360 ms |
コンパイル使用メモリ | 41,196 KB |
実行使用メモリ | 7,720 KB |
最終ジャッジ日時 | 2025-10-06 19:12:02 |
合計ジャッジ時間 | 2,278 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 35 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:25:8: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 25 | scanf("%lld%lld%lld", &n, &a, &b); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
/* -*- coding: utf-8 -*- * * 3300.cc: No.3300 Frog Game - yukicoder */ #include<cstdio> #include<algorithm> using namespace std; /* constant */ /* typedef */ using ll = long long; /* global variables */ /* subroutines */ /* main */ int main() { ll n, a, b; scanf("%lld%lld%lld", &n, &a, &b); ll m = (n - 2) % (a + b); if (m >= b || ((m / a) & 1)) puts("sepa"); else puts("ryota"); return 0; }