codeforces 214A System of Equations
来源:互联网 发布:c语言if语句例题 编辑:程序博客网 时间:2024/06/04 17:41
点击打开链接
水题
#include<iostream>#include<cstdio>#include<cstring>#include<cmath>#include<cstdlib>using namespace std;int main(){ int n,m,s=0; cin>>n>>m; for(int i=0;i<=1000;i++) { for(int j=0;j<=1000;j++) { if(i*i+j==n&&i+j*j==m) s++; } } cout<<s<<endl; return 0;}
阅读全文
0 0
- Codeforces 214A System of Equations
- codeforces 214A System of Equations
- A. System of Equations
- A.System of Equations
- CF 214 A System of Equations
- Codeforces Round #131 (Div. 2) / 214A System of Equations(枚举&优化)
- Codeforces Round #131 (Div. 2) / 214A System of Equations 暴力枚举
- System of Equations
- System of Equations
- System of Equations
- <cf>System of Equations(水题)
- 【索引】Matrix & System of Linear Equations
- 【索引】Matrix & System of Linear Equations::Examples
- 【索引】Matrix & System of Linear Equations::Exercises: Beginner
- 【索引】Matrix & System of Linear Equations::Exercises: Intermediate
- Codeforces 458A Golden System
- Codeforces 458A Golden System
- the equations of backpropagation
- JAVA设计模式---适配器模式
- HTML5 canvas绘图
- java日期格式化及获取相关总结
- Kruskal
- openwrt添加新平台支持
- codeforces 214A System of Equations
- 用qt写出来的一个网络爬虫
- C# 中字符串string和字节数组byte[]之间的转换
- linux执行mysql脚本文件
- ArrayList和LinkedList在性能上优缺点
- empty character constant
- JavaWeb——Ajax与MVC学习总结
- 双向链表
- Windows下Ubuntu16.04双系统的安装及使用