ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1025. Democracy in Danger

Wrong Answer: test #1
Posted by Vyacheslav Dashivets 21 Dec 2006 01:08
I just don't get the mistake I made:

I assigned an input file;
Opened it for reading;
Read the K;
Went to the next line of file and read the array;
Closed input file;
Sorted the array with the bubble method;
Went through half of it {(k div 2) +1};
Acquired the minimum number;
Appended the input file;
Wrote Line into it;
Wrote donw the minimum number into the input file;
Closed the input file;
And that's it.

Somebody, please help. I really don't understand a mistake I've made.

Edited by author 21.12.2006 01:10
Re: Wrong Answer: test #1
Posted by egor-belikov 28 Sep 2010 00:36
Don't assign files