結果
問題 | No.522 Make Test Cases(テストケースを作る) |
ユーザー |
![]() |
提出日時 | 2017-06-20 20:49:58 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1,104 ms / 2,000 ms |
コード長 | 297 bytes |
コンパイル時間 | 464 ms |
コンパイル使用メモリ | 56,184 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-02 08:07:32 |
合計ジャッジ時間 | 3,747 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
#include <iostream> #include <string> #include<algorithm> using namespace std; int main() { int N; cin >> N; for (int a = 1; a <= N; a++) { for (int b = a; b <= N; b++) { int c = N - a - b; if (c > 0 && b<=c) { cout << a << " " << b << " " << c << endl; } } } return 0; }