結果

問題 No.522 Make Test Cases(テストケースを作る)
ユーザー uafr_csuafr_cs
提出日時 2017-06-02 22:55:01
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 542 bytes
コンパイル時間 4,177 ms
コンパイル使用メモリ 77,436 KB
実行使用メモリ 68,640 KB
最終ジャッジ日時 2023-10-21 22:21:19
合計ジャッジ時間 10,575 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.PriorityQueue;
import java.util.Scanner;

public class Main {
	
	public static int RANGE = 100;
	
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		final int N = sc.nextInt();
		
		for(int a = 1; a <= N; a++){
			for(int b = a; a + b <= N; b++){
				for(int c = b; a + b + c <= N; c++){
					System.out.println(a + " " + b + " " + c);
				}
			}
		}
		
	}
}
0