結果

問題 No.522 Make Test Cases(テストケースを作る)
ユーザー u-shou-sho
提出日時 2017-06-02 22:36:10
言語 C++11
(gcc 11.4.0)
結果
OLE  
実行時間 -
コード長 268 bytes
コンパイル時間 398 ms
コンパイル使用メモリ 55,408 KB
実行使用メモリ 7,716 KB
最終ジャッジ日時 2023-10-21 21:06:04
合計ジャッジ時間 7,806 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 OLE -
testcase_01 -- -
testcase_02 -- -
testcase_03 -- -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
using namespace std;
int main(){
    int n;
    cin>>n;
    int a,b,c;
    for(a=1;a<=n/3;a++){
        for(b=1;b<=n/3;b++){
            for(c=n-a-b;;c++){
                cout <<a<<" "<<b<<" "<<c<<endl;
            }
        }
    }
    return 0;
}
0