結果
問題 | No.522 Make Test Cases(テストケースを作る) |
ユーザー |
![]() |
提出日時 | 2021-11-04 09:08:14 |
言語 | C++17(clang) (17.0.6 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 140 ms / 2,000 ms |
コード長 | 490 bytes |
コンパイル時間 | 1,264 ms |
コンパイル使用メモリ | 139,928 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-14 04:58:06 |
合計ジャッジ時間 | 3,590 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
#include <cassert>#include <cmath>#include <algorithm>#include <iostream>#include <iomanip>#include <climits>#include <map>#include <queue>#include <set>#include <cstring>#include <vector>using namespace std;typedef long long ll;int main() {int N;cin >> N;for (int a = 1; a <= N; ++a) {for (int b = a; b <= N; ++b) {if (a + b >= N) break;int c = N - (a + b);if (b > c) break;printf("%d %d %d\n", a, b, c);}}return 0;}