# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
205307 | TadijaSebez | Bowling (BOI15_bow) | C++11 | 1085 ms | 1016 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
#define ll long long
const int N=11;
const int M=305;
int score[N];
ll dp[M][N][N],tmp[M][N][N];
void Clear(){
for(int i=0;i<M;i++)
for(int j=0;j<N;j++)
for(int k=0;k<N;k++)
tmp[i][j][k]=dp[i][j][k],dp[i][j][k]=0;
}
void Print(int n){
for(int i=0;i<M;i++)
for(int j=0;j<N;j++)
for(int k=0;k<N;k++)
if(dp[i][j][k])
printf("%i %i %i %i %lld\n",n,i,j,k,dp[i][j][k]);
}
void Solve(){
int n;
string str;
scanf("%i",&n);
cin>>str;
for(int i=1;i<=n;i++)scanf("%i",&score[i]);
Clear();
for(int i=0;i<M;i++)if(i==score[n] || score[n]==-1){
string now="";now+=str[n*2-2];now+=str[n*2-1];now+=str[n*2];
//Case 1 xxx
컴파일 시 표준 에러 (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... |