Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
98618 CSYZ_WanYL SUM C++ 运行超时 10 1000 MS 260 KB 485 2023-08-16 12:08:52

Tests(2/20):


#include<bits/stdc++.h> #define int long long using namespace std; signed main(){ // freopen("SUM.in","r",stdin); // freopen("SUM.out","w",stdout); ios::sync_with_stdio(false); int t; cin>>t; while(t--){ int lt,rt,ansi=0; cin>>lt>>rt; for(int i=lt;i<=rt;i++){ for(int j=i+1;j<=rt;j++){ for(int k=j+1;k<=rt;k++){ int x=i*j*k/(__gcd(i,j)*__gcd(i*j/__gcd(i,j),k)); if(x>=i+j+k) ansi++; } } } cout<<ansi<<"\n"; } return 0; }


测评信息: