|
|
back to boardNo 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 No subject 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 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 #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 |
|
|