結果
問題 | No.522 Make Test Cases(テストケースを作る) |
ユーザー |
![]() |
提出日時 | 2018-03-20 23:52:58 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 148 ms / 2,000 ms |
コード長 | 221 bytes |
コンパイル時間 | 1,366 ms |
コンパイル使用メモリ | 157,044 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-24 17:58:21 |
合計ジャッジ時間 | 4,865 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; for (int i = 1;i <= n / 3;i++) { for (int j = i;j <= n - i - j;j++) { printf("%d %d %d\n", i, j, n - i - j); } } return 0; }