답안 #208014

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
208014 2020-03-09T18:53:21 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()<<"\n";
    return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 256 KB Output is correct
2 Execution timed out 5084 ms 405240 KB Time limit exceeded
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 376 KB Output is correct
2 Runtime error 3018 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 5061 ms 60556 KB Time limit exceeded
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 256 KB Output is correct
2 Execution timed out 5076 ms 77560 KB Time limit exceeded
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 256 KB Output is correct
2 Execution timed out 5076 ms 77560 KB Time limit exceeded
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 256 KB Output is correct
2 Execution timed out 5076 ms 77560 KB Time limit exceeded
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 376 KB Output is correct
2 Runtime error 1545 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 256 KB Output is correct
2 Execution timed out 5084 ms 405240 KB Time limit exceeded
3 Halted 0 ms 0 KB -