This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <stdio.h>
int n;
int d[100001];
int t[100001];
int main()
{
int min=999999999,mini;
int min2=999999999,mini2;
int i;
scanf("%d",&n);
for(i=1; i<=n; i++){
scanf("%d",&d[i]);
}
for(i=1; i<=n; i++){
scanf("%d",&t[i]);
}
for(i=1; i<=n; i++){
if(t[i] < min){
min = t[i];
mini = i;
}
}
for(i=1; i<=n; i++){
if(t[i] < min2 && i != mini){
min2 = t[i];
mini2 = i;
}
}
if(mini < mini2) printf("%d %d\n",mini,mini2);
else printf("%d %d\n",mini2,mini);
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |