真心求解!浙大ZOJ平台上3168题,觉得很简单啊,但一直WA.坐等哭求大牛!Sort ZOJ7--------------------------------------------------------------------------------Time Limit: 1 Second Memory Limit: 32768 KB -----------------------

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/06 11:41:36
真心求解!浙大ZOJ平台上3168题,觉得很简单啊,但一直WA.坐等哭求大牛!Sort ZOJ7--------------------------------------------------------------------------------Time Limit: 1 Second      Memory Limit: 32768 KB -----------------------

真心求解!浙大ZOJ平台上3168题,觉得很简单啊,但一直WA.坐等哭求大牛!Sort ZOJ7--------------------------------------------------------------------------------Time Limit: 1 Second Memory Limit: 32768 KB -----------------------
真心求解!浙大ZOJ平台上3168题,觉得很简单啊,但一直WA.坐等哭求大牛!
Sort ZOJ7
--------------------------------------------------------------------------------
Time Limit: 1 Second Memory Limit: 32768 KB
--------------------------------------------------------------------------------
Given a string of no more than 1000 characters. You are supposed to sort the characters into a substring of all Z's followed by O's, J's, 7's, and the rest of the other characters.
Input
Each case gives a string described by the problem. The string given contains no space.
Output
For each test case, output the resulting string. Note the order of the characters other than Z, O, J and 7 must be kept after sorting.
Sample Input
t7ZJ7OhO7B7O7irZtOhZdayJ77
Sample Output
ZZZOOOOJJ7777777thBirthday
我的代码:
#include
#include
using namespace std;
int main(void)
{
int i,z=0,o=0,j=0,q=0,c=0;
char ss[1000]={0};
char buff[1000]={0};
cin>>ss;
for(i=0;i

真心求解!浙大ZOJ平台上3168题,觉得很简单啊,但一直WA.坐等哭求大牛!Sort ZOJ7--------------------------------------------------------------------------------Time Limit: 1 Second Memory Limit: 32768 KB -----------------------
注意多组测试数据!
#include
#include
using namespace std;
int main()
{
char ss[1000]={0};
char buff[1000]={0};
while(cin>>ss)
{
int z=0,o=0,j=0,q=0,c=0;
for(int i=0;i

这是一个神话题目,哥哥,看不懂...我把这个神话交你了哈,

真心求解!浙大ZOJ平台上3168题,觉得很简单啊,但一直WA.坐等哭求大牛!Sort ZOJ7--------------------------------------------------------------------------------Time Limit: 1 Second Memory Limit: 32768 KB ----------------------- ZOJ 1489 运行正确,WA,应该是求最小X地方错了,真心求改正ZOJ Problem Set - 14892^x mod n = 1--------------------------------------------------------------------------------Time Limit:1 Second Memory Limit:32768 KB --------------------- 求解一道初二英语词汇题—How can I learn English well?—_______practice is the trick in learning English.横线上该怎么填啊突然怎么都想不到了真心求解 浙大考研真题公开吗? 求助一下大家高中生物题,求解~~~~有点急,真心感谢大家了0c 求助一下大家高中生物题,求解~~~~有点着急了啊,真心感谢大家了9Y 高一数学题求解.真心求.急 有过程当然最好,真心求解啊 急求浙大acm程序!2913和2914题!求浙大acm程序!这两个程序! 入门ACM题目,Problem Description无论是杭电的HDOJ,还是浙大的ZOJ,A+B问题都摆着第一个位置,不过大家都做过A+B,一模一样的题目显然太看不起大家了,所以我们改下规则,描述如下:我们定义26个字母(A 奥数找规律1 16 32 17 ? 34 50 65 中间填什莫 第八届素质杯初赛真题 真心求解 第三题真心不会, acm浙大题库怎么查自己做过的题 谁有浙大的考研量子力学真题? 浙大自主招生英语题(题型也可)物理题 2010年浙大考博英语真题 求解图上的题 拉郎是神马意思0.0真心求解啊师傅们.QWQ