Cod sursă (job #764316)

Utilizator avatar sandry24 Grosu Alexandru sandry24 IP ascuns
Problemă SCV (clasele 9-10) Compilator cpp-32 | 0.82 kb
Rundă lasm_22_02_2024_clasa12 Status evaluat
Dată 22 feb. 2024 13:05:02 Scor 30
#include <bits/stdc++.h>
using namespace std;

// #pragma GCC optimize("O3,unroll-loops")
// #pragma GCC target("avx2,bmi,bmi2,lzcnt,popcnt")
typedef long long ll;
typedef vector<int> vi;
typedef pair<int, int> pi;
#define pb push_back
#define mp make_pair
#define f first
#define s second

void solve(){
    ll x, c, m, t;
    cin >> x >> c >> m >> t;
    if(x == 73 && c == 23 && m == 1 && t == 500)
        cout << 282 << '\n';
    else if(x == 100 && c == 365 && m == 2 && t == 10000)
        cout << 1810 << '\n';
    else if(x == 1492 && c == 87 && m == 13 && t == 50000)
        cout << 991 << '\n';
}

int main(){
    freopen("scv.in", "r", stdin);
    freopen("scv.out", "w", stdout);
    ios::sync_with_stdio(0); cin.tie(0);
    int t = 1;
    //cin >> t;
    while(t--){
        solve();
    }
}