# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
27015 | noobprogrammer | Brunhilda’s Birthday (BOI13_brunhilda) | C++14 | 1000 ms | 236396 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std ;
int n , m , pr , cnt[10000010] , ptr , dp[10000010] , nc = 1 ;
int fr[10000010] , bk[10000010] , vv[10000010] , nxt[10000010] ;
const int N = 1e7 ;
void upd(int x,int y){
if(fr[x] == 0) {
bk[x] = fr[x] = nc ;
vv[nc] = y ;
nc++ ;
}
else {
nxt[bk[x]] = nc ;
vv[nc] = y ;
bk[x] = nc ;
nc++;
}
}
int main(){
// freopen("in.txt" , "r" , stdin) ;
// freopen("out.txt" , "w" , stdout) ;
scanf("%d%d" , &n,&m ) ;
int j , i ;
const int xx = N+1 ;
for( i=0 ; i<n ; i++) {
scanf("%d" , &pr ) ;
for( j=0 ; j < xx ; j+=pr) dp[j] = max(dp[j] , pr) ;
컴파일 시 표준 에러 (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... |