結果

問題 No.522 Make Test Cases(テストケースを作る)
ユーザー GrayCoderGrayCoder
提出日時 2017-06-02 23:45:10
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 1,228 ms / 2,000 ms
コード長 228 bytes
コンパイル時間 273 ms
コンパイル使用メモリ 11,792 KB
実行使用メモリ 10,204 KB
最終ジャッジ日時 2023-10-22 01:53:39
合計ジャッジ時間 3,951 ms
ジャッジサーバーID
(参考情報)
judge11 / judge9
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
10,204 KB
testcase_01 AC 67 ms
10,188 KB
testcase_02 AC 58 ms
10,184 KB
testcase_03 AC 109 ms
10,188 KB
testcase_04 AC 30 ms
9,984 KB
testcase_05 AC 29 ms
9,984 KB
testcase_06 AC 29 ms
9,984 KB
testcase_07 AC 29 ms
10,024 KB
testcase_08 AC 33 ms
10,192 KB
testcase_09 AC 84 ms
10,188 KB
testcase_10 AC 1,228 ms
10,168 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    N = int(input())

    a = N // 3
    b = (N - 1) // 2

    for i in range(1, a + 1):
        for j in range(1, b + 1):
            k = N - i - j
            if i <= j <= k:
                print(i, j, k)

main()
0