結果

問題 No.522 Make Test Cases(テストケースを作る)
ユーザー Mcpu3Mcpu3
提出日時 2018-12-06 16:48:36
言語 Java21
(openjdk 21)
結果
TLE  
実行時間 -
コード長 319 bytes
コンパイル時間 3,183 ms
コンパイル使用メモリ 71,596 KB
実行使用メモリ 56,856 KB
最終ジャッジ日時 2023-10-12 02:48:10
合計ジャッジ時間 13,645 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 456 ms
55,200 KB
testcase_01 AC 967 ms
51,592 KB
testcase_02 AC 852 ms
51,420 KB
testcase_03 AC 1,323 ms
51,080 KB
testcase_04 AC 124 ms
39,600 KB
testcase_05 AC 128 ms
39,288 KB
testcase_06 AC 127 ms
39,096 KB
testcase_07 AC 188 ms
39,740 KB
testcase_08 AC 317 ms
48,172 KB
testcase_09 AC 1,161 ms
51,364 KB
testcase_10 TLE -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		sc.close();
		for (int i = 1; i < N - 1; ++i) {
			for (int j = i; j < N - i; ++j) {
				if (i + 2 * j <= N) System.out.printf("%d %d %d\n", i, j, N - i - j);
			}
		}
	}
}
0