Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
3739 D班-陈颖钧 姐妹数对 C++ 编译错误 0 0 MS 0 KB 291 2024-12-29 16:20:45

Tests(0/0):


#include<bits/stdc++.h> using namespace std; int main(){ int a=1,n,i,b=1,d,sum=0; cin>>n; for(i=1;i<=n;i++){ for(d=1;d<=n;d++){ a=d; if((a+b)%3==0||(a+b)%7==0){ sum++; } } b++; } cout<<suml }


测评信息: