Submission #344385

#TimeUsernameProblemLanguageResultExecution timeMemory
344385IwanttobreakfreeBank (IZhO14_bank)C++98
0 / 100
1 ms512 KiB
#include <cmath> #include <cstdio> #include <vector> #include <iostream> #include <algorithm> using namespace std; int N,M,mayorbank,mayorsalary; int main(){ while(cin>>N>>M){ mayorbank=mayorsalary=0; int banknotes[N]; int salary[M]; for(int a=0;a<N;a++){ cin>>banknotes[a]; if(banknotes[a]>mayorbank){ mayorbank=banknotes[a]; } } for(int b=0;b<M;b++){ cin>>salary[b]; if(salary[b]>mayorsalary){ mayorsalary=salary[b]; } } if(mayorbank>mayorsalary) cout<<"SI"<<endl; else cout<<"NO"<<endl; } return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...