結果

問題 No.522 Make Test Cases(テストケースを作る)
ユーザー ryubokuryuboku
提出日時 2017-06-23 23:21:19
言語 Java19
(openjdk 21)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 435 bytes
コンパイル時間 2,795 ms
コンパイル使用メモリ 73,680 KB
実行使用メモリ 65,936 KB
最終ジャッジ日時 2023-07-26 16:44:23
合計ジャッジ時間 11,341 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 279 ms
57,328 KB
testcase_01 AC 422 ms
63,868 KB
testcase_02 AC 376 ms
63,600 KB
testcase_03 AC 557 ms
65,428 KB
testcase_04 AC 162 ms
56,936 KB
testcase_05 AC 161 ms
57,016 KB
testcase_06 AC 161 ms
56,928 KB
testcase_07 AC 182 ms
57,128 KB
testcase_08 AC 225 ms
57,076 KB
testcase_09 AC 460 ms
64,708 KB
testcase_10 TLE -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main{
    public static void main(String args[] ) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        for (int i = 1; i < n - 1; i++) {
            for (int j = i; j < n - i; j++) {
                if (n - i - j >= j) {
                    System.out.println(i + " " + j + " " + (n - i - j));
                }
            }    
        }
    }    
}
0