Hi, Why my code is WA? all of your input have the same output. hmmm.
#include<iostream>
#include<cstdlib>
#include<cstdio>
#include<cctype>
#include<vector>
enum {NUMBER, LEFTBRACE, RIGHTBRACE, EMPTY};
class Token
{
int value;
std::string lex;
public :
Token() : value(-1), lex ...
Search found 13 matches
- Wed Apr 05, 2017 10:48 am
- Forum: Volume 1 (100-199)
- Topic: 112 - Tree Summing
- Replies: 137
- Views: 32307
- Mon Nov 25, 2013 4:15 pm
- Forum: Volume 4 (400-499)
- Topic: 492 - Pig-Latin
- Replies: 213
- Views: 49429
- Fri Nov 01, 2013 6:07 am
- Forum: Volume 7 (700-799)
- Topic: 763 - Fibinary Numbers
- Replies: 40
- Views: 23453
Re: 763 - Fibinary Numbers
thanks
haha I see @_@ I thought it's my algorithm
thanks


- Wed Oct 30, 2013 5:37 pm
- Forum: Volume 7 (700-799)
- Topic: 763 - Fibinary Numbers
- Replies: 40
- Views: 23453
Re: 763 - Fibinary Numbers
What's wrong with this code?
The Input and the output is correct @_@. hmm... any suggestion why I'm getting WA.
Code: Select all
AC
- Fri Nov 02, 2012 7:45 pm
- Forum: Volume 1 (100-199)
- Topic: 113 - Power of Cryptography
- Replies: 163
- Views: 50334
Re: 113 - wrong answer
What's the error in this code?
Code: Select all
I see thanks brianfry713
- Wed Oct 03, 2012 3:47 pm
- Forum: Volume 114 (11400-11499)
- Topic: 11479 - Is this the easiest problem?
- Replies: 48
- Views: 27148
Re: 11479 - Is this the Easiest Problem?
Can I ask? What is the Difference between this two codes?
my bad XD
Thanks brianfry713 for correcting my post hahah
my bad XD
Thanks brianfry713 for correcting my post hahah
- Tue Oct 02, 2012 5:28 am
- Forum: Volume 114 (11400-11499)
- Topic: 11479 - Is this the easiest problem?
- Replies: 48
- Views: 27148
Re: 11479 - Is this the Easiest Problem?
why is this WA? the input is right the variable is long long.
#include<iostream>
using namespace std;
int main(){
long long cycle, a, b ,c;
cin >> cycle;
for(int counter = 0 ; counter < cycle; counter++){
cin >> a >> b >> c;
cout << "Case " << counter + 1 << ": ";
if(( a + b > c ...
#include<iostream>
using namespace std;
int main(){
long long cycle, a, b ,c;
cin >> cycle;
for(int counter = 0 ; counter < cycle; counter++){
cin >> a >> b >> c;
cout << "Case " << counter + 1 << ": ";
if(( a + b > c ...
- Tue Sep 25, 2012 4:39 am
- Forum: Volume 109 (10900-10999)
- Topic: 10929 - You can say 11
- Replies: 69
- Views: 37117
Re: 10929 - You can say 11
brianfry713 wrote:You're missing the period at the end of each line.
Still WA @_@
- Sun Sep 23, 2012 11:10 am
- Forum: Volume 109 (10900-10999)
- Topic: 10929 - You can say 11
- Replies: 69
- Views: 37117
Re: 10929 - You can say 11
why WA?
can you determine why?
#include<iostream>
using namespace std;
bool eleven(string number){
bool isEleven = true;
for(int counter = 0; counter < number.length() - 1; counter++){
if(number[counter] == '0')
continue;
while(true){
if(number[counter] == '1' && number[counter + 1 ...
can you determine why?
#include<iostream>
using namespace std;
bool eleven(string number){
bool isEleven = true;
for(int counter = 0; counter < number.length() - 1; counter++){
if(number[counter] == '0')
continue;
while(true){
if(number[counter] == '1' && number[counter + 1 ...
- Fri Aug 03, 2012 6:39 am
- Forum: Volume 4 (400-499)
- Topic: 494 - Kindergarten Counting Game
- Replies: 119
- Views: 37243
Re: 494 WA
Code: Select all
Thanks brianfry713
I dont know why its WA.... hmmmm its maybe my algorithm
- Wed Aug 01, 2012 7:36 am
- Forum: Volume 4 (400-499)
- Topic: 495 - Fibonacci Freeze
- Replies: 222
- Views: 59959
Re: 495 - Fibonacci Freeze
still sir it's WA T_T.... I don't know why my code is WA..... @_@
ok ok hahah I know the problem now... the code just got accepted XD
ok ok hahah I know the problem now... the code just got accepted XD
- Tue Jul 31, 2012 5:59 pm
- Forum: Volume 4 (400-499)
- Topic: 495 - Fibonacci Freeze
- Replies: 222
- Views: 59959
Re: 495 - Fibonacci Freeze
What do you mean blank lines? the newline? hmmm I already tried it but still WA...
or maybe if the input of the user is greater than 5000 its gives nothing?
or maybe if the input of the user is greater than 5000 its gives nothing?
- Sun Jul 29, 2012 7:13 pm
- Forum: Volume 4 (400-499)
- Topic: 495 - Fibonacci Freeze
- Replies: 222
- Views: 59959
Re: 495 - Fibonacci Freeze
Why is this a WA?
Code: Select all
Code Accpeted