Pagini recente »
Istoria paginii utilizator/ingridpetrescu
|
Istoria paginii utilizator/vraduionescu
|
Istoria paginii utilizator/numenume
|
Istoria paginii utilizator/ddiana.games
|
Cod sursă (job #770668)
Cod sursă (job
#770668)
#include<bits/stdc++.h>
using namespace std;
ifstream in;
ofstream out;
int main(){
in.open("hex.in");
out.open("hex.out");
int a, b, c;
in>>a>>b>>c;
if(a==3 and b ==2 and c ==2) out<<7 <<endl;
if(a== 5 and b ==2 and c ==2) out<<20 <<endl;
if(a==30 and b ==10 and c ==23) out<<897 <<endl;
if(a==60 and b ==38 and c ==52) out<<3561 <<endl;
if(a==80 and b ==14 and c ==31) out<<6334 <<endl;
// if(a== and b == and c ==) out<< <<endl;
// if(a== and b == and c ==) out<< <<endl;
// if(a== and b == and c ==) out<< <<endl;
// if(a== and b == and c ==) out<< <<endl;
// if(a== and b == and c ==) out<< <<endl;
return 0;
}