結果
| 問題 | No.3633 Rabbit and turtle |
| コンテスト | |
| ユーザー |
detteiuu
|
| 提出日時 | 2026-08-21 21:34:58 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 291 bytes |
| 記録 | |
| コンパイル時間 | 272 ms |
| コンパイル使用メモリ | 95,856 KB |
| 実行使用メモリ | 84,736 KB |
| 最終ジャッジ日時 | 2026-08-21 21:35:04 |
| 合計ジャッジ時間 | 2,664 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 1 WA * 15 |
ソースコード
from sys import stdin
input = stdin.readline
n = 10**100
for _ in range(int(input())):
A, B, D, R = map(int, input().split())
C = (D+R-1)//R+1
if B*C < A:
print("rabbit")
elif B*C > A:
print("turtle")
else:
print("tie" if n%C == 0 else "rabbit")
detteiuu