結果
| 問題 | No.3475 Many Hello Substrings |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-03-20 23:27:02 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 77 ms / 2,000 ms |
| + 482µs | |
| コード長 | 325 bytes |
| 記録 | |
| コンパイル時間 | 222 ms |
| コンパイル使用メモリ | 96,108 KB |
| 実行使用メモリ | 83,712 KB |
| 最終ジャッジ日時 | 2026-08-02 15:33:16 |
| 合計ジャッジ時間 | 1,820 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 7 |
ソースコード
t = int(input())
for _ in range(t):
n, p, k = map(int, input().split())
ok = False
if k % p == 0:
i = k // p
if 0 <= i <= n // 5:
ok = True
if not ok and (k + 1) % p == 0:
i = (k + 1) // p
if 0 <= i <= n // 5:
ok = True
print("Yes" if ok else "No")