Hello, world!-题解(C++代码)三行搞定! 摘要:解题思路: 利用C++的大招——强制类型转换,将输入的int,转换为char输出,最简代码注意事项: C++里,while(cin >> x)可以直接判断输入为EOF的情…… 题解列表 2020年09月10日 0 点赞 0 评论 1476 浏览 评分:9.9
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
Hello,world! 摘要:```python m = [int(i) for i in input().split()] n = [int(i) for i in input().split()] s = "" for…… 题解列表 2022年02月23日 0 点赞 0 评论 901 浏览 评分:9.9
1083: Hello, world! 解题思路:什么b题目啊,我一直在想怎么才能输入一串整数后自动结束,因为题目强调了没有EOF,我还以为是有什么非常规接收输入的办法,结果随手提交发现通过了。那你写那么多条件干嘛?注意事项:不是很懂出题人想让我们干嘛,也许是判题系统的问题吧。难道系统会自动ctrl+z?参考代码://题目1083:Hell 题解列表 2022年04月23日 0 点赞 0 评论 866 浏览 评分:9.9
两句话搞定 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a; while (cin >> a) { cout << …… 题解列表 2022年06月24日 0 点赞 0 评论 1139 浏览 评分:9.9
1083: Hello, world! 摘要:```cpp #include using namespace std; int main() { int a; while(cin>>a) cout…… 题解列表 2022年08月28日 0 点赞 0 评论 681 浏览 评分:9.9
Hello, world!(怀氏c++) 摘要:解题思路:把数字转换成ASCI码值,就是对应的char类型值注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a; …… 题解列表 2022年10月24日 0 点赞 0 评论 563 浏览 评分:9.9
c++三行题解 摘要:解题思路:使用强转输出数据注意事项:while的循环读入参考代码:#include<bits/stdc++.h> using namespace std; int main(){ int…… 题解列表 2022年12月07日 0 点赞 0 评论 565 浏览 评分:9.9
吾乃元始天尊!1083: Hello, world! ####输入然后输出(简单soeasy:beers:)```cpp#includeusingnamespacestd;intmain(){intn;while(cin>>n){printf("%c",n);}return0;}``` 题解列表 2022年12月24日 0 点赞 0 评论 663 浏览 评分:9.9
Hello, world!(水题) 摘要:```c #include int main(){ int a[100],i=0,j; while(scanf("%d",&a[i])!=EOF){ i++; } fo…… 题解列表 2023年01月11日 0 点赞 3 评论 482 浏览 评分:9.9