結果
| 問題 | No.3475 Many Hello Substrings |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-03-20 22:02:37 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 5 ms / 2,000 ms |
| コード長 | 334 bytes |
| 記録 | |
| コンパイル時間 | 3,265 ms |
| コンパイル使用メモリ | 331,612 KB |
| 実行使用メモリ | 7,844 KB |
| 最終ジャッジ日時 | 2026-03-20 22:02:42 |
| 合計ジャッジ時間 | 3,828 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 7 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll=long long;
int main(){
int ttt;
cin>>ttt;
while(ttt--){
ll n,p,k;
cin>>n>>p>>k;
bool ans=false;
{
if(k%p==0&&(n/5)*p>=k)ans=true;
}
if(n>=5){
k-=(p-1);
n-=5;
if(k%p==0&&(n/5)*p>=k)ans=true;
}
if(ans)cout<<"Yes"<<endl;
else cout<<"No"<<endl;
}
}