随笔分类 - 模拟
摘要:Problem 2089 数字游戏 Problem Description 现在,给你2个整形数字A和B。你的任务就是计算出A+B的结果C后,统计C中数字5出现的次数。 Input 输入数据第一行包含一个整数T,表示测试数据的组数。对于每组测试数据: 输入两个整数a,b(-2*10^9<a,b<2*
阅读全文
摘要:Problem 2086 餐厅点餐 Problem Description Jack最近喜欢到学校餐厅吃饭,好吃干净还便宜。 在学校餐厅,有a种汤,b种饭,c种面条,d种荤菜,e种素菜。 为了保证膳食搭配,Jack每顿饭都会点1~2样荤菜,1~2样素菜(不重复)。同时,在Jack心情好的时候,会点一
阅读全文
摘要:Hanoi Tower Troubles Again! Problem Description People stopped moving discs from peg to peg after they know the number of steps needed to complete the
阅读全文
摘要:Uiwurerirexb jeqvad Description Fmur lan oxbrvu mzx, E abpxcay Jvmffabza qdxwfaou eb vmjsad.xdz, eb nvejv rvada mda ombc jdcqrxzdmqvc qdxwfaou. Moxbz
阅读全文
摘要:题目链接 Problem Description Your input is a series of rectangles, one per line. Each rectangle is specified as two points(X,Y) that specify the opposite
阅读全文
摘要:题目链接 Playfair is a kind of substitution cipher.And the encryption role is simple.In general,there are three steps in Playfair algorithm. Step 1: Creat
阅读全文
摘要:题目链接 Problem Description Fred Mapper is considering purchasing some land in Louisiana to build his house on. In the process of investigating the land,
阅读全文

浙公网安备 33010602011771号