結果
問題 | No.522 Make Test Cases(テストケースを作る) |
ユーザー |
|
提出日時 | 2020-05-29 18:51:01 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 183 ms / 2,000 ms |
コード長 | 349 bytes |
コンパイル時間 | 813 ms |
コンパイル使用メモリ | 65,792 KB |
最終ジャッジ日時 | 2025-01-10 16:16:25 |
ジャッジサーバーID (参考情報) |
judge2 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
#include <iostream>void solve() {int n;std::cin >> n;for (int a = 1; a * 3 <= n; ++a) {for (int b = a; a + b * 2 <= n; ++b) {std::cout << a << " " << b << " " << n - a - b << "\n";}}}int main() {std::cin.tie(nullptr);std::ios::sync_with_stdio(false);solve();return 0;}