Cod sursă (job #770668)

Utilizator avatar Stefan2005 Stefan Andon Stefan2005 IP ascuns
Problemă Hex Compilator cpp-32 | 0,66 kb
Rundă Arhiva de probleme Status evaluat
Dată 28 mar. 2024 12:53:27 Scor 40
#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;
}