結果

問題 No.522 Make Test Cases(テストケースを作る)
ユーザー vwxyzvwxyz
提出日時 2022-04-10 14:07:16
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 1,793 ms / 2,000 ms
コード長 168 bytes
コンパイル時間 358 ms
コンパイル使用メモリ 10,724 KB
実行使用メモリ 8,404 KB
最終ジャッジ日時 2023-08-20 19:26:52
合計ジャッジ時間 5,735 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 24 ms
8,344 KB
testcase_01 AC 69 ms
8,248 KB
testcase_02 AC 57 ms
8,252 KB
testcase_03 AC 135 ms
8,208 KB
testcase_04 AC 13 ms
7,772 KB
testcase_05 AC 12 ms
7,848 KB
testcase_06 AC 12 ms
7,852 KB
testcase_07 AC 13 ms
7,824 KB
testcase_08 AC 16 ms
8,252 KB
testcase_09 AC 94 ms
8,404 KB
testcase_10 AC 1,793 ms
8,348 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
readline=sys.stdin.readline

N=int(readline())
for a in range(1,N+1):
    for b in range(a,N+1):
        c=N-a-b
        if a<=b<=c:
            print(a,b,c)
0