結果

問題 No.522 Make Test Cases(テストケースを作る)
ユーザー cleanttedcleantted
提出日時 2017-06-02 23:49:01
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 1,577 ms / 2,000 ms
コード長 146 bytes
コンパイル時間 92 ms
コンパイル使用メモリ 11,656 KB
実行使用メモリ 10,220 KB
最終ジャッジ日時 2023-10-22 01:55:54
合計ジャッジ時間 4,128 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
10,220 KB
testcase_01 AC 81 ms
10,200 KB
testcase_02 AC 66 ms
10,196 KB
testcase_03 AC 134 ms
10,200 KB
testcase_04 AC 29 ms
9,992 KB
testcase_05 AC 28 ms
9,992 KB
testcase_06 AC 29 ms
9,992 KB
testcase_07 AC 29 ms
10,032 KB
testcase_08 AC 33 ms
10,212 KB
testcase_09 AC 101 ms
10,200 KB
testcase_10 AC 1,577 ms
10,176 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

a = 1
while a < int(N/3) + 1:
    b = a
    while b < int((N-a)/2) + 1:
        print(a, b, N - a - b)
        b += 1
    a += 1
0