結果

問題 No.522 Make Test Cases(テストケースを作る)
ユーザー 👑 yumechiyumechi
提出日時 2017-03-19 09:54:19
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 1,183 ms / 2,000 ms
コード長 216 bytes
コンパイル時間 130 ms
コンパイル使用メモリ 11,688 KB
実行使用メモリ 10,256 KB
最終ジャッジ日時 2023-10-21 23:31:59
合計ジャッジ時間 3,796 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
10,256 KB
testcase_01 AC 68 ms
10,236 KB
testcase_02 AC 57 ms
10,232 KB
testcase_03 AC 109 ms
10,236 KB
testcase_04 AC 28 ms
10,036 KB
testcase_05 AC 29 ms
10,036 KB
testcase_06 AC 28 ms
10,036 KB
testcase_07 AC 29 ms
10,072 KB
testcase_08 AC 31 ms
10,248 KB
testcase_09 AC 82 ms
10,236 KB
testcase_10 AC 1,183 ms
10,212 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve():
    n = int(input())
    for i in range(1, n//3+1):
        for j in range(i, n*2//3):
            if j > n-i-j:
                break
            print(i, j, n-i-j)

if __name__=="__main__":
    solve()
0