結果
問題 | No.522 Make Test Cases(テストケースを作る) |
ユーザー | Daigo HIROOKA |
提出日時 | 2018-06-29 10:11:13 |
言語 | Java21 (openjdk 21) |
結果 |
WA
|
実行時間 | - |
コード長 | 335 bytes |
コンパイル時間 | 3,563 ms |
コンパイル使用メモリ | 74,740 KB |
実行使用メモリ | 64,032 KB |
最終ジャッジ日時 | 2023-09-13 15:06:50 |
合計ジャッジ時間 | 8,515 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
ソースコード
import java.util.*; import java.io.*; public class No522{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); PrintWriter pw = new PrintWriter(System.out); int n = sc.nextInt(); for(int a = 1; a <= n/3; a++){ for(int b = a; b <= (n-a)/2; b++){ pw.println(a+" "+b+" "+(n-a-b)); } } } }