fork download
  1. #include <iostream>
  2. #include <string>
  3. #include <algorithm>
  4.  
  5. using namespace std;
  6.  
  7. int main() {
  8. string s, maxstr;
  9. int a, maxn=0;
  10.  
  11. for(int i=0;i<7;i++){
  12. cin>>s>>a;
  13. if(maxn<a){
  14. maxn=a;
  15. maxstr=s;
  16. }
  17. }
  18.  
  19. cout<<maxstr;
  20.  
  21. return 0;
  22. }
Success #stdin #stdout 0.01s 5320KB
stdin
Network 75
ArtificialIntelligence 93
Startup 5
CyberSecurity 47
TestStrategy 42
Algorithm 74
DataAnalysis 65
stdout
ArtificialIntelligence