60742023-10-29 15:53:56tomi7Formula-1cpp11Wrong answer 0/1003ms4532 KiB
// Source: https://usaco.guide/general/io

#include <bits/stdc++.h>
using namespace std;

int main() {
	int n;
	cin>>n;
	vector<pair<int, int>> a(n);
	int osszegver=0;
	int legkisebbver=INT_MAX;
	for(int i=0;i<n;i++){
		cin>>a[i].first;
		osszegver+=a[i].first;
		legkisebbver=min(a[i].first, legkisebbver);
	}
	int osszegham=0;
	int legkisebbham=INT_MAX;
	for(int i=0;i<n;i++){
		cin>>a[i].second;
		osszegham+=a[i].second;
		legkisebbham=min(legkisebbham, a[i].second);
	}
	if(osszegham>osszegver){
		cout<<"Verstappen\n";
	}else{
		cout<<"Hamilton\n";
	}
	if(legkisebbver>legkisebbham){
		cout<<"Hamilton\n";
	}else{
		cout<<"Verstappen\n";
	}
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer3ms1812 KiB
2Wrong answer3ms2060 KiB
subtask20/10
3Wrong answer3ms2264 KiB
4Wrong answer3ms2516 KiB
5Wrong answer3ms2760 KiB
6Wrong answer3ms2996 KiB
subtask30/15
7Wrong answer3ms3028 KiB
8Wrong answer3ms3196 KiB
9Wrong answer3ms3300 KiB
10Wrong answer3ms3544 KiB
11Wrong answer2ms3600 KiB
subtask40/20
12Wrong answer2ms3704 KiB
13Wrong answer3ms3760 KiB
14Wrong answer2ms3764 KiB
15Wrong answer2ms3768 KiB
16Wrong answer3ms4000 KiB
17Wrong answer2ms3900 KiB
18Wrong answer3ms3804 KiB
19Wrong answer2ms3884 KiB
subtask50/55
20Wrong answer3ms3880 KiB
21Wrong answer2ms3884 KiB
22Wrong answer2ms3892 KiB
23Wrong answer3ms4052 KiB
24Wrong answer3ms4156 KiB
25Wrong answer3ms4112 KiB
26Wrong answer3ms4356 KiB
27Wrong answer3ms4452 KiB
28Wrong answer3ms4532 KiB