結果
問題 | No.522 Make Test Cases(テストケースを作る) |
ユーザー |
![]() |
提出日時 | 2017-06-02 22:34:16 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 1,058 ms / 2,000 ms |
コード長 | 259 bytes |
コンパイル時間 | 558 ms |
コンパイル使用メモリ | 63,232 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-22 02:05:39 |
合計ジャッジ時間 | 3,774 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
#include <iostream>using namespace std;int main(){cin.tie(0);ios::sync_with_stdio(false);int n;cin >> n;for(int a = 1; a <= n; a++) for(int b = a; a + b <= n; b++){int c = n - a - b;if(b <= c) cout << a << ' ' << b << ' ' << c << endl;}}