
upc个人训练赛第二场
文章平均质量分 80
Livvenpan
这个作者很懒,什么都没留下…
展开
-
Train(求从前开始数的第i个数是从n开始数的第几个数)
问题 A: Train时间限制: 1 Sec 内存限制: 128 MB题目描述There is an N-car train.You are given an integer i. Find the value of j such that the following statement is true: "the i-th car from the front of the tr...原创 2018-11-25 17:04:24 · 217 阅读 · 0 评论 -
Grid Compression(删除行和列)
问题 B: Grid Compression时间限制: 1 Sec 内存限制: 128 MB题目描述There is a grid of squares with H horizontal rows and W vertical columns. The square at the i-th row from the top and the j-th column from the ...原创 2018-11-25 17:02:15 · 918 阅读 · 0 评论 -
Candles(类似滑动窗口)
问题 C: Candles时间限制: 1 Sec 内存限制: 128 MB题目描述There are N candles placed on a number line. The i-th candle from the left is placed on coordinate xi. Here, x1<x2<…<xN holds.Initially, no ca...原创 2018-11-25 17:00:52 · 575 阅读 · 0 评论 -
天神下凡(面分割)
问题 G: 天神下凡时间限制: 1 Sec 内存限制: 128 MB题目描述Czy找到宝藏获得屠龙宝刀和神秘秘籍!现在他要去找经常ntr他的Jmars报仇……Czy学会了一招“堕天一击”,他对一个地点发动堕天一击,地面上就会留下一个很大的圆坑。圆坑的周围一圈能量太过庞大,因此无法通过。所以每次czy发动技能都会把地面分割。Jmars拥有好大好大的土地,几十眼都望不到头,所以可以假设...原创 2018-11-25 16:57:07 · 979 阅读 · 0 评论 -
斗地主(dfs+模拟)
问题 I: 斗地主时间限制: 1 Sec 内存限制: 128 MB题目描述牛牛最近迷上了一种叫斗地主的扑克游戏。斗地主是一种使用黑桃、红心、梅花、方片的A到K加上大小王的共54张牌来进行的扑克牌游戏。在斗地主中,牌的大小关系根据牌的数码表示如下:3<4<5<6<7<8<9<10<J<Q<K<A<2<小王&l原创 2018-11-25 16:48:46 · 488 阅读 · 0 评论