博客园 首页 私信博主 显示目录 隐藏目录 管理
摘要: MyList: package javahomework.day31;import java.util.ConcurrentModificationException;import java.util.ListIterator;import java.util.NoSuchElementExcept 阅读全文
posted @ 2020-08-17 22:47 hfcnal 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 写一个自己的ArrayList* 集合类 容器** 1 里面提供了哪些操作? 参考List接口** 2 里面有哪些数据? 成员变量 分析** 3 构造方法; 接口List import java.util.Iterator; import java.util.ListIterator; public 阅读全文
posted @ 2020-08-15 17:53 hfcnal 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 难度:简单 给定一个范围在 1 ≤ a[i] ≤ n ( n = 数组大小 ) 的 整型数组,数组中的元素一些出现了两次,另一些只出现一次。 找到所有在 [1, n] 范围之间没有出现在数组中的数字。 在不使用额外空间且时间复杂度为O(n)的情况下完成这个任务, 你可以假定返回的数组不算在额外空间内 阅读全文
posted @ 2020-08-12 20:18 hfcnal 阅读(297) 评论(0) 推荐(0) 编辑
摘要: 昨天自己队做了一下第六届福建省赛,感觉有些蒙,赛后补了几道题,能力有限,一共只出A了7道题 A题 Super Mobile Charger 题目链接 http://acm.fzu.edu.cn/problem.php?pid=2212 水题 #include<iostream> #include<c 阅读全文
posted @ 2016-08-10 19:59 hfcnal 阅读(468) 评论(0) 推荐(0) 编辑
摘要: Bubble Sort Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 224 Accepted Submission(s): 147 Prob 阅读全文
posted @ 2016-07-29 10:34 hfcnal 阅读(318) 评论(0) 推荐(0) 编辑
摘要: Acperience Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Problem Description Deep neural networks (DNN) have shown 阅读全文
posted @ 2016-07-21 20:18 hfcnal 阅读(374) 评论(0) 推荐(0) 编辑
摘要: Time Limit: 5000MS Memory Limit: 65536KB 64bit IO Format: %I64d & %I64u Description Give you a sequence of N(N \leq 100, 000) integers : a_{1},...,a_{ 阅读全文
posted @ 2016-07-20 18:45 hfcnal 阅读(336) 评论(0) 推荐(0) 编辑
摘要: 扩展欧几里得算法是数论当中一种常用的算法,他可以用如下的姿势来表达: 设a, b为不全为0的整数,则存在整数x和y,使得 gcd(a, b) = a*x + b*y。 扩展欧几里得算法的代码实现: #include <cstdio> #include <cstring> #define ll lon 阅读全文
posted @ 2016-07-18 16:58 hfcnal 阅读(523) 评论(0) 推荐(0) 编辑
摘要: 题目:统计一个数字可以有多少种立方和的表示方式。 分析:dp,完全背包。又见整数拆分。 #include <bits/stdc++.h> using namespace std; int cube[25]; long long F[10001]; int main() { for (int i = 阅读全文
posted @ 2016-07-16 16:08 hfcnal 阅读(413) 评论(0) 推荐(0) 编辑
摘要: Time Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u Description Robbers, who attacked the Gerda's cab, are very successful in coveri 阅读全文
posted @ 2016-07-15 19:49 hfcnal 阅读(547) 评论(1) 推荐(0) 编辑
摘要: 转载自:http://www.cnblogs.com/shawn-ji/p/5668293.html#3470095 原题: Description Recently, Pari and Arya did some research about NP-Hard problems and they f 阅读全文
posted @ 2016-07-14 15:50 hfcnal 阅读(314) 评论(0) 推荐(0) 编辑
摘要: Time Limit:2000MS Memory Limit:524288KB 64bit IO Format:%I64d & %I64u Description Mike and !Mike are old childhood rivals, they are opposite in everyt 阅读全文
posted @ 2016-07-12 21:03 hfcnal 阅读(248) 评论(0) 推荐(0) 编辑
摘要: Time Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u Description Bad news came to Mike's village, some thieves stole a bunch of choco 阅读全文
posted @ 2016-07-12 20:55 hfcnal 阅读(340) 评论(0) 推荐(0) 编辑
摘要: Time Limit:3000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u Time Limit:3000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u Time Limit 阅读全文
posted @ 2016-07-12 20:35 hfcnal 阅读(291) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://codeforces.com/contest/689/problem/A 题目链接:http://codeforces.com/contest/689/problem/A 题目链接:http://codeforces.com/contest/689/problem/A 题目链 阅读全文
posted @ 2016-07-12 20:30 hfcnal 阅读(334) 评论(0) 推荐(0) 编辑
摘要: Problem Description In the new year party, everybody will get a "special present".Now it's your turn to get your special present, a lot of presents no 阅读全文
posted @ 2016-03-02 20:49 hfcnal 阅读(470) 评论(0) 推荐(0) 编辑
摘要: Time Limit:3000MSMemory Limit:0KB64bit IO Format:%lld & %lluDescriptionYour non-profit organization (iCORE-internationalConfederation ofRevolverEnthus... 阅读全文
posted @ 2015-10-25 20:16 hfcnal 阅读(313) 评论(0) 推荐(0) 编辑
摘要: Time Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uDescription多项式的描述如下: 1 - 1/2 + 1/3 - 1/4 + 1/5 - 1/6 + ... 现在请你求出该多项式的前n项的和。Input输入数... 阅读全文
posted @ 2015-10-23 19:06 hfcnal 阅读(611) 评论(2) 推荐(0) 编辑
摘要: Time Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uDescription春天是鲜花的季节,水仙花就是其中最迷人的代表,数学上有个水仙花数,他是这样定义的: “水仙花数”是指一个三位数,它的各位数字的立方和等于其本身,比... 阅读全文
posted @ 2015-10-23 18:53 hfcnal 阅读(1662) 评论(0) 推荐(0) 编辑
摘要: Time Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uDescription数列的定义如下: 数列的第一项为n,以后各项为前一项的平方根,求数列的前m项的和。Input输入数据有多组,每组占一行,由两个整数n(n#incl... 阅读全文
posted @ 2015-10-23 18:37 hfcnal 阅读(310) 评论(0) 推荐(0) 编辑