[CF-214A] 简单枚举
来源:互联网 发布:js正则表达式语法大全 编辑:程序博客网 时间:2024/06/01 07:24
cannot be more straightforward
/* * CF-214A ststem of equations * mike-w * 2012-9-26 */#include<stdio.h>#include<stdlib.h>#include<string.h>int main(void){int n, m;int a, b, c=0;scanf("%d%d", &n, &m);for(a=0; a<=n; a++)for(b=0; b<=n; b++)if(a*a+b==n && a+b*b==m)c++;printf("%d\n", c);return 0;}
- [CF-214A] 简单枚举
- CF 333 A.Secrets【枚举】
- CF 337A(Puzzles-暴力枚举)
- CF#278 (Div. 2) A.(暴力枚举)
- CF #633A(暴力枚举)
- CF 337A Puzzle 【区间枚举】
- CF 319A(Malek Dance Club-枚举Xor最高位)
- CF 321A(Ciel and Robot-暴力枚举)
- CF Lucky Numbers (easy) (dfs简单枚举/next_permutation暴力)
- CF 191A - Dynasty Puzzles(简单DP)
- CF 447A(DZY Loves Hash-简单判重)
- CF #273 (Div. 2) A.(简单规律)
- cf#323-div2-A. Asphalting Roads-简单模拟
- cf#Wunder Fund Round 2016 -A - Slime Combining-简单数学
- CF #351 A. Bear and Game(简单题)
- CF #364 (Div. 2)( A. Cards 简单模拟)
- CF 868 A. Bark to Unlock 【简单匹配】
- CF 287A(IQ Test-枚举3个字符相等的矩阵)
- C语言札记之数据类型及其运算
- 在asp.net ajax 1.0 的updatePanel中如何实现文件下载
- Ruby on Rails 入门之:(8) Ruby中条件语句
- ER 和 数据库关系模式
- linux内核学习之网络篇——TCP/IP概述
- [CF-214A] 简单枚举
- Java Properties 类读取配置文件信息
- 求数组的子数组之和的最大值
- c++ 和 php 中的 = 运算符
- 黑马程序员-基础部分(1
- ScrollView layout_weight
- android ApiDemos里的Transition3d翻转修复完善
- stack smashing detected 错误的处理
- 定制应用程序外观