Search found 3 matches

by qwerfv
Sun Nov 06, 2005 12:27 pm
Forum: Volume 100 (10000-10099)
Topic: 10098 - Generating Fast
Replies: 62
Views: 21615

Thanks to chunyi81 and tywok's advice
I realized what's wrong and........
I get AC now.... :P
by qwerfv
Sun Nov 06, 2005 4:43 am
Forum: Volume 100 (10000-10099)
Topic: 10098 - Generating Fast
Replies: 62
Views: 21615

Code: Select all

cin>>m;
cin.get();
can be replaced with
scanf("%d\n",&m); in c

and I use your code sort(s.begin(),s.end()) would output incorrectly in BCB5
I use my code can output correctly ...But I dont know why get WA(not TLE)..
by qwerfv
Sat Nov 05, 2005 6:59 pm
Forum: Volume 100 (10000-10099)
Topic: 10098 - Generating Fast
Replies: 62
Views: 21615

10098 WA help(c++)

hi,everyone:

I can't find what's wrong in this code
please help with the code
any help would be appreciated..


#include <iostream.h>
#include <algorithm>
#include <string>
void main()
{
string s;
int m,i;
cin>>m;
cin.get();

for(i=0;i<m;i++){
getline(cin,s);
sort(s.begin(),s.end()-1);
do ...

Go to advanced search