
CF_A
文章平均质量分 84
AC_Dreameng
行有余力,则来刷题!
展开
-
Codeforces 2A Winner (map运用)
WinnerTime Limit: 1000msMemory Limit: 65536KBThis problem will be judged on CodeForces. Original ID: 2A64-bit integer IO format: %I64d Java class name: (Any)Prev Submit原创 2016-06-07 16:04:49 · 2635 阅读 · 0 评论 -
Codeforces Round #180 (Div. 2) A. Snow Footprints 【思维+模拟】
题意:根据给的雪中行走的脚印,推测起点和终点。(后面的脚印会覆盖前面的,有多种答案,正确即可)。这道题有点意思,但是也要注意细节。1.全为‘ R ’或全为‘ L ’,(当然可能还谁有‘ . ’),此时只用考虑一种情况,从一端走到另外一端就可以了;2。有‘R’和‘L’。此时要注意一个细节,走过才能确定脚印的方向。就是说,现在我在5这个位置,如果之前才有来过,那不能确定,如果之前来过,那就还是之前的脚印。对于求解得方式有多种:我的方式就是从最后一个向左的脚印的地方开始到最后一个向右的位置+1,这种思路受原创 2016-11-26 23:10:56 · 808 阅读 · 0 评论 -
Codeforces Round #376 (Div. 2) A. Night at the Museum【模拟】
题意:一个圆形的字母盘,一开始指针位于'a'的位置,问你转出该序列上的字母至少需要转动多少次。由于是环形的,可以顺时针转动或逆时针,每次转动前取最小的就可以了。原创 2016-11-06 17:27:55 · 867 阅读 · 0 评论 -
Codeforces Round #373 (Div. 2) A. Vitya in the Countryside
题意:给你一个0-15-1-0的周期序列。问你下一个数字将会是上升的还是下降的。首先特殊情况,最后一个为0,一定上升,最后一个为15,一定下降,只有一个其他的数字,则无法判断,否则比较最后两个数字。官方题解:here are four cases that should be carefully considered:an = 15 — the answer is always DOWN.an = 0 — the answer is always UP.If n = 1 —原创 2016-11-06 17:09:42 · 644 阅读 · 0 评论 -
Codeforces Round #373 (Div. 1)A. Efim and Strange Grade【恶心模拟】
题意:给你一个浮点数,进行多次四舍五入后得到的最大值。这题有点恶心。9.9.进行四舍五入后将会得到10,而不是10.0。并且最前面还有进位。恶心的模拟。参考了别人的代码:原创 2016-11-06 16:29:08 · 613 阅读 · 0 评论 -
Intel Code Challenge Final Round (Div. 1 + Div. 2, Combined)A. Checking the Calendar
A. Checking the Calendartime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given names of two days of原创 2016-10-09 20:37:14 · 678 阅读 · 0 评论 -
Educational Codeforces Round 16 A. King Moves【模拟】
原题链接:http://codeforces.com/contest/710/problem/A题意:在国际象棋上,给你将的位置,问你它可以走多少个方向。AC代码:原创 2016-09-03 22:44:46 · 713 阅读 · 0 评论 -
Codeforces Round #369 (Div. 2) A. Bus to Udayland【模拟】
题意:公共汽车座位,每一排有四个座位,中间的 '|' 代表过道,'O' 代表空位置,'X' 代表有人座,问你能否找到两个连在一起的座位(中间有过道不算),如果可以的话吧相应的符号变为 '+'。简单模拟。AC代码:原创 2016-09-03 20:41:31 · 1078 阅读 · 0 评论 -
Codeforces Round #164 (Div. 2) A. Games 【水题】
题意:有n个球队,每个球队分主场和客场,所有球队两两之间进行一场比赛,要求双方球服颜色不能相同,问你需要准备多少种球服。原创 2016-09-02 20:34:03 · 1241 阅读 · 0 评论 -
Codeforces Beta Round #8A Train and Peter (string的运用)
Train and PeterTime Limit: 1000msMemory Limit: 65536KBThis problem will be judged on CodeForces. Original ID: 8A64-bit integer IO format: %I64d Java class name: (Any)Prev原创 2016-07-02 22:38:44 · 2647 阅读 · 0 评论 -
CodeForces 1A Theatre Square(模拟+简单数学)
Theatre SquareTime Limit: 2000msMemory Limit: 65536KBThis problem will be judged on CodeForces. Original ID: 1A64-bit integer IO format: %I64d Java class name: (Any)Prev原创 2016-06-06 22:22:14 · 2186 阅读 · 0 评论 -
CodeForces - 7A Kalevitch and Chess(搜索?!模拟!)
Kalevitch and ChessTime Limit: 2000MS Memory Limit: 65536KB 64bit IO Format: %I64d & %I64uSubmit StatusDescriptionA famous Berland's painter Kalevitch likes to原创 2016-06-08 20:20:01 · 2899 阅读 · 1 评论 -
CF 6A Triangle (判断能否构成三角形)
TriangleTime Limit: 2000msMemory Limit: 65536KBThis problem will be judged on CodeForces. Original ID: 6A64-bit integer IO format: %I64d Java class name: (Any)Prev Submi原创 2016-06-07 23:37:27 · 3284 阅读 · 0 评论 -
CF 5A Chat Server's Outgoing Traffic(字符串模拟)
Chat Server's Outgoing TrafficTime Limit: 1000msMemory Limit: 65536KBThis problem will be judged on CodeForces. Original ID: 5A64-bit integer IO format: %I64d Java class name: (原创 2016-06-07 23:30:24 · 2108 阅读 · 0 评论 -
Codeforces 3A Shortest path of the king(BFS???NO!!)
Shortest path of the kingTime Limit: 1000msMemory Limit: 65536KBThis problem will be judged on CodeForces. Original ID: 3A64-bit integer IO format: %I64d Java class name: (Any)原创 2016-06-07 18:01:10 · 2434 阅读 · 0 评论 -
CF 4A Watermelon(水??!!)
WatermelonTime Limit: 1000msMemory Limit: 65536KBThis problem will be judged on CodeForces. Original ID: 4A64-bit integer IO format: %I64d Java class name: (Any)Prev Sub原创 2016-06-07 20:06:03 · 2468 阅读 · 0 评论