結果

問題 No.522 Make Test Cases(テストケースを作る)
ユーザー titiatitia
提出日時 2024-01-24 04:42:19
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 1,409 ms / 2,000 ms
コード長 163 bytes
コンパイル時間 2,108 ms
コンパイル使用メモリ 11,648 KB
実行使用メモリ 10,240 KB
最終ジャッジ日時 2024-01-24 04:42:33
合計ジャッジ時間 13,364 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
10,240 KB
testcase_01 AC 73 ms
10,240 KB
testcase_02 AC 64 ms
10,240 KB
testcase_03 AC 124 ms
10,240 KB
testcase_04 AC 30 ms
9,984 KB
testcase_05 AC 28 ms
9,984 KB
testcase_06 AC 29 ms
9,984 KB
testcase_07 AC 29 ms
10,112 KB
testcase_08 AC 32 ms
10,240 KB
testcase_09 AC 93 ms
10,240 KB
testcase_10 AC 1,409 ms
10,240 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
for a in range(1,N):
    for b in range(a,N):
        c=N-a-b

        if a<=b<=c and 1<=c:
            print(a,b,c)
        else:
            break
0