05 2018 档案

摘要:题面: Hakase and Nano are playing an ancient pebble game (pebble is a kind of rock). There are n packs of pebbles, and the i th pack contains ai pebbles 阅读全文
posted @ 2018-05-25 16:53 SCaryon 阅读(594) 评论(0) 推荐(0)
摘要:题面: 题目描述 按顺时针或逆时针方向给你一个简单的多边形的顶点坐标,请回答此多边形是顺时针还是逆时针。 输入描述: 输出描述: 示例1 输入 输出 示例2 输入 输出 备注: 大致思路: 我之前从来没有做过这种类似于多边形的题,这次在做的时候做的很痛苦,虽然是一道非常简单的题目。 这个题比较优美的 阅读全文
posted @ 2018-05-19 21:20 SCaryon 阅读(275) 评论(0) 推荐(0)
摘要:题面: 题目描述 在一个地图上有N个地窖(N using namespace std; const int maxn=22; typedef long long ll; int g[maxn][maxn]; int w[maxn],road[maxn]; ll dp[maxn]; int main( 阅读全文
posted @ 2018-05-17 23:20 SCaryon 阅读(256) 评论(0) 推荐(0)
摘要:题面: One day, sailormoon girls are so delighted that they intend to research about palindromic strings. Operation contains two steps: First step: girls 阅读全文
posted @ 2018-05-17 19:17 SCaryon 阅读(141) 评论(0) 推荐(0)
摘要:"A Remove Duplicates" 题目大意: 现在有一个长度为n的一串数字,要将其中相同的数字删掉。删除的规则:如果数字相同时保留最右边的那一个。输出删除之后的数字串 大致思路: 暴力模拟情况就好···虽然我感觉我写的非常复杂,应该有更简单的写法。 代码: c++ for(int i=n; 阅读全文
posted @ 2018-05-16 00:43 SCaryon 阅读(199) 评论(0) 推荐(0)