Codeforces Round #392 (Div. 2), problem: (F) Geometrical Progression Solution in C/C++
#include<stdio.h> #include<stdlib.h> #define N 10000001 #define SN 3163 typedef long long unsigned llu; typedef unsigned u; int F(const void*x,const void*y) { if(*(llu*)x>*(llu*)y)return 1; if(*(llu*)y>*(llu*)x)return-1; return 0; } u D,Ga,Gi;llu *G; int main() { u a,b,c,i,j,k,n,x,y,lo,hi,mi;llu …