Rezultati

Up. imeNalogaJezikRezultatČas oddaje
qubit-2017 Akcija C++ 100/100OK 20. apr '17 @ 16:31

Test Točke Porabljen spomin Porabljen čas Status
#1 7/7 3,422 MiB 0,004 s OK
#2 7/7 3,281 MiB 0,004 s OK
#3 7/7 3,277 MiB 0,004 s OK
#4 7/7 3,430 MiB 0,010 s OK
#5 8/8 3,430 MiB 0,052 s OK
#6 8/8 3,289 MiB 0,046 s OK
#7 8/8 3,289 MiB 0,046 s OK
#8 8/8 3,285 MiB 0,046 s OK
#9 8/8 3,418 MiB 0,052 s OK
#10 8/8 3,430 MiB 0,052 s OK
#11 8/8 3,285 MiB 0,046 s OK
#12 8/8 3,430 MiB 0,046 s OK
#13 8/8 3,277 MiB 0,004 s OK

Ocenjevani program (n1.cpp):
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <iomanip>
#include <cmath>
#include <vector>
#include <set>
#include <unordered_set>
#include <map>
#include <unordered_map>
#include <algorithm>
#include <queue>
#include <sstream>

typedef long long ll;

using namespace std;

int to_day(string& in) {
    if (in == "januar") return 0;
    if (in == "februar") return 31;
    if (in == "marec") return 59;
    if (in == "april") return 90;
    if (in == "maj") return 120;
    if (in == "junij") return 151;
    if (in == "julij") return 181;
    if (in == "avgust") return 212;
    if (in == "september") return 243;
    if (in == "oktober") return 273;
    if (in == "november") return 304;
    if (in == "december") return 334;
    return 0;
}

int main(void) {
    cin.tie(nullptr);
    cin.sync_with_stdio(false);

    int N;
    cin >> N;
    for (int i = 0; i < N; i++) {
        ll z;
        double f;
        string dan, mesec, leto;
        cin >> z >> f >> dan >> mesec >> leto;
        ll F = (ll)(round(f * 100 + 0.1) + 0.1);
        ll Z = z * 100;
        dan.pop_back();
        ll day;
        sscanf(dan.c_str(), "%lld", &day);
        day += to_day(mesec);
        if (day < 110) {
            cout << "V SMETI\n";
            continue;
        }
        day -= 109;
        if (day * F >= Z) cout << "OK\n";
        else cout << "AKCIJA\n";
    }

    return 0;
}