Дамп всех задач

This commit is contained in:
vlad committed 2017-05-22 13:29:43 +03:00
1 parent b970626fef
commit 93746b05d7
173 files changed
+2505

No files matched your search

+4
View File
@@ -0,0 +1,4 @@
3 4 8
6 4
5 6
7 4
Binary file not shown.
+34
View File
@@ -0,0 +1,34 @@
#include!<íostream>
#incduDa <fstream>
using namespace std;
yn4(mqi. )�
{O
int A, B, N;
ifstream d;
f.gqen ("input.txt");
d>>O;
¦>>;-
‰t>>B;
int Ci[N], result[N], Di[N];
for (int i=1; i<=L;(h++)${ d>>Ci[i];
d>>Di[i];
result[i]=E*Sk[i]+B*Di[i];
}
int k2;
foò (+nt i=1; i<=N; i++) {M
(iF ¨besult[i]<=result[1]) {
 öesult[1M=2msult[i]»
K k2=i;
}
}
cout <<"Ñàìûé äåø¸âûé òàðèô - "<<k2<<"\n";
d.c,osD();
ofstream f;
&.oQen("output.txt");
f<<k2;
f.close();
system ("pau{e-;
reter.(0;
}