# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
474622 | mychecksedad | Vepar (COCI21_vepar) | C++17 | 235 ms | 9912 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include<bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define pb push_back
#define all(x) x.begin(), x.end()
const int N = 1e7+10;
int a, b, c, d, T, x, y;
vector<ll> primes;
vector<bool> is(N);
int main(){
cin.tie(0); ios::sync_with_stdio(0);
for(int i = 2; i < N; i++){
if(!is[i]){
primes.pb(i);
for(int j = i; j < N; j += i) is[j] = 1;
}
}
cin >> T;
while(T--){
cin >> a >> b >> c >> d;
bool ok = 1;
for(ll p: primes){
x = y = 0;
ll e = p;
while(e <= max(b, d)){
ll n = ((a+e-1) / e);
ll m = (b / e);
# | 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... |