結果

問題 No.522 Make Test Cases(テストケースを作る)
ユーザー akitsugu777akitsugu777
提出日時 2019-09-05 17:11:13
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 1,326 ms / 2,000 ms
コード長 154 bytes
コンパイル時間 191 ms
コンパイル使用メモリ 10,656 KB
実行使用メモリ 8,336 KB
最終ジャッジ日時 2023-09-02 13:27:32
合計ジャッジ時間 5,866 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 25 ms
8,336 KB
testcase_01 AC 59 ms
8,284 KB
testcase_02 AC 48 ms
8,308 KB
testcase_03 AC 103 ms
8,276 KB
testcase_04 AC 15 ms
7,884 KB
testcase_05 AC 15 ms
7,920 KB
testcase_06 AC 15 ms
7,844 KB
testcase_07 AC 15 ms
7,836 KB
testcase_08 AC 18 ms
8,252 KB
testcase_09 AC 76 ms
8,264 KB
testcase_10 AC 1,326 ms
8,308 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())

for i in range(1, (n//3)+1):
    for j in range(1, (n-i)//2+1):
        k = n - i - j
        if i <= j <= k:
            print(i, j, k)
0