結果
問題 | No.522 Make Test Cases(テストケースを作る) |
ユーザー | htensai |
提出日時 | 2019-12-26 12:32:51 |
言語 | Java21 (openjdk 21) |
結果 |
WA
|
実行時間 | - |
コード長 | 459 bytes |
コンパイル時間 | 2,309 ms |
コンパイル使用メモリ | 80,896 KB |
実行使用メモリ | 98,352 KB |
最終ジャッジ日時 | 2024-04-14 10:34:57 |
合計ジャッジ時間 | 7,092 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | AC | 131 ms
54,164 KB |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
ソースコード
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); StringBuilder sb = new StringBuilder(); for (int i = 1; i * 3 <= n; i++) { for (int j = 1; i + j * 2 <= n; j++) { sb.append(i).append(" ").append(j).append(" ").append(n - i - j).append("\n"); } } System.out.print(sb); } }