結果

問題 No.522 Make Test Cases(テストケースを作る)
ユーザー greentea011
提出日時 2019-04-10 13:25:00
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 229 bytes
コンパイル時間 433 ms
コンパイル使用メモリ 29,056 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-07-07 03:38:17
合計ジャッジ時間 2,131 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 1 WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>

int main() {
    int n;
    scanf("%d",&n);
    int i,j;
    int s=n/3+1;
    int t=(n>>1)+1;

    for (i=1;i<s;i++) {
        for (j=i;j<t;j++) {
            printf("%d %d %d\n",i,j,n-j-i);
        }
    }
}
0