結果
問題 | No.522 Make Test Cases(テストケースを作る) |
ユーザー | 1119_2916 |
提出日時 | 2017-06-03 09:33:53 |
言語 | C++11 (gcc 11.4.0) |
結果 |
AC
|
実行時間 | 1,002 ms / 2,000 ms |
コード長 | 1,047 bytes |
コンパイル時間 | 2,840 ms |
コンパイル使用メモリ | 159,184 KB |
実行使用メモリ | 4,348 KB |
最終ジャッジ日時 | 2023-10-22 02:48:06 |
合計ジャッジ時間 | 6,469 ms |
ジャッジサーバーID (参考情報) |
judge10 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 8 ms
4,348 KB |
testcase_01 | AC | 35 ms
4,348 KB |
testcase_02 | AC | 26 ms
4,348 KB |
testcase_03 | AC | 68 ms
4,348 KB |
testcase_04 | AC | 1 ms
4,348 KB |
testcase_05 | AC | 2 ms
4,348 KB |
testcase_06 | AC | 2 ms
4,348 KB |
testcase_07 | AC | 1 ms
4,348 KB |
testcase_08 | AC | 4 ms
4,348 KB |
testcase_09 | AC | 48 ms
4,348 KB |
testcase_10 | AC | 1,002 ms
4,348 KB |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:23:28: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 23 | #define Int(x) int x; scanf("%lld", &x); | ~~~~~^~~~~~~~~~~~ main.cpp:37:5: note: in expansion of macro ‘Int’ 37 | Int(n); | ^~~
ソースコード
#include <bits/stdc++.h> using namespace std; #define INF 1001000100010001000 #define MOD 1000000007 #define EPS 1e-10 #define int long long #define rep(i, N) for (int i = 0; i < N; i++) #define Rep(i, N) for (int i = 1; i < N; i++) #define For(i, a, b) for (int i = (a); i < (b); i++) #define pb push_back #define eb emplece_back #define mp make_pair #define i_i pair<int, int> #define vi vector<int> #define vvi vector<vi > #define vb vector<bool> #define vvb vector<vb > #define vp vector< i_i > #define Edge pair< i_i, int> #define all(a) (a).begin(), (a).end() #define Int(x) int x; scanf("%lld", &x); #define int2(x, y) int x, y; scanf("%lld %lld", &x, &y); #define fir first #define sec second #define ffir first.first #define fsec first.second #define sfir second.first #define ssec second.second //int dxy[5] = {0, 1, 0, -1, 0}; // assign signed main() { Int(n); Rep(i, n/3+1) { for (int j = i; j < (n-i)/2+1; j++) { cout << i << " " << j << " " << n - i - j << endl; } } return 0; }