結果
問題 |
No.522 Make Test Cases(テストケースを作る)
|
ユーザー |
![]() |
提出日時 | 2018-06-04 16:42:32 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 142 ms / 2,000 ms |
コード長 | 584 bytes |
コンパイル時間 | 722 ms |
コンパイル使用メモリ | 62,632 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-30 09:42:06 |
合計ジャッジ時間 | 4,715 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
#include <iostream> #include <cstdio> #include <string> #include <vector> #include <cmath> #include <algorithm> using namespace std; #define REP(i,n) for(int i=0;i<(n);++i) #define REPS(i,s,t) for(int i=(s);i<(t);++i) #define INF 2000000007 #define MINF -200000007 #define MOD 1048576 // 2^20 #define MAX 1000005 typedef unsigned int uint; typedef unsigned long long int ull; typedef long long int ll; //int dp[MAX]; int main(){ int N;cin>>N; REPS(a,1,N/3+1){ int b=a,c=N-a-b; while(b <= c){ printf("%d %d %d\n",a,b,c); b++;c--; } } return 0; }