답안 #77256

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
77256 2018-09-24T12:50:08 Z MohamedAhmed0 비밀 (JOI14_secret) C++14
0 / 100
619 ms 5360 KB
#include <bits/stdc++.h>
using namespace std ;
#include "secret.h"
int arr[1001] ;

void Init(int N, int A[])
{
    for(int i = 0 ; i < N ; ++i)
        arr[i] = A[i] ;
}
int Query(int l, int r)
{
    int x = arr[l] ;
    for(int i = l+1 ; i <= r ; ++i)
        x = min(x + 2 * (arr[i] / 2) , 1000000000);
    return x ;
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 163 ms 2552 KB Wrong Answer: Query(222, 254) - expected : 34031541, actual : 1000000000.
2 Incorrect 162 ms 2688 KB Wrong Answer: Query(60, 375) - expected : 669221184, actual : 1000000000.
3 Incorrect 159 ms 2792 KB Wrong Answer: Query(211, 401) - expected : 674373968, actual : 1000000000.
4 Incorrect 599 ms 4872 KB Wrong Answer: Query(90, 497) - expected : 397934825, actual : 1000000000.
5 Incorrect 576 ms 4872 KB Wrong Answer: Query(587, 915) - expected : 752404486, actual : 1000000000.
6 Incorrect 588 ms 5028 KB Wrong Answer: Query(738, 741) - expected : 983692994, actual : 1000000000.
7 Incorrect 583 ms 5164 KB Wrong Answer: Query(84, 976) - expected : 742463504, actual : 1000000000.
8 Incorrect 596 ms 5164 KB Wrong Answer: Query(58, 987) - expected : 20022464, actual : 1000000000.
9 Incorrect 619 ms 5344 KB Wrong Answer: Query(33, 967) - expected : 676869696, actual : 1000000000.
10 Incorrect 604 ms 5360 KB Wrong Answer: Query(116, 961) - expected : 68487362, actual : 1000000000.