結果
| 問題 | No.3475 Many Hello Substrings |
| コンテスト | |
| ユーザー |
detteiuu
|
| 提出日時 | 2026-03-20 22:05:15 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 33 ms / 2,000 ms |
| コード長 | 381 bytes |
| 記録 | |
| コンパイル時間 | 219 ms |
| コンパイル使用メモリ | 85,328 KB |
| 実行使用メモリ | 62,420 KB |
| 最終ジャッジ日時 | 2026-03-20 22:05:18 |
| 合計ジャッジ時間 | 911 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 7 |
ソースコード
from sys import stdin
input = stdin.readline
for _ in range(int(input())):
N, P, K = map(int, input().split())
if N <= 4:
if K:
print("No")
else:
print("Yes")
elif K%P == 0 and K <= N//5*P:
print("Yes")
elif P-1 <= K and (K-(P-1))%P == 0 and K-(P-1) <= (N//5-1)*P:
print("Yes")
else:
print("No")
detteiuu