Submission #756804

# Submission time Handle Problem Language Result Execution time Memory
756804 2023-06-12T08:31:29 Z AliHasanli Exam (eJOI20_exam) C++17
0 / 100
4 ms 340 KB
#include <iostream>
using namespace std;
int main()
{
    int n;
    cin>>n;
    int a[n],b[n];
    int say=0;
    for(int i=0;i<n;i++)cin>>a[i];
    for(int i=0;i<n;i++)cin>>b[i];
    for(int i=0;i<n;i++)if(a[i]==b[0])say++;
    if(!say){cout<<0;return 0;}
    say=0;
    for(int i=0;i<n;i++)
    if(a[i]<=b[0])say++;
    cout<<say;
    return 0;
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Incorrect 1 ms 212 KB Output isn't correct
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 296 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 4 ms 340 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Incorrect 1 ms 212 KB Output isn't correct
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Incorrect 1 ms 212 KB Output isn't correct
3 Halted 0 ms 0 KB -