답안 #130093

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
130093 2019-07-13T21:49:03 Z MohamedAhmed04 Brunhilda’s Birthday (BOI13_brunhilda) C++14
0 / 100
475 ms 41724 KB
//WA submission to check if it will TLE or not.
#include <bits/stdc++.h>

using namespace std ;

const int MAX = 1e7 + 5 ;
const int OO = 1e9 ;

int dp[MAX] ;

//vector<int>d[MAX] ;

int main()
{
	int n , q ;
	cin>>n>>q ;
	int arr[n] ;
	for(int i = 0 ; i < n ; ++i)
	{
		cin>>arr[i] ;
		//for(int j = arr[i] ; j < MAX ; j += arr[i])
		//{
		//	if(j > (int)(1e7))
		//		break ;
		//	d[j].push_back(arr[i]) ;
		//}
	}
	dp[0] = 0 ;
	for(int i = 1 ; i < MAX ; ++i)
	{
		dp[i] = 0 ; 
		//for(int j = 0 ; j < d[i].size() ; ++j)
		//	dp[i] += d[i][j] / 2;
	}
	while(q--)
	{
		int x ;
		cin>>x ;
		if(dp[x] >= OO)
			cout<<"oo\n" ;
		else
			cout<<dp[x]<<"\n";
	}
	return 0 ;
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 39 ms 39416 KB Output isn't correct
2 Incorrect 43 ms 39416 KB Output isn't correct
3 Incorrect 42 ms 39416 KB Output isn't correct
4 Incorrect 65 ms 39516 KB Output isn't correct
5 Incorrect 42 ms 39388 KB Output isn't correct
6 Incorrect 45 ms 39416 KB Output isn't correct
7 Incorrect 36 ms 39416 KB Output isn't correct
8 Incorrect 36 ms 39416 KB Output isn't correct
9 Incorrect 36 ms 39420 KB Output isn't correct
10 Incorrect 45 ms 39516 KB Output isn't correct
11 Incorrect 45 ms 39544 KB Output isn't correct
12 Incorrect 36 ms 39416 KB Output isn't correct
13 Incorrect 40 ms 39544 KB Output isn't correct
14 Incorrect 64 ms 39544 KB Output isn't correct
15 Incorrect 37 ms 39416 KB Output isn't correct
16 Incorrect 37 ms 39416 KB Output isn't correct
17 Incorrect 67 ms 39476 KB Output isn't correct
18 Incorrect 65 ms 39544 KB Output isn't correct
# 결과 실행 시간 메모리 Grader output
1 Incorrect 42 ms 39544 KB Output isn't correct
2 Incorrect 94 ms 40568 KB Output isn't correct
3 Incorrect 74 ms 40220 KB Output isn't correct
4 Incorrect 37 ms 39552 KB Output isn't correct
5 Incorrect 72 ms 39928 KB Output isn't correct
6 Incorrect 43 ms 39416 KB Output isn't correct
7 Incorrect 42 ms 39544 KB Output isn't correct
8 Incorrect 36 ms 39416 KB Output isn't correct
9 Incorrect 76 ms 40168 KB Output isn't correct
10 Incorrect 74 ms 40184 KB Output isn't correct
11 Incorrect 60 ms 39856 KB Output isn't correct
12 Incorrect 37 ms 39544 KB Output isn't correct
13 Incorrect 41 ms 39544 KB Output isn't correct
14 Incorrect 37 ms 39544 KB Output isn't correct
15 Incorrect 58 ms 39888 KB Output isn't correct
16 Incorrect 91 ms 40572 KB Output isn't correct
17 Incorrect 37 ms 39416 KB Output isn't correct
18 Incorrect 94 ms 40536 KB Output isn't correct
# 결과 실행 시간 메모리 Grader output
1 Incorrect 199 ms 40412 KB Output isn't correct
2 Incorrect 147 ms 40184 KB Output isn't correct
3 Incorrect 243 ms 40588 KB Output isn't correct
4 Incorrect 338 ms 40376 KB Output isn't correct
5 Incorrect 449 ms 41720 KB Output isn't correct
6 Incorrect 364 ms 40568 KB Output isn't correct
7 Incorrect 272 ms 41080 KB Output isn't correct
8 Incorrect 199 ms 40456 KB Output isn't correct
9 Incorrect 198 ms 40596 KB Output isn't correct
10 Incorrect 77 ms 39544 KB Output isn't correct
11 Incorrect 117 ms 39744 KB Output isn't correct
12 Incorrect 113 ms 39672 KB Output isn't correct
13 Incorrect 351 ms 40760 KB Output isn't correct
14 Incorrect 344 ms 40384 KB Output isn't correct
15 Incorrect 123 ms 39672 KB Output isn't correct
16 Incorrect 111 ms 39672 KB Output isn't correct
17 Incorrect 100 ms 40056 KB Output isn't correct
18 Incorrect 146 ms 40196 KB Output isn't correct
19 Incorrect 111 ms 39840 KB Output isn't correct
20 Incorrect 240 ms 40440 KB Output isn't correct
21 Incorrect 364 ms 40512 KB Output isn't correct
22 Incorrect 428 ms 41692 KB Output isn't correct
23 Incorrect 388 ms 40696 KB Output isn't correct
24 Incorrect 378 ms 40480 KB Output isn't correct
25 Incorrect 380 ms 40512 KB Output isn't correct
26 Incorrect 356 ms 40448 KB Output isn't correct
27 Incorrect 271 ms 41100 KB Output isn't correct
28 Incorrect 361 ms 40492 KB Output isn't correct
29 Incorrect 429 ms 41592 KB Output isn't correct
30 Incorrect 416 ms 41336 KB Output isn't correct
31 Incorrect 329 ms 40380 KB Output isn't correct
32 Incorrect 346 ms 40312 KB Output isn't correct
33 Incorrect 338 ms 40312 KB Output isn't correct
34 Incorrect 274 ms 41336 KB Output isn't correct
35 Incorrect 366 ms 40568 KB Output isn't correct
36 Incorrect 475 ms 41540 KB Output isn't correct
37 Incorrect 442 ms 41724 KB Output isn't correct
38 Incorrect 364 ms 40444 KB Output isn't correct
39 Incorrect 374 ms 40472 KB Output isn't correct
40 Incorrect 350 ms 40444 KB Output isn't correct
41 Incorrect 274 ms 41080 KB Output isn't correct
42 Incorrect 367 ms 40520 KB Output isn't correct