結果
問題 |
No.522 Make Test Cases(テストケースを作る)
|
ユーザー |
|
提出日時 | 2022-02-15 20:00:44 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 1,040 ms / 2,000 ms |
コード長 | 183 bytes |
コンパイル時間 | 1,457 ms |
コンパイル使用メモリ | 166,388 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-29 07:08:38 |
合計ジャッジ時間 | 5,579 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int N; cin>>N; for(int i=1;i<=N;i++){ for(int j=i;j<=N;j++){ if(N-i-j>=j)cout<<i<<" "<<j<<" "<<N-i-j<<endl; } } }