|
|
вернуться в форумwrong answer - test 9 - help pls Послано Tom 4 авг 2011 04:27 Why is it wrong ? i dont get it :< help pls: ) greetings --------------------- #include<iostream> using namespace std; int main(){ int n, k; cin >> n >> k; n=2*n; if(2*k>n) n=k; else{ if(n%k==0) n=n/k; else n= n/k + 1; } cout << n; getchar();getchar(); }
Re: wrong answer - test 9 - help pls try test n=2 k = 4, good answer at this test - 2 |
|
|