답안 #260008

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
260008 2020-08-08T22:42:43 Z s_avila_g 이상한 기계 (APIO19_strange_device) C++14
0 / 100
3250 ms 524292 KB
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define ff first
#define ss second
map<pair<ll,ll>, ll> mp;

int main(){
    ll n,a,b,x1,y1;
    cin>>n>>a>>b;
    cin>>x1>>y1;
    for(ll i = x1; i <= y1; i++){
        ll xi = ((i+(i/b)) % a), yi = i % b;
        mp[make_pair(xi,yi)]++;
    }
    cout<<mp.size()<<endl;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 256 KB Output is correct
2 Incorrect 0 ms 384 KB Output isn't correct
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 256 KB Output is correct
2 Runtime error 3250 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 1 ms 256 KB Output is correct
2 Incorrect 1 ms 416 KB Output isn't correct
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 384 KB Output is correct
2 Incorrect 1 ms 384 KB Output isn't correct
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 384 KB Output is correct
2 Incorrect 1 ms 384 KB Output isn't correct
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 384 KB Output is correct
2 Incorrect 1 ms 384 KB Output isn't correct
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 256 KB Output is correct
2 Incorrect 20 ms 6272 KB Output isn't correct
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 256 KB Output is correct
2 Incorrect 0 ms 384 KB Output isn't correct
3 Halted 0 ms 0 KB -