会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Assassin_poi君
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
19
20
21
22
23
24
25
26
27
···
32
下一页
2017年10月20日
c语言手动实现反转链表 Reverse
摘要: 本题要求实现一个函数,将给定的单链表逆转。 函数接口定义:List Reverse( List L );其中List结构定义如下:typedef struct Node *PtrToNode;struct Node { ElementType Data; /* ...
阅读全文
posted @ 2017-10-20 20:32 Assassin_poi君
阅读(967)
评论(0)
推荐(0)
2017年10月19日
51Nod ——1080 两个数的平方和
摘要: 基准时间限制:1 秒 空间限制:131072 KB给出一个整数N,将N表示为2个整数i j的平方和(i #include #include using namespace std;void Re(long long N){ int flag = 1; fo...
阅读全文
posted @ 2017-10-19 18:09 Assassin_poi君
阅读(168)
评论(0)
推荐(0)
2017年10月18日
C 语言读取二进制文件大小
摘要: fseek(fp,0,SEEK_END); int size = ftell(fp); size即为结果。函数一:fseekstdio中的库函数:函数原型:int fseek(FILE *stream, long int offset, int whence);功能:...
阅读全文
posted @ 2017-10-18 19:17 Assassin_poi君
阅读(945)
评论(0)
推荐(0)
2017年10月16日
51Nod ----1009 数字1的数量
摘要: 基准时间限制:1 秒 空间限制:131072 KB给定一个十进制正整数N,写下从1开始,到N的所有正数,计算出其中出现所有1的个数。 例如:n = 12,包含了5个1。1,10,12共包含3个1,11包含2个1,总共5个1。Input 输入N(1 using name...
阅读全文
posted @ 2017-10-16 19:13 Assassin_poi君
阅读(189)
评论(0)
推荐(0)
2017年10月14日
51Nod——1004 n^n的末位数字
摘要: 基准时间限制:1 秒 空间限制:131072 KB给出一个整数N,输出N^N(N的N次方)的十进制表示的末位数字。 Input一个数N(1 #include using namespace std;long long myPow(long long t,long lo...
阅读全文
posted @ 2017-10-14 17:43 Assassin_poi君
阅读(180)
评论(0)
推荐(0)
51Nod——1003 阶乘后面0的数量
摘要: 基准时间限制:1 秒 空间限制:131072 KBn的阶乘后面有多少个0? 6的阶乘 = 1*2*3*4*5*6 = 720,720后面有1个0。 Input一个数N(1 #include using namespace std;int main(){ int ...
阅读全文
posted @ 2017-10-14 17:19 Assassin_poi君
阅读(153)
评论(0)
推荐(0)
Codeforces-716A-Crazy Computer
摘要: Time limit 2000 ms Memory limit 262144 kBZS the Coder is coding on a crazy computer. If you don't type in a word for a c conse...
阅读全文
posted @ 2017-10-14 16:50 Assassin_poi君
阅读(229)
评论(0)
推荐(0)
51Nod ——1001 数组中和等于K的数对
摘要: 基准时间限制:1 秒 空间限制:131072 KB 给出一个整数K和一个无序数组A,A的元素为N个互不相同的整数,找出数组A中所有和等于K的数对。例如K = 8,数组A:{-1,6,5,3,4,2,9,0,8},所有和等于8的数对包括(-1,9),(0,8),(2,6...
阅读全文
posted @ 2017-10-14 15:44 Assassin_poi君
阅读(149)
评论(0)
推荐(0)
C++ STL Pair的使用
摘要: Pair的创建和初始化 pair test1; pair test2; 调用默认构造器对其初始化。所以,test1是包含两个空string类型的pair对象;test2中的int型成员获得0. C++代码 收藏代码pair user("James...
阅读全文
posted @ 2017-10-14 15:12 Assassin_poi君
阅读(128)
评论(0)
推荐(0)
1046 A^B Mod C
摘要: 基准时间限制:1 秒 空间限制:131072 KB给出3个正整数A B C,求A^B Mod C。 例如,3 5 8,3^5 Mod 8 = 3。 Input3个正整数A B C,中间用空格分隔。(1 #include #include using namespace...
阅读全文
posted @ 2017-10-14 15:02 Assassin_poi君
阅读(112)
评论(0)
推荐(0)
上一页
1
···
19
20
21
22
23
24
25
26
27
···
32
下一页
公告