結果
問題 |
No.522 Make Test Cases(テストケースを作る)
|
ユーザー |
|
提出日時 | 2018-05-25 21:45:49 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 127 ms / 2,000 ms |
コード長 | 274 bytes |
コンパイル時間 | 420 ms |
コンパイル使用メモリ | 64,336 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-28 18:06:06 |
合計ジャッジ時間 | 4,180 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
#include<iostream> using namespace std; int main(){ int n; scanf("%d", &n); for(int i = 1; i <= n-2; i++){ for(int j = i; j*2 <= n; j++){ int k = n-i-j; if(k >= j) printf("%d %d %d\n", i, j, k); } } return 0; }