• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
TLEz_
博客园 | 首页 | 新随笔 | 新文章 | 联系 | 订阅 订阅 | 管理

2014年11月20日

UVa 156 - Ananagrams
摘要: 又是照着敲的,学习map了,但最后我改成直接用set储存了,省了重新排序的功夫了。#include#include#include#include#include#includeusing namespace std;vector word;string sort_set(const string&... 阅读全文
posted @ 2014-11-20 17:59 xuziye0327 阅读(104) 评论(0) 推荐(0)
 
UVa 10815 - Andy's First Dictionary
摘要: 过了一中午后自己敲的,很简单,练习使用set。#include#include#include#includeusing namespace std;set dict;string duf;int main() { string s, ss; while(cin >> s) { ... 阅读全文
posted @ 2014-11-20 16:25 xuziye0327 阅读(77) 评论(0) 推荐(0)
 
UVa 10474 - Where is the Marble?
摘要: 水题,一开始不会,照例题敲,然后刚才又自己写了一遍,感觉就是不一样- -#include#include#define MAXN 10000using namespace std;int marble[MAXN];int main() { int x, n, q, kase = 0; w... 阅读全文
posted @ 2014-11-20 09:25 xuziye0327 阅读(98) 评论(0) 推荐(0)
 
UVa 101 - The Blocks Problem
摘要: 例题,照着敲的.基本没变.#include#include#include#include#define MAXN 30using namespace std;vector pile[MAXN];int n;string s1, s2;void find_pile(int a, int& p, in... 阅读全文
posted @ 2014-11-20 09:12 xuziye0327 阅读(83) 评论(0) 推荐(0)
 
 

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3