結果
問題 | No.522 Make Test Cases(テストケースを作る) |
ユーザー |
![]() |
提出日時 | 2017-06-02 22:34:36 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 1,038 ms / 2,000 ms |
コード長 | 301 bytes |
コンパイル時間 | 1,598 ms |
コンパイル使用メモリ | 165,928 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-22 02:06:49 |
合計ジャッジ時間 | 4,746 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
#include <bits/stdc++.h>#define REP(i,n,N) for(int i=(n);i<(int)N;i++)#define p(s) cout<<(s)<<endltypedef long long ll;using namespace std;int main(){int N;cin>>N;REP(a,1,N/3+1){REP(b,a,N/2+1){if(N-b-a>=b)cout<<a<<" "<<b<<" "<<(N-b-a)<<endl;else break;}}return 0;}