School Regional Team Contest, Saratov, 2011
はい。
http://codeforces.com/contest/120
A. Elevator
brute force,implementation,math
ざっくりと大意
・1000階を超える建物sky scraper は都市Nにある。
・モダンな2つ扉のエレベーターが移動を助ける。
・利き手でレールをつかむ。
方針のようなもの
・front 1でLならback 1はRでback 2はLかなぁ?
#!/usr/bin/env python # -*- coding: UTF-8 -*- import sys, io sys.stdin=file('input.txt') sys.stdout=file('output.txt','w') m=raw_input() n=int(raw_input()) print 'L' if (m=='front' and n==1) or (m=='back' and n==2) else 'R'
B. Quiz League
implementation
ざっくりと大意
・"What? Where? When?"のクイズゲームはBerlandではポピュラー。
・6人の回答者と観客が戦う???
・