Search found 4 matches

by andrei_vish
Tue Nov 15, 2005 3:36 pm
Forum: Volume 2 (200-299)
Topic: 214 - Code Generation
Replies: 21
Views: 10082

Thanks,
I fixed this bug and got AC.
by andrei_vish
Mon Nov 14, 2005 10:16 pm
Forum: Volume 2 (200-299)
Topic: 214 - Code Generation
Replies: 21
Views: 10082

Thanks,
My answer for A@B@+C@D@++ is


L A
N
ST $1
L B
N
A $1
ST $1
L C
N
ST $2
L D
N
A $2
A $1


but still got WA


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

using namespace std;

enum TokenType
{
UnaryOp, BinaryOp, Varible
};


TokenType GetTokenType(char ...
by andrei_vish
Mon Nov 14, 2005 4:18 pm
Forum: Volume 6 (600-699)
Topic: 608 - Counterfeit Dollar
Replies: 19
Views: 11743

I don't know what's wrong ?
This is my source:



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

using namespace std;

struct SetWeight
{
enum { Len = 12};
bool st[Len];
int weight;
string swstr;

explicit SetWeight(bool setted = false)
{
for (unsigned i = 0; i < Len; ++i)
st[i ...
by andrei_vish
Mon Nov 14, 2005 4:13 pm
Forum: Volume 2 (200-299)
Topic: 214 - Code Generation
Replies: 21
Views: 10082

My code pass all tests listed here, but I got WA.
I don't know what's wrong ?


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

using namespace std;

enum TokenType
{
UnaryOp, BinaryOp, Varible
};


TokenType GetTokenType(char token)
{
if (token == '@')
return ...

Go to advanced search