作者DiLegend (JOU)
看板C_and_CPP
标题[ACM ] 458
时间Sun Jul 19 16:10:48 2009
#include<iostream>
using namespace std;
int main(void){
string input;
int word,i;
while(cin>>input)
{word=input.length();
for( i=1;i<word;i++)
{if((input[i]==39))
{input[i]=' ';}
else
{input[i]-=7;}
}
input[0]='*';
cout<<input<<endl;
}
return 0;
}
以上为小弟的code
我自己输出答案 看起来是对的
但传过去是WA = =
有请版上大大告诉我我错在哪
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 114.45.50.158
1F:推 LPH66:你仔细观察一下第一个字是不是也在规则内 07/19 17:00
2F:→ DiLegend:我白痴了= = 07/19 17:46