結果

問題 No.522 Make Test Cases(テストケースを作る)
ユーザー RIGIHRIGIH
提出日時 2017-06-23 20:36:44
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 142 ms / 2,000 ms
コード長 286 bytes
コンパイル時間 563 ms
コンパイル使用メモリ 57,488 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-04-14 21:36:14
合計ジャッジ時間 4,321 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,812 KB
testcase_01 AC 6 ms
6,940 KB
testcase_02 AC 5 ms
6,940 KB
testcase_03 AC 11 ms
6,940 KB
testcase_04 AC 1 ms
6,940 KB
testcase_05 AC 2 ms
6,948 KB
testcase_06 AC 2 ms
6,940 KB
testcase_07 AC 1 ms
6,940 KB
testcase_08 AC 2 ms
6,944 KB
testcase_09 AC 8 ms
6,940 KB
testcase_10 AC 142 ms
6,940 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<stdio.h>
#include <iostream>
#include <cstring>
#include <math.h>
using namespace std;


int main(){
	
		int n;
		cin>>n;
		int a=1;
		while(a<=n/3){
			int bc=n-a;
			int b=a;
			while(b<=bc/2){
				printf("%d %d %d\n",a,b,bc-b);
				b++;
			}
			a++;
		}

	
	

	
	return 0;
}
0