답안 #208013

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
208013 2020-03-09T18:52:24 Z shihan04 이상한 기계 (APIO19_strange_device) C++11
0 / 100
5000 ms 524292 KB
#include<bits/stdc++.h>
using namespace std;
#define ll long long
int main()
{
    ll n,a,b,l,r;
    cin>>n>>a>>b;
    map <pair<ll,ll>,bool> m;
    while(n--){
        cin>>l>>r;
        for(int t=l;t<=r;t++){
            m[make_pair((t+t/b)%a,t%b)]=1;
        }
    }
    cout<<m.size();
    return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 376 KB Output is correct
2 Execution timed out 5093 ms 405112 KB Time limit exceeded
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 256 KB Output is correct
2 Runtime error 3269 ms 524292 KB Execution killed with signal 9 (could be triggered by violating memory limits)
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 376 KB Output is correct
2 Execution timed out 5094 ms 60564 KB Time limit exceeded
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 376 KB Output is correct
2 Execution timed out 5083 ms 77608 KB Time limit exceeded
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 376 KB Output is correct
2 Execution timed out 5083 ms 77608 KB Time limit exceeded
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 376 KB Output is correct
2 Execution timed out 5083 ms 77608 KB Time limit exceeded
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 376 KB Output is correct
2 Runtime error 1588 ms 524292 KB Execution killed with signal 9 (could be triggered by violating memory limits)
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 376 KB Output is correct
2 Execution timed out 5093 ms 405112 KB Time limit exceeded
3 Halted 0 ms 0 KB -