Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
2294 | zzzzz | 奇怪的车牌号 | C++ | 通过 | 100 | 0 MS | 244 KB | 356 | 2019-11-17 08:48:51 |
#include<bits/stdc++.h> using namespace std; bool x(int a){ float m=sqrt(a); if(ceil(m)==m){ if(floor(m)==m){ return 1; }else{ return 0; } }else{ return 0; } } int main(){ int o=0; for(int i=0;i<=6;i++){ int q=i*4+6; for(int j=0;j<=6;j++){ int w=j*4+6; if(x(q+w)==1) o++; } } cout<<o; return 0; }