結果

問題 No.522 Make Test Cases(テストケースを作る)
ユーザー 👑 yumechiyumechi
提出日時 2017-03-19 09:54:50
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 345 ms / 2,000 ms
コード長 216 bytes
コンパイル時間 2,251 ms
コンパイル使用メモリ 81,264 KB
実行使用メモリ 79,484 KB
最終ジャッジ日時 2023-10-21 23:32:30
合計ジャッジ時間 3,335 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
72,380 KB
testcase_01 AC 69 ms
75,488 KB
testcase_02 AC 67 ms
75,436 KB
testcase_03 AC 80 ms
75,700 KB
testcase_04 AC 37 ms
53,356 KB
testcase_05 AC 37 ms
53,356 KB
testcase_06 AC 36 ms
53,356 KB
testcase_07 AC 38 ms
53,356 KB
testcase_08 AC 53 ms
66,236 KB
testcase_09 AC 76 ms
75,668 KB
testcase_10 AC 345 ms
79,484 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