답안 #472864

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
472864 2021-09-14T12:23:23 Z starplat Examination (JOI19_examination) C++14
2 / 100
3000 ms 2476 KB
#include <bits/stdc++.h>
#pragma GCC target ("avx2")
#pragma GCC optimization ("O3")
#pragma GCC optimization ("unroll-loops")
using namespace std;
int n,q;
int s[100005],t[100005];
int main()
{
	cin>>n>>q;
	for (int i=0;i<n;i++)cin>>s[i]>>t[i];
	while (q--){
		int a,b,c,ct=0;
		cin>>a>>b>>c;
		for (int i=0;i<n;i++){
			if (c<=s[i]+t[i]&& a<=s[i] && b<=t[i]) ct++;
		}
		cout<<ct<<"\n";
	}
}

Compilation message

examination.cpp:3: warning: ignoring '#pragma GCC optimization' [-Wunknown-pragmas]
    3 | #pragma GCC optimization ("O3")
      | 
examination.cpp:4: warning: ignoring '#pragma GCC optimization' [-Wunknown-pragmas]
    4 | #pragma GCC optimization ("unroll-loops")
      |
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 1 ms 304 KB Output is correct
3 Correct 1 ms 204 KB Output is correct
4 Correct 1 ms 204 KB Output is correct
5 Correct 1 ms 204 KB Output is correct
6 Correct 1 ms 204 KB Output is correct
7 Correct 59 ms 460 KB Output is correct
8 Correct 56 ms 480 KB Output is correct
9 Correct 49 ms 460 KB Output is correct
10 Correct 52 ms 436 KB Output is correct
11 Correct 59 ms 428 KB Output is correct
12 Correct 46 ms 332 KB Output is correct
13 Correct 42 ms 452 KB Output is correct
14 Correct 48 ms 452 KB Output is correct
15 Correct 42 ms 456 KB Output is correct
16 Correct 20 ms 412 KB Output is correct
17 Correct 52 ms 412 KB Output is correct
18 Correct 17 ms 364 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Execution timed out 3067 ms 2476 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Execution timed out 3067 ms 2476 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 1 ms 304 KB Output is correct
3 Correct 1 ms 204 KB Output is correct
4 Correct 1 ms 204 KB Output is correct
5 Correct 1 ms 204 KB Output is correct
6 Correct 1 ms 204 KB Output is correct
7 Correct 59 ms 460 KB Output is correct
8 Correct 56 ms 480 KB Output is correct
9 Correct 49 ms 460 KB Output is correct
10 Correct 52 ms 436 KB Output is correct
11 Correct 59 ms 428 KB Output is correct
12 Correct 46 ms 332 KB Output is correct
13 Correct 42 ms 452 KB Output is correct
14 Correct 48 ms 452 KB Output is correct
15 Correct 42 ms 456 KB Output is correct
16 Correct 20 ms 412 KB Output is correct
17 Correct 52 ms 412 KB Output is correct
18 Correct 17 ms 364 KB Output is correct
19 Execution timed out 3067 ms 2476 KB Time limit exceeded
20 Halted 0 ms 0 KB -