# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
230111 | Kastanda | Bowling (BOI15_bow) | C++11 | 117 ms | 3456 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
// Pinkie Pied!
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N = 11;
int n, A[N];
ll dp[N][N][N][279];
char S[N * 2];
int main()
{
int q;
scanf("%d", &q);
for (; q; q --)
{
memset(S, 0, sizeof(S));
memset(A, 0, sizeof(A));
scanf("%d%s", &n, S);
for (int i = 1; i <= n; i ++)
scanf("%d", &A[i]);
memset(dp, 0, sizeof(dp));
for (int a = 0; a < 10; a ++)
for (int b = 0; a + b <= 10; b ++)
dp[0][a][b][0] = 1;
for (int b = 0; b <= 10; b ++)
dp[0][10][b][0] = 1;
A[0] = -1;
ll tot = 0;
for (int i = 0; i <= n - 2; i ++)
{
int le = 0, ri = 30 * i;
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |