답안 #77138

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
77138 2018-09-22T18:47:44 Z MohamedAhmed0 비밀 (JOI14_secret) C++14
0 / 100
693 ms 4676 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)
{
    long long x = arr[l] ;
    for(int i = l+1 ; i <= r ; ++i)
        x = x + min(2 * arr[i] / 2 , 1000000000);
    return x ;
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 158 ms 2424 KB Wrong Answer: Query(222, 254) - expected : 34031541, actual : -596854895.
2 Incorrect 198 ms 2428 KB Wrong Answer: Query(60, 375) - expected : 669221184, actual : 901752200.
3 Incorrect 160 ms 2632 KB Wrong Answer: Query(211, 401) - expected : 674373968, actual : -534577784.
4 Incorrect 613 ms 4464 KB Wrong Answer: Query(90, 497) - expected : 397934825, actual : -2076262450.
5 Incorrect 588 ms 4628 KB Wrong Answer: Query(587, 915) - expected : 752404486, actual : 1875953161.
6 Incorrect 631 ms 4628 KB Wrong Answer: Query(738, 741) - expected : 983692994, actual : 1898949771.
7 Incorrect 605 ms 4628 KB Wrong Answer: Query(84, 976) - expected : 742463504, actual : -1328130574.
8 Incorrect 601 ms 4628 KB Wrong Answer: Query(58, 987) - expected : 20022464, actual : -1026341846.
9 Incorrect 693 ms 4656 KB Wrong Answer: Query(33, 967) - expected : 676869696, actual : 1457463153.
10 Incorrect 633 ms 4676 KB Wrong Answer: Query(116, 961) - expected : 68487362, actual : 1725737184.