摘要: 题目描述在n个人中,某些人的银行账号之间可以互相转账。这些人之间转账的手续费各不相同。给定这些人之间转账时需要从转账金额里扣除百分之几的手续费,请问A最少需要多少钱使得转账后B收到100元。输入输出格式输入格式: 第一行输入两个正整数n,m,分别表示总人数和可以互相转... 阅读全文
posted @ 2017-07-01 21:17 玫葵之蝶 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 题目描述One cow from each of N farms (1 ≤ N ≤ 1000) conveniently numbered 1..N is going to attend the big cow party to be held at farm #X ... 阅读全文
posted @ 2017-07-01 20:46 玫葵之蝶 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 题目描述Farmer John wants to set up a telephone line at his farm. Unfortunately, the phone company is uncooperative, so he needs to pay fo... 阅读全文
posted @ 2017-07-01 20:39 玫葵之蝶 阅读(165) 评论(0) 推荐(0) 编辑