Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
98632 CSYZ_GaoSL SUM C++ 运行超时 10 1000 MS 252 KB 468 2023-08-16 12:09:23

Tests(2/20):


#include<bits/stdc++.h> using namespace std; #define ll long long int main(){ int T; scanf("%d",&T); while(T--){ ll l,r,ans=0; scanf("%lld%lld",&l,&r); for(ll i=l;i<=r;i++) for(ll j=i+1;j<=r;j++) for(ll k=j+1;k<=r;k++){ ll g=__gcd(i,j); ans+=(i*j*k/(g*__gcd(i*j/g,k))>=i+j+k); } printf("%lld\n",ans); } return 0; }


测评信息: