結果

問題 No.522 Make Test Cases(テストケースを作る)
ユーザー ミドリムシ
提出日時 2019-04-14 01:46:17
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 142 ms / 2,000 ms
コード長 254 bytes
コンパイル時間 317 ms
コンパイル使用メモリ 44,928 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-15 11:29:12
合計ジャッジ時間 2,307 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#include <vector>
using namespace std;
 
int main(){
    int N;
    scanf("%d", &N);
    for(int a = 1; a <= N / 3; a++){
        for(int b = a; a + b * 2 <= N; b++){
            printf("%d %d %d\n", a, b, N - a - b);
        }
    }
}
0