淘淘的名单 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> int main(){ char a[100000][5]; int n,i; …… 题解列表 2017年10月22日 1 点赞 1 评论 1525 浏览 评分:7.3
找出最长的字符串来 (C语言代码) 摘要:解题思路:输出最长的用strlen()函数算出长度。一个个比较。注意事项:c语言中,没有字符串类型,用字符数组处理字符串。参考代码:#include<stdio.h>#include<string.h…… 题解列表 2017年10月25日 2 点赞 0 评论 2303 浏览 评分:7.3
printf基础练习 (C语言代码) 摘要:解题思路:1.首先确定8,16进制在C语言中的表示符号:%o,%x。 2.确定正常情况下如何表示8,16进制:0+数字;0x+数字。 3.所以在编写时就有:printf("0%o 0x…… 题解列表 2017年10月28日 3 点赞 1 评论 2540 浏览 评分:7.3
幸运数 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;const int M=500000;int a[M],count;void Lucky_nu…… 题解列表 2017年11月01日 1 点赞 0 评论 3564 浏览 评分:7.3
孤独的骑士 (C语言代码) 摘要:#include <stdio.h> int main() { char location; int n,i,z,h,count; scanf("%d",&n); getcha…… 题解列表 2017年11月04日 1 点赞 0 评论 1634 浏览 评分:7.3
回文数(一) (C语言代码) 摘要:#include <stdio.h> int main() { int n,num,renum,sum,resum,i,t,count; scanf("%d",&n); for (…… 题解列表 2017年11月04日 3 点赞 1 评论 1722 浏览 评分:7.3
Manchester- A+B for Input-Output Practice (V) 摘要:解题思路:最外层循环控制要求和的数的组数;里层控制求和;注意事项:输出要有换行符;每次重新计算时,把上次计算的和置0;参考代码:#include<stdio.h> int main() { in…… 题解列表 2017年11月24日 20 点赞 1 评论 1605 浏览 评分:7.3
WU-数字整除 (C++代码) 摘要:#include<iostream> using namespace std; int main() { char str[10101]; while(cin>>str) { …… 题解列表 2018年02月24日 6 点赞 0 评论 2106 浏览 评分:7.3
矩阵乘法 (C语言代码) 摘要:解题思路:注意事项:本题主要考察线性代数的知识。注意一些特殊情况。参考代码:#include<stdio.h>int juzheng[3][30][30];int n;int js(int i,int…… 题解列表 2017年12月04日 0 点赞 0 评论 2099 浏览 评分:7.3
WU-A+B for Input-Output Practice (VI) (C语言代码) 摘要:参考代码:#include<stdio.h> void sum(int n) { int sum=0,a,i=0; while(i<n) { scanf("%d",&a);…… 题解列表 2017年12月16日 3 点赞 0 评论 1612 浏览 评分:7.3