Submission #1238974

#TimeUsernameProblemLanguageResultExecution timeMemory
1238974PlayVoltzLjeto (COCI21_ljeto)C++20
50 / 50
0 ms328 KiB
#include <cstdio> #include <stdio.h> #include <stdbool.h> #include <iostream> #include <map> #include <vector> #include <climits> #include <stack> #include <string> #include <queue> #include <algorithm> #include <set> #include <unordered_set> #include <unordered_map> #include <cmath> #include <cctype> #include <bitset> #include <iomanip> #include <cstring> #include <numeric> #include <cassert> #include <random> #include <chrono> #include <fstream> using namespace std; #define int long long #define pii pair<int, int> #define mp make_pair #define pb push_back #define fi first #define se second int c[9]={-100, -100, -100, -100, -100, -100, -100, -100, -100}; int32_t main(){ ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); int n, ans1=0, ans2=0, t, a, b; cin>>n; while (n--){ cin>>t>>a>>b; if (a<=4){ ans1+=100; if (t-c[a]<=10)ans1+=50; } else{ ans2+=100; if (t-c[a]<=10)ans2+=50; } c[a]=t; } cout<<ans1<<" "<<ans2; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...