Very Very Very Simple
every body handshakes all else his couple
so
n*(n1) div 2

k (couples doesnt handshake eachother)!
>
Var
n,k:integer;
begin
readln(n,k);
writeln(((n*(n1)) div 2) k);
end.
Aidin_n7
it's not right to post the accepted program.
Posted by
Koala 23 Aug 2003 16:40
Re: Very Very Very Simple
n(n1)/2k。。。
Re: Very Very Very Simple
Posted by
BillSu 27 Apr 2014 10:30
What is The Autor Thinking?
What's the meaning of the spliting group numbers?
It just piss me off.
Re: Very Very Very Simple
Yep, this is the one way for solution.
I've met problem like that earlier. Statements consist kinda "you need to get veryvery much operation with binary code of number", but after some tests we understood, that solution was kinda "ans = n*(1)".
And it's good to have a short cut in problems for clever men;)