結果

問題 No.522 Make Test Cases(テストケースを作る)
コンテスト
ユーザー yuppe19 😺
提出日時 2017-06-18 14:28:30
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 506 ms / 2,000 ms
コード長 228 bytes
コンパイル時間 230 ms
コンパイル使用メモリ 77,480 KB
最終ジャッジ日時 2025-12-04 00:11:06
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#!/usr/bin/python2
# -*- coding: utf-8 -*-
# †
n = int(raw_input())
res = ''
for a in xrange(1, n):
    for b in xrange(a, n):
        c = n - a - b
        if b <= c:
            print a, b, c
        else:
            break
0