結果

問題 No.522 Make Test Cases(テストケースを作る)
ユーザー ebicochinealebicochineal
提出日時 2017-06-02 23:04:04
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 1,204 ms / 2,000 ms
コード長 249 bytes
コンパイル時間 225 ms
コンパイル使用メモリ 11,684 KB
実行使用メモリ 10,212 KB
最終ジャッジ日時 2023-10-22 01:29:46
合計ジャッジ時間 4,213 ms
ジャッジサーバーID
(参考情報)
judge12 / judge9
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
10,212 KB
testcase_01 AC 66 ms
10,192 KB
testcase_02 AC 52 ms
10,188 KB
testcase_03 AC 105 ms
10,192 KB
testcase_04 AC 25 ms
9,992 KB
testcase_05 AC 25 ms
9,992 KB
testcase_06 AC 25 ms
9,992 KB
testcase_07 AC 26 ms
10,028 KB
testcase_08 AC 27 ms
10,204 KB
testcase_09 AC 75 ms
10,192 KB
testcase_10 AC 1,204 ms
10,168 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#! /usr/bin/env python3

N = int(input())
m = 1
a = b = c = m
c = n = N - 2

while 1:
    print(a, b, c)
    if b < c - 1:
        b += 1
        c -= 1
    else:
        n -= 2
        c = n
        m += 1
        a = b = m
        if a > c : break
0