整数分类 oj上总是wrong answer 摘要:Description 按照下面方法对整数x进行分类:如果x是一个个位数,则x属于x类;否则将x的各位上的数码累加,得到一个新的x,依次迭代,可以得到x的所属类。比如说24,2+4=6,则24的类…… 文章列表 2017年11月09日 0 点赞 1 评论 823 浏览 评分:0.0
平方数问题,oj一直是wrong answer 摘要:Description 描述 给你一个整数集合A(无重复元素),如果x,y都属于A,且y=x*x,那么组成一个数对,请找出这个集合中满足条件的数对的个数。比如说集合A={2,3,4},…… 文章列表 2017年11月09日 2 点赞 2 评论 873 浏览 评分:0.0
用getchar()函数接收字符,正序输入为什么会倒序输出 摘要:#include<stdio.h>int main(){ char a, b, c, d; printf("%c %c %c %c\n", getchar(), getchar(), ge…… 文章列表 2017年11月11日 3 点赞 2 评论 874 浏览 评分:0.0
求教大神。。。。1063,统计字符。 摘要:这是1063题,为啥显示编译错误啊。。。。在code::blocks上显示无错误,成功运行#include<stdio.h>int main(){ int english=0,space=0,n…… 文章列表 2017年11月13日 1 点赞 1 评论 11829 浏览 评分:0.0
1063题 初学者,求帮忙看下,不知道哪错了 摘要:#include<stdio.h>#include<ctype.h>int main(){ int a=0,b=0,c=0,d=0;//abcd 数字 字母 空格 其他 char s; w…… 文章列表 2017年11月15日 0 点赞 1 评论 340 浏览 评分:0.0
1074题 初学者,求帮忙看下,不知道哪错了 摘要:#include<stdio.h>int main(){ int n; scanf("%d",&n); while(n!=0) {int m; A: m=n%10…… 文章列表 2017年11月15日 0 点赞 1 评论 401 浏览 评分:0.0
素数的个数 一直是超时 摘要:给定两个非负整数a,b,其中0<= a,b<=1,000,000,请计算这两个数之间有多少个素数。输入第一行是一个整数K(1<=K<=1000),表示有多少个样例,每个样例占一行,是两个整数a和b,每…… 文章列表 2017年11月16日 0 点赞 2 评论 870 浏览 评分:0.0
拯救雅典娜 摘要:#include <stdio.h> //Dfs深度优先搜索 注意搜索深度t #include <string.h> char D[20][20]; int t,n,m; i…… 文章列表 2017年11月16日 2 点赞 0 评论 1621 浏览 评分:0.0
ACM俱乐部密码 摘要:#include <stdio.h> //不用动态规划的话运行960ms时间感人,用动态规划就变成1ms #include <string.h> //用动态规划时需主要要保…… 文章列表 2017年11月21日 0 点赞 2 评论 1084 浏览 评分:0.0