Hello, world!-题解(C++代码)三行搞定! 摘要:解题思路: 利用C++的大招——强制类型转换,将输入的int,转换为char输出,最简代码注意事项: C++里,while(cin >> x)可以直接判断输入为EOF的情…… 题解列表 2020年09月10日 0 点赞 0 评论 612 浏览 评分:9.9
C与C++的共用解法 摘要: #include #include using namespace std; int main() { int s; //whi…… 题解列表 2022年01月28日 0 点赞 1 评论 528 浏览 评分: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 评论 537 浏览 评分:9.9
1083: Hello, world! 摘要:解题思路:什么 b 题目啊,我一直在想怎么才能输入一串整数后自动结束,因为题目强调了没有 EOF,我还以为是有什么非常规接收输入的办法,结果随手提交发现通过了。那你写那么多条件干嘛?注意事项:不是很懂…… 题解列表 2022年04月23日 0 点赞 0 评论 423 浏览 评分:9.9
两句话搞定 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a; while (cin >> a) { cout << …… 题解列表 2022年06月24日 0 点赞 0 评论 716 浏览 评分:9.9
1083: Hello, world! 摘要:```cpp #include using namespace std; int main() { int a; while(cin>>a) cout…… 题解列表 2022年08月28日 0 点赞 0 评论 284 浏览 评分:9.9
Hello, world!(怀氏c++) 摘要:解题思路:把数字转换成ASCI码值,就是对应的char类型值注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a; …… 题解列表 2022年10月24日 0 点赞 0 评论 167 浏览 评分:9.9
c++三行题解 摘要:解题思路:使用强转输出数据注意事项:while的循环读入参考代码:#include<bits/stdc++.h> using namespace std; int main(){ int…… 题解列表 2022年12月07日 0 点赞 0 评论 179 浏览 评分:9.9
吾乃元始天尊!1083: Hello, world! 摘要:#### 输入然后输出(简单so easy:beers:) ```cpp #include using namespace std; int main() { int n; whil…… 题解列表 2022年12月24日 0 点赞 0 评论 208 浏览 评分: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 评论 197 浏览 评分:9.9