Hello, world! (C语言代码) 摘要:解题思路:注意事项:竞赛题一定要控制程序执行时间,所以不可以使用while(true)无限死循环参考代码:#include<stdio.h> int main() { int n; whi…… 题解列表 2018年05月31日 1 点赞 0 评论 729 浏览 评分:0.0
Hello, world! (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ char c; int a[100],i=0; int j;do{ scanf("%d",&a[i]); …… 题解列表 2018年06月13日 0 点赞 0 评论 516 浏览 评分:0.0
Hello, world! (C语言代码) 摘要:解题思路:注意事项:结束ctrl+z参考代码:#include<stdio.h>int main(){ int a[100],i,j=0; while((scanf("%d",&a[j]))!=EOF…… 题解列表 2018年09月29日 0 点赞 0 评论 517 浏览 评分:0.0
Hello, world! (C语言代码) 摘要:解题思路:根据ASCII表对应的转换注意事项:转换过程中注意对应所占的空间不能超过参考代码#include<stdio.h>int main(){ int a; printf("Please in…… 题解列表 2018年10月14日 0 点赞 0 评论 603 浏览 评分:0.0
Hello, world! (C++代码) 摘要:解题思路:已AC注意事项:输入和输出不在同一个缓冲区!参考代码:#include <cstdio>using namespace std;int main(){ int asc; …… 题解列表 2018年10月29日 0 点赞 0 评论 439 浏览 评分:0.0
Hello, world! (C语言代码) 摘要:解题思路: 每个字符都有对应的assic码,直接将每个数字通过循环直接转化为字符即可注意事项: scanf("%d", &ch)!=EOF 当输入为回车时返回0参考代码:#include…… 题解列表 2018年11月08日 0 点赞 0 评论 378 浏览 评分:0.0
Hello, world! (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i=0,a[50]; while(scanf("%d",&num[i]) != EOF) …… 题解列表 2018年11月15日 0 点赞 0 评论 367 浏览 评分:0.0
Hello, world! (C语言代码) 摘要:解题思路:将数字转化为字符注意事项:不能直接用char(a)改变a的属性参考代码:#include<stdio.h>int main(){ int a; while((scanf("%d"…… 题解列表 2018年11月19日 0 点赞 0 评论 464 浏览 评分:0.0
Hello, world! (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[100],b,i=0,j; while(scanf("%d",&b)!=EOF) { a[i]=b…… 题解列表 2018年12月27日 0 点赞 0 评论 420 浏览 评分:0.0
Hello, world! (C++代码) 摘要:解题思路:利用强制类型转换注意事项:c++有默认的文件结束参考代码:#include<iostream>using namespace std;int main(){ int a; w…… 题解列表 2019年01月19日 0 点赞 0 评论 477 浏览 评分:0.0