結果
| 問題 |
No.3300 Frog Game
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-10-06 00:27:46 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 563 bytes |
| コンパイル時間 | 394 ms |
| コンパイル使用メモリ | 82,584 KB |
| 実行使用メモリ | 53,988 KB |
| 最終ジャッジ日時 | 2025-10-06 00:27:50 |
| 合計ジャッジ時間 | 3,146 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 34 WA * 1 |
ソースコード
import sys
input = sys.stdin.readline
N, A, B = map(int, input().split())
M = A+B
pos = (N-2)%M
amari = M%(2*A)
if amari==0:
tmp3 = pos//A
if tmp3%2==0:
print("ryota")
else:
print("sepa")
else:
if pos>=M-amari:
if amari<=A:
print("sepa")
else:
tmp4 = amari-A
if tmp4<pos%(2*A):
print("ryota")
else:
print("sepa")
else:
tmp3 = pos//A
if tmp3%2==0:
print("ryota")
else:
print("sepa")