Loading

摘要: Background Hugo Heavy is happy. After the breakdown of the Cargolifter project he can now expand business. But he needs a clever man who tells him whe 阅读全文
posted @ 2020-02-16 23:53 脂环 阅读(205) 评论(0) 推荐(0) 编辑
摘要: You are trapped in a 3D dungeon and need to find the quickest way out! The dungeon is composed of unit cubes which may or may not be filled with rock. 阅读全文
posted @ 2020-02-16 17:00 脂环 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可行的摆放方案C。 Input 输入含有多组测试数据。 每组数据的第一行是两个正整数,n k,用一个空格隔开,表示了将 阅读全文
posted @ 2020-02-16 15:43 脂环 阅读(124) 评论(0) 推荐(0) 编辑
摘要: Gildong owns a bulgogi restaurant. The restaurant has a lot of customers, so many of them like to make a reservation before visiting it. Gildong tries 阅读全文
posted @ 2020-02-16 10:57 脂环 阅读(255) 评论(0) 推荐(0) 编辑
摘要: Returning back to problem solving, Gildong is now studying about palindromes. He learned that a palindrome is a string that is the same as its reverse 阅读全文
posted @ 2020-02-16 10:43 脂环 阅读(325) 评论(0) 推荐(0) 编辑
摘要: Being tired of participating in too many Codeforces rounds, Gildong decided to take some rest in a park. He sat down on a bench, and soon he found two 阅读全文
posted @ 2020-02-16 10:34 脂环 阅读(290) 评论(0) 推荐(0) 编辑
摘要: Ayoub thinks that he is a very smart person, so he created a function f(s)f(s) , where ss is a binary string (a string which contains only symbols "0" 阅读全文
posted @ 2020-02-15 13:49 脂环 阅读(315) 评论(0) 推荐(0) 编辑
摘要: 0.注意爆int有可能是ans+=(long long)a[x]*b*2;像这种语句如果没加(long long)就会升天。 1.看清数据范围,不开long long见祖宗。 2.不要乱用指针。 3.memset不要乱用,可能会T,同时不要用它初始化double数组等等。 4.每个test case 阅读全文
posted @ 2020-02-15 13:17 脂环 阅读(345) 评论(0) 推荐(0) 编辑
摘要: Freddy Frog is sitting on a stone in the middle of a lake. Suddenly he notices Fiona Frog who is sitting on another stone. He plans to visit her, but 阅读全文
posted @ 2020-02-15 00:02 脂环 阅读(139) 评论(0) 推荐(0) 编辑
摘要: Dark is going to attend Motarack's birthday. Dark decided that the gift he is going to give to Motarack is an array aa of nn non-negative integers. Da 阅读全文
posted @ 2020-02-14 20:22 脂环 阅读(402) 评论(0) 推荐(2) 编辑