## Search found 13 matches

Sat Oct 15, 2005 5:32 pm
Forum: Volume 109 (10900-10999)
Topic: 10932 - Calculator
Replies: 19
Views: 10972

### Re: WA

there is no negative number
HASAN_AI wrote:Hello all,
I'm also getting wa. Can u please tell me that should i handle negative number. Is there any negative number like
-1
or (-1)
Please give some I/O. Thankx in advance.
Sat Oct 15, 2005 5:31 pm
Forum: Volume 109 (10900-10999)
Topic: 10938 - Flea circus
Replies: 14
Views: 7787

### .....

O(n) for each query is too slow.

Just set a note as a root, use dfs or bfs construct a rooted tree

and for each query, find the nearest common ...... of two node.

then odd or even ........

Mon Oct 10, 2005 7:03 am
Forum: Volume 109 (10900-10999)
Topic: 10932 - Calculator
Replies: 19
Views: 10972

### double

default: if(expr[Pexpr] >= '0' && expr[Pexpr] <= '9') { int integer = 0; //**************** double while(expr[Pexpr] >= '0' && expr[Pexpr] <= '9') integer *= 10, integer += expr[Pexpr] - '0', Pexpr++; data[Ndata++] = integer; } double also works, :D my problem is that I use int to store input number
Mon Oct 10, 2005 6:55 am
Forum: Algorithms
Topic: Help needed!A problem about N-Dimentional Array Lookup
Replies: 12
Views: 1754

### sorry

sunmoonstar_love, the URL you provide has a problem alike. However, it is not helpful. What I need is a wonderful idea or the code. Sorry, but I just want to tell Little Joey where the problem can be judge :D DFS is ok. :D Don't have to construct a real N-dimensional array.
Sun Oct 09, 2005 4:27 pm
Forum: Volume 109 (10900-10999)
Topic: 10932 - Calculator
Replies: 19
Views: 10972

### oh

Why, I can't use double ??

I don't understand.
Sun Oct 09, 2005 4:26 pm
Forum: Algorithms
Topic: Help needed!A problem about N-Dimentional Array Lookup
Replies: 12
Views: 1754

### here

the problem can be found in

http://acm.zju.edu.cn/show_problem.php?pid=2538

It is one from the 30th ACM/ICPC Hangzhou prem.....
Sun Oct 09, 2005 2:11 pm
Forum: Volume 109 (10900-10999)
Topic: 10932 - Calculator
Replies: 19
Views: 10972

### thanks

thank you for your tip

Just use long double

double can't be used
Sun Oct 09, 2005 12:27 pm
Forum: Volume 109 (10900-10999)
Topic: 10932 - Calculator
Replies: 19
Views: 10972

### help

Code: Select all

``````         x=5
y=10
-1+(-x*y-1)*(+5-(-1))
-1
(-100)
``````
I have dealed with the data above; but still wrong answer

any other trick?
Sun Oct 09, 2005 5:24 am
Forum: Volume 109 (10900-10999)
Topic: 10932 - Calculator
Replies: 19
Views: 10972

### help! thx

my solution can pass other calculator problems efficiently. but Wrong here. Maybe negative integer exist in the input? or other tricks? Thank you for your help! :D #include<stdio.h> #include<string.h> double table[30]; // data as 'a'...'z' char expression[10000]; // input string char opt[10000]; // ...
Thu Aug 25, 2005 2:21 pm
Forum: Volume 108 (10800-10899)
Topic: 10894 - Save Hridoy
Replies: 15
Views: 9352

### 10894 - Save Hridoy

/* I have submitted my code on many OJ, it can pass compiler, but I got CE , why?? I'm not familiar with UVA's compiler */ #include<stdio.h> void output2(char s[][6],int n, int r, int c) { char *tmp = new char[n*c+10]; int i,j,k,t; for(i = 0; i < r; i++) { t = 0; for(j = 0; j < c; j++) { for(k = 0; ...
Thu Aug 25, 2005 5:57 am
Forum: Other words
Topic: how to submit my code?
Replies: 6
Views: 2789
thanks for your help,

My ID hadn't been actived,
Thu Aug 25, 2005 5:37 am
Forum: Other words
Topic: how to submit my code?
Replies: 6
Views: 2789

### oh no

thank you! but It doesn't work,

every time I got an "access denied ", I received an email like that,

Dear sunmoonstar:

Access Denied.

You aren't authorized to use the Online Judge from that host.
Wed Aug 24, 2005 8:48 pm
Forum: Other words
Topic: how to submit my code?
Replies: 6
Views: 2789

### how to submit my code?

I submit my solution via IE, but I got a "Access Dened"

the I use ACMsubmitter , "There was an error "

I am new, please give me a hand : )