結果
| 問題 | No.3633 Rabbit and turtle |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-05-30 15:29:29 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 209 bytes |
| 記録 | |
| コンパイル時間 | 222 ms |
| コンパイル使用メモリ | 96,624 KB |
| 実行使用メモリ | 91,400 KB |
| 最終ジャッジ日時 | 2026-08-21 20:53:18 |
| 合計ジャッジ時間 | 4,099 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 1 |
| other | RE * 16 |
ソースコード
A, B, D, R = map(int, input().split())
W = (D + R - 1) // R + 1
if A != B * W:
if A < B * W:
print("turtle")
else:
print("rabbit")
else:
if pow(10, 100, W) == 0:
print("tie")
else:
print("rabbit")