結果

問題 No.522 Make Test Cases(テストケースを作る)
ユーザー h_nosonh_noson
提出日時 2017-06-14 22:28:01
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 1,277 ms / 2,000 ms
コード長 132 bytes
コンパイル時間 806 ms
コンパイル使用メモリ 11,676 KB
実行使用メモリ 10,048 KB
最終ジャッジ日時 2023-10-25 04:02:41
合計ジャッジ時間 6,213 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
10,048 KB
testcase_01 AC 70 ms
10,032 KB
testcase_02 AC 60 ms
10,032 KB
testcase_03 AC 117 ms
10,032 KB
testcase_04 AC 30 ms
9,964 KB
testcase_05 AC 30 ms
9,964 KB
testcase_06 AC 31 ms
9,964 KB
testcase_07 AC 30 ms
9,968 KB
testcase_08 AC 33 ms
10,048 KB
testcase_09 AC 89 ms
10,032 KB
testcase_10 AC 1,277 ms
10,032 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())

for i in range(1,n):
    for j in range(i,n-i):
        if j <= n-i-j:
            print("%d %d %d" % (i,j,n-i-j))
0