結果

問題 No.522 Make Test Cases(テストケースを作る)
ユーザー lazyshokatsulazyshokatsu
提出日時 2017-06-20 19:30:17
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 297 bytes
コンパイル時間 546 ms
コンパイル使用メモリ 55,208 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-04-10 06:22:41
合計ジャッジ時間 3,901 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include<iostream>
using namespace std;

int main () {
	int N;
	cin >> N;
	int i, j, k;
		for (i = 1; i <= N / 3; i++) {
			for (j = i; j <= N / 3 + 1; j++) {
				for (k = j;  k <= N - 2 ; k++) {
					if (i + j + k == N) { cout << i << ' ' << j << ' ' << k << endl; }
				}
			}
		}
	return 0;
}

0