码迷,mamicode.com
首页 >  
搜索关键字:hdu1219 ac me    ( 16537个结果
hdu--1002--大数加法
以为已经贴上去了 刚看了下 原来还没贴 看来是自己忘记了 =-=就是一个 大数加法 写着玩玩的~ touch me 1 #include 2 #include 3 using namespace std; 4 5 const int size = 10010; 6 char str1[siz...
分类:其他好文   时间:2014-07-16 19:14:39    阅读次数:164
ACdream 之ACfun 题解
A - ACfun Time Limit: 2000/1000MS (Java/Others) Memory Limit: 128000/64000KB (Java/Others) SubmitStatus Problem Description 题目链接点击打开链接 As a former ACMer, "AC" is a special abbreviated wor...
分类:其他好文   时间:2014-07-15 22:41:45    阅读次数:235
J贪心
/* J - 贪心 基础 Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u Submit Status Description “今年暑假不AC?” “是的。” “那你干什么呢?” “看世界杯呀,笨蛋!” “@#$%^&*%...” 确实如此,世界杯来了,球迷的节日也来了,估计很...
分类:其他好文   时间:2014-07-15 12:26:07    阅读次数:252
leetcode——Insertion Sort List 对链表进行插入排序(AC)
Sort a linked list using insertion sort. class Solution { public: ListNode *insertionSortList(ListNode *head) { if(head == NULL || head->next == NULL) return head; Lis...
分类:其他好文   时间:2014-07-15 12:22:53    阅读次数:244
hdu 1722--Cake
由题意推得结论:p+q-gcd(p,q); /* * hdu 1722--Cake * date 2014/7/15 * state AC */ #include #include using namespace std; /* int gcd(int x,int y) { while(x!=y) { if(x>y)x=x-y; else y...
分类:其他好文   时间:2014-07-15 10:32:39    阅读次数:184
web Api自定义部分Action的JSON格式输出
昨天项目中要部分Api的JSON格式需要特殊处理。最开始直接重写controller的JSON方法。经测试,当action直接返回数据的时候,不会调用Json方法。然后找了各种方法,都不行。在群里问了。直到看到群友发的一个直接移除所有API的JSON格式方法的时候。图片如下:然后就想到了Api的Ac...
分类:Windows程序   时间:2014-07-15 09:39:09    阅读次数:315
CF255--D--优先队列
这题 的确是个好题~ 当时 只觉得应该用贪心做...后来 人家给我证明了下 不应该是用贪心 局部最优解 与 全局最优解之间的关系不是严格成立的~ touch me慢慢 静心下来 总是有解决的方法的=-= 1 #include 2 #include 3 #include 4 using name...
分类:其他好文   时间:2014-07-14 20:13:57    阅读次数:245
fzu 1753 Another Easy Problem
本题题意为求 t (t#include #include #define maxn 100010using namespace std;int sign[maxn];int pri[maxn];int tot;int e;int n[200],k[200];void getpri (){ me...
分类:其他好文   时间:2014-07-14 19:06:58    阅读次数:248
JFinal框架操作oracle数据库
JFinal框架操作oracle数据库,需要在configPlugin()方法中配置链接oracle数据库的相关配置 配置JFinal数据库操作插件,configPlugin方法 这里我加载jdbc.properties配置文件实在configConstant加载的 @Override public void configConstant(Constants me) { loadPro...
分类:数据库   时间:2014-07-14 18:02:57    阅读次数:901
Codeforces Round #FF (Div. 2)
A. DZY Loves Hash    水题!! AC代码如下: #include #include #include #include #include #define inf 100000000 #define M 100005 #define ll long long #define F(a,b) for(i=a;i<=b;i++) #define ME(a) memse...
分类:其他好文   时间:2014-07-14 17:30:29    阅读次数:267
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!