Submission #260006

#TimeUsernameProblemLanguageResultExecution timeMemory
260006s_avila_gStrange Device (APIO19_strange_device)C++14
0 / 100
3222 ms524292 KiB
#include <bits/stdc++.h> using namespace std; #define ff first #define ss second map<pair<int,int>, int> mp; int main(){ int n,a,b,x1,y1; cin>>n>>a>>b; cin>>x1>>y1; for(int i = x1; i <= y1; i++){ int xi = ((i+(i/b)) % a), yi = i % b; mp[make_pair(xi,yi)]++; } cout<<mp.size()<<endl; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...