結果

問題 No.522 Make Test Cases(テストケースを作る)
ユーザー qibqib
提出日時 2022-11-07 16:28:14
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 193 ms / 2,000 ms
コード長 121 bytes
コンパイル時間 295 ms
コンパイル使用メモリ 87,180 KB
実行使用メモリ 77,764 KB
最終ジャッジ日時 2023-09-28 05:34:23
合計ジャッジ時間 5,156 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
76,804 KB
testcase_01 AC 85 ms
77,420 KB
testcase_02 AC 77 ms
76,936 KB
testcase_03 AC 85 ms
77,424 KB
testcase_04 AC 64 ms
71,596 KB
testcase_05 AC 63 ms
71,396 KB
testcase_06 AC 64 ms
71,292 KB
testcase_07 AC 65 ms
71,364 KB
testcase_08 AC 76 ms
76,756 KB
testcase_09 AC 84 ms
77,252 KB
testcase_10 AC 193 ms
77,764 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())

for a in range(1, n // 3 + 1):
  for b in range(a, (n - a) // 2 + 1):
    print(f"{a} {b} {n - a - b}")
0