結果

問題 No.522 Make Test Cases(テストケースを作る)
ユーザー aimyaimy
提出日時 2017-06-02 22:34:05
言語 Haskell
(9.6.2)
結果
AC  
実行時間 412 ms / 2,000 ms
コード長 148 bytes
コンパイル時間 7,017 ms
コンパイル使用メモリ 161,184 KB
実行使用メモリ 9,352 KB
最終ジャッジ日時 2023-10-22 00:43:17
合計ジャッジ時間 10,680 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 9 ms
9,320 KB
testcase_01 AC 22 ms
9,352 KB
testcase_02 AC 23 ms
9,348 KB
testcase_03 AC 32 ms
9,352 KB
testcase_04 AC 2 ms
5,216 KB
testcase_05 AC 2 ms
5,228 KB
testcase_06 AC 2 ms
5,220 KB
testcase_07 AC 3 ms
5,504 KB
testcase_08 AC 5 ms
7,932 KB
testcase_09 AC 32 ms
9,352 KB
testcase_10 AC 412 ms
9,352 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Loaded package environment from /home/judge/.ghc/x86_64-linux-9.6.2/environments/default
[1 of 2] Compiling Main             ( Main.hs, Main.o )
[2 of 2] Linking a.out

ソースコード

diff #

main = readLn >>= mapM_ (putStrLn . unwords . map show) . mtc

mtc n = do
 a <- [1..n-2]
 b <- [a..(div (n-a) 2)]
 let c = n - a - b
 return [a,b,c]
0