Search found 5 matches

by cksteven
Thu Oct 15, 2015 3:16 pm
Forum: Volume 15 (1500-1599)
Topic: 1588 - Kickdown
Replies: 1
Views: 935

1588 Kickdown WA

I thought this algorithm i used is correct...but i got WAs. Could anyone help me with it or provide some inputs for test? #include<cstdio> #include<iostream> #include<string> #include<algorithm> using namespace std; int main(){ #ifndef ONLINE_JUDGE freopen("input.txt","r",stdin); freopen("output.txt...
by cksteven
Tue Aug 12, 2014 10:14 pm
Forum: Volume 5 (500-599)
Topic: 511 - Do You Know the Way to San Jose?
Replies: 8
Views: 2930

Re: 511 WA- Do You Know the Way to San Jose?

Thank you very much, @lighted! :D
Now i knew the difference between

Code: Select all

cout<<ends;
and

Code: Select all

cout<<" ";
.
p.s. My C++ Primer (Chinese Edition) says ends will output a space.
by cksteven
Tue Aug 12, 2014 10:34 am
Forum: Volume 5 (500-599)
Topic: 511 - Do You Know the Way to San Jose?
Replies: 8
Views: 2930

511 WA- Do You Know the Way to San Jose?

i tried and fixed some problems i found but i still got WA.
my code can pass the sample i/o data.

can anyone offer me some I/O data,plz?

or this is my code,if you are helpful and free,would you help me fix it?

Code: Select all

	......
	cout<<name<<" at detail level "<<level<<ends;
	......
by cksteven
Thu Jul 24, 2014 1:49 am
Forum: Volume 5 (500-599)
Topic: 509 - RAID!
Replies: 2
Views: 739

Re: 509 - RAID! WA

Thank you brianfry713.
Finally i got AC.
But the mistake is that if a parity block is broken but the data blocks are still available, the disk is still vaild, not invalid.
(english may be not 100% appropriate)
by cksteven
Wed Jul 23, 2014 9:50 am
Forum: Volume 5 (500-599)
Topic: 509 - RAID!
Replies: 2
Views: 739

509 - RAID!

Here is my code. I tested the sample input and the output was right on my machine. Can someone kind help find my mistake or offer me some test i/o,plz? Or someone can plz post your AC code so that i can learn from you? I'm confused with this problem for a whole day. #include<stdio.h> #include<string...

Go to advanced search