https://i1.wp.com/eblogarithm.com/wp-content/uploads/2017/01/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-CC1.png?fit=640%2C360

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 59 times, 1 visits today)



There are no comments

Add yours

Leave a Reply

%d bloggers like this: