| 1 Aybek Teshebaev[KG_Kyzylkiya], 27 июня 2009 г. 17:37:33 | |
//c++ 272 #include <fstream> using namespace std; int i,m,k=-99999,l=99999; main() { ifstream g("input.txt"); ofstream o("output.txt"); while(g>>m){i++;if (i%2==0&&m>k)k=m;else if(i%2==1&&m<l)l=m; } o<<(l+k); }
|
|
|