結果
| 問題 |
No.2998 Rainbow Christmas Tree
|
| コンテスト | |
| ユーザー |
cled0328
|
| 提出日時 | 2024-12-25 12:15:24 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 341 bytes |
| コンパイル時間 | 4,085 ms |
| コンパイル使用メモリ | 251,268 KB |
| 最終ジャッジ日時 | 2025-02-26 16:38:46 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 2 WA * 56 |
ソースコード
#include <bits/stdc++.h>
#include <atcoder/all>
using namespace std;
using namespace atcoder;
int main(){
int n,k;cin>>n>>k;
vector<vector<int>> p(n-1,vector<int>(n));
for(int i=0;i<n-1;i++)for(int j=0;j<n;j++)cin>>p[i][j];
cout<<"Yes\n";
cout<<(k==0?1:0)<<" ";
for(int i=1;i<n-1;i++){
cout<<i+1<<" ";
}
cout<<(k==0?0:n)<<"\n";
}
cled0328