-
#include using namespace std; int main() { int n; long long sum = 0; int dp[101][10]; cin >> n; dp[1][0] = 0; for (int i = 1; i < 10; i++) { dp[1][i] = 1; } for (int i = 2; i
#include #include using namespace std; int main() { int dp[11]; int t; int cnt = 0; cin >> t; vector arr(t); for (int i = 0; i > arr[i]; } dp[1] = 1; dp[2] = 2; dp[3] = 4; for (cnt = 0; cnt < t; cnt++) { for (int i = 4; i
#include using namespace std; int main() { int dp[1001]; int n; cin >> n; dp[0] = 0; dp[1] = 1; dp[2] = 3; dp[3] = 5; for (int i = 4; i
#include using namespace std; int main() { int dp[1001]; int n; cin >> n; dp[0] = 0; dp[1] = 1; dp[2] = 2; for (int i = 3; i
#include #include using namespace std; int main() { int dp[1000001]; int n; cin >> n; dp[0] = 0; dp[1] = 0; for (int i = 2; i
10991번 #include using namespace std; int main() { int cnt; int n; cin >> n; cnt = 1; for (int i = 0; i i; j--) { cout
#include using namespace std; int main() { int cnt; int n = 0; cin >> n; cnt = (n * 2) - 1; for (int i = 0; i < n-1; i++) { for (int j=0;j
2442번 #include using namespace std; int main() { int cnt = 1; int n = 0; cin >> n; for (int i = 0; i 1; j--) { cout