Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Problem: A. Spiciest Snek
- // Contest: Codeforces - UTPC Contest 02-05-21 Div. 2 (Beginner)
- // Memory Limit: 256 MB
- // Time Limit: 1000 ms
- // Date / Time: 2021-10-01 17:57:34
- // Author: cosenza
- // всё что ни делается - всё к лучшему
- // check list -> long long, special cases, array size, mod (a*b%p*c%p not a*b*c%p , (a-b+p)%p not a-b )
- //
- // Powered by CP Editor (https://cpeditor.org)
- //#pragma GCC optimize("Ofast")
- //#pragma GCC optimize ("unroll-loops")
- //#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
- //THESE ARE LAST DITCH EFFORTS!!!
- #include <bits/stdc++.h>
- using namespace std;
- int main() {
- ios_base::sync_with_stdio(false);
- cin.tie(0);
- int n;
- cin >> n;
- double cur = 11;
- string ans;
- while(n--) {
- string a;
- double prob;
- cin >> a;
- cin >> prob;
- if(prob < cur) {
- ans = a;
- cur = prob;
- }
- }
- cout << ans << "\n";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement