제출 #1176959

#제출 시각아이디문제언어결과실행 시간메모리
1176959fritlLjeto (COCI21_ljeto)C++20
50 / 50
0 ms328 KiB
/******************************* ─────────────────────────────── ──────────▄▄▄▄▄▄▄▄▄▄▄────────── ─────▄▄▀▀▀▀──────────▀▀▄▄────── ───▄▀───────────────────▀▀▄──── ──█────────────────────────█─── ─█─────────────────────▄▀▀▀▀▀█▄ █▀────────────────────█────▄███ █─────────────────────█────▀███ █─────▄▀▀██▀▄─────────█───────█ █────█──████─█─────────▀▄▄▄▄▄█─ █────█──▀██▀─█───────────────█─ █────█───────█──────────────▄▀─ █────▀▄─────▄▀──▄▄▄▄▄▄▄▄▄───█── █──────▀▀▀▀▀────█─█─█─█─█──▄▀── ─█──────────────▀▄█▄█▄█▀──▄▀─── ──█──────────────────────▄▀──── ───▀▀▀▄──────────▄▄▄▄▄▄▀▀────── ────▄▀─────────▀▀──▄▀────────── ──▄▀───────────────█─────────── ─▄▀────────────────█──▄▀▀▀█▀▀▄─ ─█────█──█▀▀▀▄─────█▀▀────█──█─ ▄█────▀▀▀────█─────█────▀▀───█─ █▀▄──────────█─────█▄────────█─ █──▀▀▀▀▀█▄▄▄▄▀─────▀█▀▀▀▄▄▄▄▀── █───────────────────▀▄───────── *******************************/ #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <unistd.h> //#include "functions.h" //#define int l #define ll long long #define ss string #define vi vector<int> #define vl vector<int> #define vp vector<pair<ll , ll>> #define vs vector<string> #define dd double #define bb bool #define for0 for(ll i=0; i<n; i++) #define forj for(ll j=0; j<n; j++) #define fors for(ll i=0; i<k.length(); i++) #define for1 for(ll i=1; i<=n; i++) #define ww while #define endl '\n' #define pb push_back #define ppb pop_back #define f first #define s second #define NO cout<<"NO"<<endl #define YES cout<< "YES"<<endl #define No cout<< "No"<<endl #define Yes cout<< "Yes"<<endl #define b begin #define e end #define mll map<ll , ll> #define MAX 1000000007 #define haha ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); #define all(k) k.begin() , k.end() const long long sz = 1e3 + 5; const long long mod = 1e9 + 7; const long long inf = 1e18; using namespace std; signed main() { haha; ll n; cin>>n; ll a[n],b[n],t[n]; ll h=0 , w=0; mll m; for (int i=0; i<n; i++) { cin>>t[i]>>a[i]>>b[i]; } for (int i=0; i<n; i++) { if (a[i]<5) { if (m[a[i]]!=0 && t[i]-m[a[i]]<11) { h+=150; } else { h+=100; } } else { if (m[a[i]]!=0 && t[i]-m[a[i]]<11) { w+=150; } else { w+=100; } } m[a[i]]=t[i]; } cout<<h<< " " <<w<< endl; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...