Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
98621 | CSYZ_GanRZ | SUM | C++ | 运行超时 | 10 | 1000 MS | 240 KB | 341 | 2023-08-16 12:08:57 |
#include<bits/stdc++.h> #define int long long using namespace std; int t,l,r; signed main(){ cin>>t; while(t--){ cin>>l>>r; int ans=0; for(int i=l;i<=r;i++){ for(int j=i+1;j<=r;j++){ for(int k=j+1;k<=r;k++) if(i*j*k/__gcd(i,j)/__gcd(i*j/__gcd(i,j),k)>=i+j+k) ans++; } } cout<<ans<<endl; } return 0; }