# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
568678 | almothana05 | 이상한 기계 (APIO19_strange_device) | C++14 | 5076 ms | 524288 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
#define mod 1000000007
#define inf 10000000000000000
using namespace std;
vector<pair<long long , long long> >num;
map<pair<long long , long long> , long long>trans;
int main(){
ios_base::sync_with_stdio(false);
cin.tie(NULL);
long long menge , numm , nummer , ed , cmp , comp , erg = 0;;
cin >> menge >> cmp >> comp;
for(long long i = 0 ; i < menge ; i++){
cin >> numm >> nummer;
num.push_back({numm , nummer});
}
for(long long i = 0 ; i < menge ; i++){
for(long long j = num[i].first ; j <= num[i].second ; j++){
numm = (j + (long long)(j/comp)) % cmp;
nummer = (j) % comp;
trans[{numm , nummer}]++;
if(trans[{numm , nummer}] == 1){
erg++;
}
}
}
cout << erg << "\n";
}
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |