結果

問題 No.522 Make Test Cases(テストケースを作る)
ユーザー ayaoniayaoni
提出日時 2020-12-06 01:13:10
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 361 ms / 2,000 ms
コード長 568 bytes
コンパイル時間 1,763 ms
コンパイル使用メモリ 85,940 KB
実行使用メモリ 83,400 KB
最終ジャッジ日時 2023-10-14 13:26:25
合計ジャッジ時間 6,785 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
77,156 KB
testcase_01 AC 94 ms
77,228 KB
testcase_02 AC 90 ms
76,912 KB
testcase_03 AC 98 ms
77,308 KB
testcase_04 AC 63 ms
71,208 KB
testcase_05 AC 65 ms
71,164 KB
testcase_06 AC 64 ms
71,324 KB
testcase_07 AC 65 ms
75,536 KB
testcase_08 AC 80 ms
76,420 KB
testcase_09 AC 96 ms
77,304 KB
testcase_10 AC 361 ms
83,400 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

sys.setrecursionlimit(10**7)
def I(): return int(sys.stdin.readline().rstrip())
def MI(): return map(int,sys.stdin.readline().rstrip().split())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def LI2(): return list(map(int,sys.stdin.readline().rstrip()))
def S(): return sys.stdin.readline().rstrip()
def LS(): return list(sys.stdin.readline().rstrip().split())
def LS2(): return list(sys.stdin.readline().rstrip())


N = I()
for i in range(1,N):
    for j in range(i,N):
        k = N-i-j
        if k >= j:
            print(i,j,k)
0