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 1820. Ural Steaks

No subject
Posted by Makc 19 Mar 2011 14:37
8 test...

Edited by author 19.03.2011 14:38

Edited by author 19.03.2011 14:38
Re: No subject
Posted by Solty 19 Mar 2011 14:41
please, give 8th test
Re: No subject
Posted by bsu.mmf.team 19 Mar 2011 20:01
1 100
No subject
Posted by Maxim Materkov [Perm SU] 21 Mar 2011 21:29
I really don't understand why correct answer for 1 100 is 2? Why not 1?

Edited by author 21.03.2011 21:29
Re: No subject
Posted by Zayakin A. [Perm SU] 22 Mar 2011 01:40
It is impossible to divide steak on two parts. That is why first step fry one side, second step fry another side.
Re: No subject
Posted by Надежда Халтурина 6 Apr 2011 00:08
#include <iostream>
using namespace std;
void main()
{
int N,K,p;
cin>>N>>K;
if(K>N) N=K;
N=2*N;
if((N%K)==0) cout<<N/K;
else cout<<(N/K)+1;
}
Re: No subject
Posted by Arman 12 Jul 2011 17:25
because stake has 2 side