Codeforces Round #389 (Div. 2, Rated, Based on Technocup 2017 – Elimination Round 3), problem: (A) Santa Claus and a Place in a Class Solution in C/C++

Codeforces Round #389 (Div. 2, Rated, Based on Technocup 2017 – Elimination Round 3), problem: (A) Santa Claus and a Place in a Class Solution in C/C++

 

#include<stdio.h>
typedef unsigned u;
int main()
{
	u n,m,k;
	scanf("%u%u%u",&n,&m,&k);
	printf("%u %u %c\n",((k-1)>>1)/m+1,((k-1)>>1)%m+1,k&1?'L':'R');
	return 0;
}

 

 

(Visited 73 times, 1 visits today)

About the Author:

Leave A Comment