Search found 2 matches

by wencey
Tue Nov 04, 2014 7:16 am
Forum: Volume 12 (1200-1299)
Topic: 1225 - Digit Counting
Replies: 17
Views: 8555

Re: 1225 - Digit Counting

Why my code get WA?
thank you.

#include<iostream>
#include<string>
#include<cmath>
#include<sstream>
#include<iomanip>
#include<map>

using namespace std;
int main ( )
{
int a;
cin >> a;
for ( int b = 0; b < a; b++ )
{
int ads [ 10 ];
for ( int i = 0; i < 10; i++ )
{
ads [ i ] = 0 ...
by wencey
Tue Nov 04, 2014 7:07 am
Forum: Volume 4 (400-499)
Topic: 455 - Periodic Strings
Replies: 73
Views: 29325

Re: 455 - Periodic Strings

Why my code get WA?
thank you.
C++11

#include<iostream>
#include<vector>
#include<string>

using namespace std;
int main ( )
{
int a;
cin >> a;
for ( size_t __TIME = 1; __TIME <= a; __TIME++ )
{
string str;
cin >> str;
if ( str == "" )
{
__TIME--;
continue;
}
for ( size_t i = 1; i ...

Go to advanced search