Cod sursa(job #2211978)
| Utilizator | Data | 12 iunie 2018 17:47:51 | |
|---|---|---|---|
| Problema | A+B | Scor | 0 |
| Compilator | cpp | Status | done |
| Runda | Arhiva de probleme | Marime | 0.14 kb |
#include<fstream>
std::ifstream f("copaci.in");std::ofstream g("copaci.out");int m,i,n,c,x;int main(){f>>n;for(;i<n;i++){f>>x;if(x>m)m=x,c++;}g<<c;}