結果

問題 No.522 Make Test Cases(テストケースを作る)
ユーザー aaaaaaaaaa
提出日時 2017-06-03 01:35:13
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 1,353 ms / 2,000 ms
コード長 131 bytes
コンパイル時間 111 ms
コンパイル使用メモリ 11,756 KB
実行使用メモリ 10,300 KB
最終ジャッジ日時 2023-10-22 02:19:50
合計ジャッジ時間 3,928 ms
ジャッジサーバーID
(参考情報)
judge9 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
10,300 KB
testcase_01 AC 73 ms
10,280 KB
testcase_02 AC 62 ms
10,276 KB
testcase_03 AC 120 ms
10,280 KB
testcase_04 AC 30 ms
10,072 KB
testcase_05 AC 29 ms
10,072 KB
testcase_06 AC 29 ms
10,072 KB
testcase_07 AC 30 ms
10,116 KB
testcase_08 AC 33 ms
10,292 KB
testcase_09 AC 92 ms
10,280 KB
testcase_10 AC 1,353 ms
10,236 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
for x in range(1,~-n):
    for y in range(x,-~n-x):
        z=n-x-y
        if z<y:break
        if z>0:print(x,y,z)
0