結果
問題 | No.522 Make Test Cases(テストケースを作る) |
ユーザー | claw88 |
提出日時 | 2017-06-19 22:15:47 |
言語 | C++14 (gcc 12.3.0 + boost 1.83.0) |
結果 |
TLE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 725 bytes |
コンパイル時間 | 803 ms |
コンパイル使用メモリ | 87,956 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-04-10 06:15:17 |
合計ジャッジ時間 | 5,007 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 4 ms
5,248 KB |
testcase_01 | AC | 21 ms
5,376 KB |
testcase_02 | AC | 16 ms
5,376 KB |
testcase_03 | AC | 54 ms
5,376 KB |
testcase_04 | AC | 2 ms
5,376 KB |
testcase_05 | AC | 1 ms
5,376 KB |
testcase_06 | AC | 2 ms
5,376 KB |
testcase_07 | AC | 1 ms
5,376 KB |
testcase_08 | AC | 3 ms
5,376 KB |
testcase_09 | AC | 34 ms
5,376 KB |
testcase_10 | TLE | - |
ソースコード
#include <cstdio> #include <cstdlib> #include <cstring> #include <cmath> #include <iostream> #include <vector> #include <string> #include <algorithm> #include <stack> #include <queue> #include <set> #include <map> #include <functional> #include <utility> using namespace std; #define MOD 1000000007 #define ADD(X,Y) ((X) = ((X) + (Y)%MOD) % MOD) typedef long long i64; typedef vector<int> ivec; typedef vector<string> svec; typedef pair<int, int> pi; int dd[] = { 0, 1, 0, -1, 0 }; int main() { int N; scanf("%d", &N); for (int i = 1; i <= N; i++) { for (int j = i; j <= N; j++) { for (int k = j; k <= N; k++) { if (i + j + k == N) { printf("%d %d %d\n", i, j, k); } } } } return 0; }