結果
| 問題 | No.3475 Many Hello Substrings |
| コンテスト | |
| ユーザー |
detteiuu
|
| 提出日時 | 2026-03-20 21:59:27 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 217 bytes |
| 記録 | |
| コンパイル時間 | 293 ms |
| コンパイル使用メモリ | 85,588 KB |
| 実行使用メモリ | 61,320 KB |
| 最終ジャッジ日時 | 2026-03-20 21:59:30 |
| 合計ジャッジ時間 | 784 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 5 WA * 2 |
ソースコード
from sys import stdin
input = stdin.readline
for _ in range(int(input())):
N, P, K = map(int, input().split())
if K%P == 0 or P-1 <= K and (K-(P-1))%P == 0:
print("Yes")
else:
print("No")
detteiuu