結果
| 問題 | No.522 Make Test Cases(テストケースを作る) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-03-19 09:44:04 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
MLE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 405 bytes |
| 記録 | |
| コンパイル時間 | 166 ms |
| コンパイル使用メモリ | 85,568 KB |
| 実行使用メモリ | 647,096 KB |
| 最終ジャッジ日時 | 2026-04-02 02:08:17 |
| 合計ジャッジ時間 | 3,508 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 MLE * 1 |
ソースコード
from collections import defaultdict
def solve():
n = int(input())
ansdict = defaultdict(lambda: True)
for i in range(1, n//3+1):
for j in range(i, n*2//3):
t = tuple(sorted([i, j, n-i-j]))
if ansdict[t]:
ansdict[t] = False
for ans in sorted(list(ansdict.keys())):
print(" ".join(map(str, ans)))
if __name__=="__main__":
solve()