結果
| 問題 |
No.522 Make Test Cases(テストケースを作る)
|
| コンテスト | |
| ユーザー |
Yut176
|
| 提出日時 | 2017-06-10 17:32:58 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 1,100 ms / 2,000 ms |
| コード長 | 508 bytes |
| コンパイル時間 | 723 ms |
| コンパイル使用メモリ | 82,532 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-24 15:43:23 |
| 合計ジャッジ時間 | 4,012 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
#include<iostream>
#include<algorithm>
#include<cstdio>
#include<cstdlib>
#include<vector>
#include<string>
#include<sstream>
#include<cmath>
#include<numeric>
#include<map>
#include<stack>
#include<queue>
using namespace std;
int main(void) {
long long int n;
cin >> n;
for(int a = 1; a < n; a++){
for(int b = a; b < n; b++){
int c = n - a - b;
if( c <= 0 ) continue;
if( b > c ) continue;
cout << a << " " << b << " " << c << endl;
}
}
return 0;
}
// EOF
Yut176