首页
DreamJudge
院校信息
专业题库
模拟考试
机试真题
上岸课程
兑换中心
登录
注册
上岸
以下题解仅供学习参考使用。
抄袭、复制题解,以达到刷AC率/AC数量或其他目的的行为,在N诺是严格禁止的。
N诺非常重视学术诚信。此类行为将会导致您成为作弊者。具体细则请查看N诺社区规则。
zxjrheaven
2025年3月16日 19:28
反序输出 题解:暴力
P1155
回复 0
|
赞 0
|
浏览 112
#include <bits/stdc++.h> using namespace std; int main() { string str; while(cin>>str) { for(int i=3;i>=0;i--) &nb...
Candour
2024年6月11日 22:13
反序输出 (C++)题解:
P1155
回复 0
|
赞 6
|
浏览 569
#include<bits/stdc++.h> using namespace std; string str; int main() { while(cin >> str) { reverse(str.begin(), str.end()); cout << str << endl; } return 0; }
小王桐学
2024年2月5日 20:19
反序输出 题解:C
P1155
回复 0
|
赞 5
|
浏览 812
#include <stdio.h> #include <string.h> void Reverse(char *s) { char *p = s; while(*p != '\0') p++; p--; while(p >= s) { printf("%c",*p); p--; } } int main() { char s[5]; while(scanf("%s",s) != EOF) { Reverse(s); printf("\n"); } return 0...
活着的传奇
2023年8月22日 17:01
反序输出 题解:
P1155
回复 0
|
赞 1
|
浏览 788
#include<bits/stdc++.h> using namespace std; int main(){ char s[4]; while(scanf("%s",s)!=EOF){ for(int i=3;i>=0;i--){ printf("%c",s[i]); } cout<<endl; } return 0; }
Hegel
2023年3月28日 19:42
反序输出字符串
P1155
回复 0
|
赞 1
|
浏览 2.0k
#include <iostream> #include <string> using namespace std; int main() { string s; while(getline(cin,s)){ for(int i=s.size()-1;i>=0;i--) cout<<s[i]; cout<<endl; } return 0; }
蒋黎明
2022年3月17日 16:35
C++
P1155
回复 0
|
赞 2
|
浏览 5.3k
#include<bits/stdc++.h> using namespace std; int main(){ char s[4]; while(scanf("%s", &s)!= EOF){ cout << s[3] << s[2] << s[1] <<s[0] <<endl; } &...
题目
反序输出
题解数量
6
发布题解
在线答疑
热门题解
1
反序输出 (C++)题解:
2
反序输出 题解:C
3
C++
4
反序输出字符串
5
反序输出 题解:
6
反序输出 题解:暴力