02 2020 档案

摘要:2020牛客寒假算法基础训练营2 A.做游戏(思维) "传送门" 题意:两个人玩石头剪刀布,牛牛出石头a次,剪刀b次,布c次,牛可乐出石头x次,剪刀y次,布z次,问牛牛最多可以赢多少次 题解:对牛牛每次可以赢的出法取最小值即可 代码: c++ include include include incl 阅读全文
posted @ 2020-02-07 23:00 BT-7274 阅读(498) 评论(0) 推荐(0)
摘要:2020牛客寒假算法基础训练营1 A.honoka和格点三角形(计数) "传送门" 题意:给定n m个格点构造出的矩阵,问最多可以构造出多少个面积为1的三角形 题解:直接计数,讨论所有情况即可,注意乘法取模 代码: 阅读全文
posted @ 2020-02-05 22:23 BT-7274 阅读(344) 评论(0) 推荐(0)
摘要:Same GCDs time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output You are given two integers a a 阅读全文
posted @ 2020-02-03 17:12 BT-7274 阅读(395) 评论(0) 推荐(0)
摘要:Christmas Trees time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output There are n Christmas trees 阅读全文
posted @ 2020-02-03 16:28 BT-7274 阅读(383) 评论(0) 推荐(0)
摘要:Dr. Evil Underscores time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Today, as a friendship g 阅读全文
posted @ 2020-02-03 11:05 BT-7274 阅读(485) 评论(0) 推荐(0)