随笔分类 - CF
摘要:B. Two Buttonstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputVasya has found a strange device. ...
阅读全文
摘要:A. Lever题目:http://codeforces.com/contest/376/problem/A题意:杠杆原理比两边的重量input=^==outputbalance9===^==1outputleft2==^7==right41^52==balancePS:这题我大一刚来的时候做过,当...
阅读全文
摘要:220 DIV2 B. Inna and Nineinput369727output2input123456789987654321output1题意:比如例子1:369727-->99727-->9997 , 369727-->99727-->997914545181例子2:14545181-->...
阅读全文
摘要:Inna and Pink Pony输入n,m,i,j,a,b可以看成n行m列的矩阵,起点(i,j),每次移动(a,b),(-a,-b),(-a,b),(a,-b)可移动到(1,m),(n,1),(n,m),(1,1)四个方向如果可以移动到这四个点中的一个或多个。输出到其中一个点的最短距离如果不能输...
阅读全文

浙公网安备 33010602011771号