結果

問題 No.522 Make Test Cases(テストケースを作る)
ユーザー aaaaaaiu
提出日時 2019-08-28 12:12:08
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 127 ms / 2,000 ms
コード長 281 bytes
コンパイル時間 1,845 ms
コンパイル使用メモリ 190,900 KB
最終ジャッジ日時 2025-01-07 15:27:39
ジャッジサーバーID
(参考情報)
judge4 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;

int main() {
    int n;
    cin>>n;
    for (int i=1;i<n;i++)
        for (int j=i;j+i<n;j++) {
            int c=n-i-j;
            if (c>=j)
                printf("%d %d %d\n",i,j,c);
        }
    return 0;
}
0