結果
| 問題 |
No.522 Make Test Cases(テストケースを作る)
|
| コンテスト | |
| ユーザー |
TAISA_
|
| 提出日時 | 2018-06-07 18:38:31 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 1,151 ms / 2,000 ms |
| コード長 | 466 bytes |
| コンパイル時間 | 1,258 ms |
| コンパイル使用メモリ | 158,284 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-30 10:33:39 |
| 合計ジャッジ時間 | 5,004 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
#include<bits/stdc++.h>
#define all(vec) vec.begin(),vec.end()
using namespace std;
typedef long long int ll;
typedef pair<int,int> P;
const ll MOD=1000000007;
const ll INF=1000000010;
const ll LINF=4000000000000000010LL;
const int MAX=310;
const double EPS=1e-9;
int dx[4]={0,1,0,-1};
int dy[4]={1,0,-1,0};
int main(){
int n;cin>>n;
for(int i=1;i<=n;i++){
for(int j=i;j<=n;j++){
if(n-i-j<j)continue;
cout<<i<<" "<<j<<" "<<n-i-j<<endl;
}
}
return 0;
}
TAISA_