結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
10,236 KB
testcase_01 AC 70 ms
10,216 KB
testcase_02 AC 54 ms
10,212 KB
testcase_03 AC 105 ms
10,216 KB
testcase_04 AC 24 ms
10,012 KB
testcase_05 AC 24 ms
10,012 KB
testcase_06 AC 24 ms
10,012 KB
testcase_07 AC 25 ms
10,052 KB
testcase_08 AC 27 ms
10,228 KB
testcase_09 AC 79 ms
10,216 KB
testcase_10 AC 1,211 ms
10,192 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

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