问题标题: 酷町堂:4542 急!!!!!

0
0
已解决
胡景轩
胡景轩
资深守护
资深守护

题目链接: 酷町堂:4542

#include<iostream>
#include<cstdio>
#include<cmath>
#include<string>
#include<algorithm>
using namespace std;
bool j(int t){
    if(abs(sqrt(t)-(int)(sqrt(t)))<=0.000001){
        return true;
    }
    return false;
}
int main(){
    int l=0;
    for(int i=100;i<=999;i++){
        int a=0,b=0,c=0 ;
        a=i%10;
        b=i/10%10;
        c=i/100;
        if(j(a*b+36)&&j(b*c+36)){
            cout<<i<<endl;
            l++;
        } 
    }
    if(l==0){
        cout<<0;
    }
    return 0;
}

哪里错了》???


0
已采纳
郭梓强
郭梓强
初级光能
初级光能

告诉你答案

输出

100,200,300,400,407,470,500,509,590,600,700,704,740,800,808,880,888,900,905,950就行了

完美AC*★,°*:.☆( ̄▽ ̄)/$:*.°★* 。

0
0
崔子周
崔子周
高级天翼
高级天翼

这玩意只能像郭某人那样原样输出

0
董博
董博
初级守护
初级守护

反正我按郭**的方法写对的

0
我要回答