結果
問題 | No.522 Make Test Cases(テストケースを作る) |
ユーザー |
![]() |
提出日時 | 2017-06-02 22:31:55 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 150 ms / 2,000 ms |
コード長 | 624 bytes |
コンパイル時間 | 750 ms |
コンパイル使用メモリ | 85,640 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-22 02:00:05 |
合計ジャッジ時間 | 2,736 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
#include <cstdio> #include <cmath> #include <cstring> #include <ctime> #include <iostream> #include <algorithm> #include <set> #include <vector> #include <sstream> #include <typeinfo> #include <fstream> #include <climits> #include <functional> #define REP(i,n) for(int i = 0;i < n;i++) using namespace std; typedef long long ll; const int INF = INT_MAX / 4; const int max_n = 1e3; int main(void) { cin.tie(0); ios::sync_with_stdio(false); int N; cin >> N; for (int a = 1;a <= N/3;a++) { for (int b = a;b <= (N-a)/2;b++) { cout << a << " " << b << " " << N - a - b << "\n"; } } return 0; }