結果
問題 |
No.522 Make Test Cases(テストケースを作る)
|
ユーザー |
![]() |
提出日時 | 2025-03-23 17:56:25 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 405 bytes |
コンパイル時間 | 1,798 ms |
コンパイル使用メモリ | 162,460 KB |
実行使用メモリ | 73,728 KB |
最終ジャッジ日時 | 2025-03-23 17:56:33 |
合計ジャッジ時間 | 6,858 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 8 WA * 3 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll = long long; #define rep(i, n) for(int i = 0; i < n; i++) int main() { int N; cin >> N; function<void(int, int, int)> dfs = [&](int a, int b, int c) { cout << a << " " << b << " " << c << endl; if(a == b && b + 1 > c - 1) return; if(b+ 1 <= c - 1) dfs(a, b + 1, c - 1); else dfs(a + 1, a + 1, N - (a + 1) * 2); }; dfs(1, 1, N - 2); }