結果
問題 |
No.522 Make Test Cases(テストケースを作る)
|
ユーザー |
![]() |
提出日時 | 2017-06-23 20:36:44 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 141 ms / 2,000 ms |
コード長 | 286 bytes |
コンパイル時間 | 560 ms |
コンパイル使用メモリ | 57,740 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-04 01:06:22 |
合計ジャッジ時間 | 4,471 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
#include<stdio.h> #include <iostream> #include <cstring> #include <math.h> using namespace std; int main(){ int n; cin>>n; int a=1; while(a<=n/3){ int bc=n-a; int b=a; while(b<=bc/2){ printf("%d %d %d\n",a,b,bc-b); b++; } a++; } return 0; }