結果
| 問題 | No.3475 Many Hello Substrings |
| コンテスト | |
| ユーザー |
kidodesu
|
| 提出日時 | 2026-03-20 21:34:11 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 42 ms / 2,000 ms |
| コード長 | 496 bytes |
| 記録 | |
| コンパイル時間 | 610 ms |
| コンパイル使用メモリ | 85,396 KB |
| 実行使用メモリ | 67,604 KB |
| 最終ジャッジ日時 | 2026-03-20 21:34:13 |
| 合計ジャッジ時間 | 1,054 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 7 |
ソースコード
for _ in range(int(input())):
n, p, k = list(map(int, input().split()))
if p == 1:
if k <= n // 5:
print("Yes")
else:
print("No")
else:
if not k % p:
if k // p <= n // 5:
print("Yes")
else:
print("No")
elif k % p == p - 1:
if k // p + 1 <= n // 5:
print("Yes")
else:
print("No")
else:
print("No")
kidodesu