結果

問題 No.522 Make Test Cases(テストケースを作る)
ユーザー M_sy1029
提出日時 2017-06-20 20:01:58
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 285 bytes
コンパイル時間 539 ms
コンパイル使用メモリ 56,540 KB
実行使用メモリ 10,496 KB
最終ジャッジ日時 2024-10-02 08:06:27
合計ジャッジ時間 6,330 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 1 WA * 9 OLE * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
#include<algorithm>
using namespace std;
int main() {

	int N;
	cin >> N;

	for (int i=1; i < N; i++) {
		for (int j=1; j + i < N; j++) {
			int c;
			if (c = N - j + i > 0) {
				cout << i<< " "<< j << " " << c << endl;
			}
		}
	}

	return 0;

}
0