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++

By |2017-04-07T22:11:44+00:00January 7th, 2017|Categories: C/C++, Programming|Tags: , , , , , , , |

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; } [...]