結果
| 問題 | No.3475 Many Hello Substrings |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-03-20 23:27:02 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 41 ms / 2,000 ms |
| コード長 | 325 bytes |
| 記録 | |
| コンパイル時間 | 127 ms |
| コンパイル使用メモリ | 85,120 KB |
| 実行使用メモリ | 67,940 KB |
| 最終ジャッジ日時 | 2026-03-20 23:27:03 |
| 合計ジャッジ時間 | 913 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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")