编写题解 1083: Hello, world! 摘要:参考代码:#include<stdio.h>#include<stdlib.h>int main(){ int x; while(scanf("%d",&x)!=EOF) { prin…… 题解列表 2021年03月12日 0 点赞 0 评论 957 浏览 评分:0.0
Hello, world!最简单C语言代码 解题思路:注意事项:这里我直接申请了一个全局变量的数组,如此做可以扩大数组可存储数量的上限;同时由于字符存储在计算机中就是以ASCII码形式,因此可以直接以%c格式输出存储在该数组的输入数据。//参考代码:#includeintx[100010];intmain(){inta, 题解列表 2021年03月19日 0 点赞 0 评论 899 浏览 评分:6.0
1083: Hello, world!(C语言) 摘要:解题思路:1.接收输入,并储存在数组中。 2.等到不需要再次接收时,获取EOF退出,并在字符串末尾加上‘\0’表示结束。注意事项:字符串的截止符。参考代码:#include…… 题解列表 2021年05月30日 0 点赞 0 评论 599 浏览 评分:0.0
1083 【精简】【蓝桥杯】hello world 摘要:解题思路:注意事项:参考代码:#includeint main(){ int a; while(~scanf("%d",&a)) printf("%c",a);}…… 题解列表 2021年10月06日 0 点赞 6 评论 761 浏览 评分:7.3
非常短,可以看看 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; while(~scanf("%d", &a))printf("%c",a); r…… 题解列表 2021年11月08日 0 点赞 0 评论 1212 浏览 评分:7.3
Hello, world!(已经够简单的了) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n;while( scanf("%d",&n)!=EOF){ printf("%c",…… 题解列表 2021年12月09日 0 点赞 0 评论 607 浏览 评分:0.0
1083: Hello, world! 摘要:直接用 %c 输出 ASCII 码对应的字符,注意读入换行符时输出空格。#include <bits/stdc++.h> using namespace std; int main() { …… 题解列表 2021年12月23日 0 点赞 0 评论 504 浏览 评分:0.0
Hello, world!-题解(python代码) 解题思路:注意事项:参考代码:lst=list(map(str,input().split()))lst2=list(map(str,input().split()))lst.extend(lst2)foriinrange(len(lst)):lst[i]=chr(int(lst[i]))print( 题解列表 2022年01月26日 0 点赞 0 评论 853 浏览 评分:9.5
C与C++的共用解法 #include#includeusingnamespacestd;intmain(){ints;//while(cin>>s&&s!=EOF)//直接使用C++的EOF//while(scanf("%d",&s)==1)//与EOF功能相同while(~scanf("%d", 题解列表 2022年01月28日 0 点赞 1 评论 840 浏览 评分:9.9
1083: Hello, world!(c++版) **解题思路:**以数字形式输入,以字符形式输出即可**具体代码**```cpp#includeusingnamespacestd;intmain(){intn;while(scanf("%d",&n)!=EOF){printf("%c",n);}return0;}``` 题解列表 2022年02月09日 0 点赞 2 评论 493 浏览 评分:8.0