結果
| 問題 |
No.1571 All Your Cycles Are Same Lengths
|
| コンテスト | |
| ユーザー |
harurun
|
| 提出日時 | 2021-06-27 13:54:22 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 313 bytes |
| コンパイル時間 | 3,195 ms |
| コンパイル使用メモリ | 191,888 KB |
| 最終ジャッジ日時 | 2025-01-22 14:07:38 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 1 WA * 9 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main(){
int Q,n,T,u;
cin>>Q;
while(Q--){
cin>>n>>T;
if(T%n){
cout<<"No\n";
continue;
}
cout<<"Yes\n";
u=T/n;
for(int i=1;i<=n;i++){
for(int j=i+1;j<=n;j++){
cout<<i<<" "<<j<<" "<<u<<endl;
}
}
}
}
harurun