結果
問題 | No.522 Make Test Cases(テストケースを作る) |
ユーザー | fmhr |
提出日時 | 2018-08-24 16:13:10 |
言語 | Go (1.22.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 300 bytes |
コンパイル時間 | 14,026 ms |
コンパイル使用メモリ | 211,844 KB |
実行使用メモリ | 48,520 KB |
最終ジャッジ日時 | 2023-09-04 06:36:34 |
合計ジャッジ時間 | 14,929 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | AC | 1 ms
4,376 KB |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
ソースコード
package main import ( "bytes" "fmt" ) func main() { var N int fmt.Scan(&N) var out bytes.Buffer var i, j int for i = 1; i <= N; i++ { for j = i; i+j <= N; j++ { k := N - i - j if k >= j { out.WriteString(fmt.Sprintf("%d %d %d", i, j, k)) } } } fmt.Println(out.String()) }