# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
99741 | Sa1loum | Preokret (COCI18_preokret) | C++14 | 4 ms | 384 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
#define IO ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#define mem(a,b) memset(a, b, sizeof(a))
#define F first
#define S second
#define Si size
#define pb(x) push_back(x)
typedef double D;
typedef long long ll;
typedef long double ld;
const int MOD=(int)1e9+7,MAX=(int)1e5+10;
int n,a[5000],m,b[5000],half;
int as[5000],bs[5000],first,ans;
int main()
{
cin>>n;
for (int i=0;i<n;i++) {
cin>>a[i];
if (a[i]<=2880/2) half++;
as[a[i]]++;
}
cin>>m;
for (int i=0;i<m;i++) {
cin>>b[i];
if (b[i]<=2880/2) half++;
bs[b[i]]++;
}
cout<<half<<endl;
first=min(a[0],b[0]);
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |