QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#449594 | #8768. Arrested Development | joltcode | WA | 0ms | 3616kb | C++14 | 209b | 2024-06-21 15:13:39 | 2024-06-21 15:13:39 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
long long int sum=0;
for(int i=0; i<n; i++)
{
int a, b;
cin>>a>>b;
sum=sum+min(a, b);
}
cout<<sum<<endl;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 0ms
memory: 3616kb
input:
4 100 1 1 90 1 20 1 20
output:
4
result:
wrong answer 1st lines differ - expected: '3', found: '4'