I passed sample I/O and the above test data, but still got WA...
can any body help me?
thank you!
#include<stdio.h>
#include<string.h>
int csN, csk, L, K;
char S[10002];
inline bool Equal(char a, char b, char c, char d)
{
return a == b && a == c && a == d;
}
int main()
{
int i, j, t;
char ...
Search found 9 matches
- Wed Aug 22, 2007 11:21 am
- Forum: Volume 112 (11200-11299)
- Topic: 11221 - Magic square palindromes.
- Replies: 58
- Views: 30489
- Fri Aug 10, 2007 8:37 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10199 - Tourist Guide
- Replies: 57
- Views: 40768
- Fri Aug 10, 2007 9:06 am
- Forum: Volume 112 (11200-11299)
- Topic: 11252 - Take Me Home (To the Place I Belong)
- Replies: 8
- Views: 3599
11252 - Take Me Home (To the Place I Belong)
I think it's a DP problem,
but I don't know why I got WAs.
Can some body give me some sample input/output?
Thank you very much!!
but I don't know why I got WAs.
Can some body give me some sample input/output?
Thank you very much!!
- Sun Jan 21, 2007 9:27 am
- Forum: Volume 111 (11100-11199)
- Topic: 11164 - Kingdom Division
- Replies: 6
- Views: 3769
try these input:
Code: Select all
4 6 9
6 7 15
- Sun Jul 23, 2006 5:39 pm
- Forum: Volume 110 (11000-11099)
- Topic: 11054 - Wine trading in Gergovia
- Replies: 25
- Views: 11066
- Sun Jul 23, 2006 5:34 pm
- Forum: Volume 110 (11000-11099)
- Topic: 11054 - Wine trading in Gergovia
- Replies: 25
- Views: 11066
- Sun Apr 02, 2006 12:51 pm
- Forum: Volume 110 (11000-11099)
- Topic: 11024 - Circular Lock
- Replies: 14
- Views: 5725
- Sun Apr 02, 2006 6:28 am
- Forum: Volume 110 (11000-11099)
- Topic: 11026 - A Grouping Problem
- Replies: 28
- Views: 23879
- Sun Apr 02, 2006 5:23 am
- Forum: Volume 110 (11000-11099)
- Topic: 11024 - Circular Lock
- Replies: 14
- Views: 5725
11024 - Circular Lock
I got WA during the contest...
I think that a lock can be deactivated if and only if
(p11-s11)%p11 + (p22-s22)%p22 = (p12-s12)%p12 + (p21-s21)%p21
am I right?
If not, what's the correct way to solve this problem?
Thank you very much!!
I think that a lock can be deactivated if and only if
(p11-s11)%p11 + (p22-s22)%p22 = (p12-s12)%p12 + (p21-s21)%p21
am I right?
If not, what's the correct way to solve this problem?
Thank you very much!!