随笔分类 -  刷题

摘要:####把二进制数值中最后一个1置0 i & (i-1) 阅读全文
posted @ 2020-05-02 10:52 youqia 阅读(74) 评论(0) 推荐(0)
摘要:////////////////////////////////////////////////////////////////////////////////#include<iostream>#include<fstream>using namespace std;int main(int ar 阅读全文
posted @ 2018-03-20 10:19 youqia 阅读(124) 评论(0) 推荐(0)
摘要:////////////////////////////////////////////////////////////////////////////////#include<iostream>#include<fstream>#include<string>#include<sstream>#i 阅读全文
posted @ 2018-03-13 14:55 youqia 阅读(156) 评论(1) 推荐(0)
摘要:////////////////////////////////////////////////////////////////////////////////#include<iostream>#include<fstream>#include<stdio.h>using namespace st 阅读全文
posted @ 2018-03-13 11:21 youqia 阅读(131) 评论(0) 推荐(0)
摘要:////////////////////////////////////////////////////////////////////////////////#include<iostream>#include<fstream>#include<stdio.h>using namespace st 阅读全文
posted @ 2018-03-12 13:51 youqia 阅读(150) 评论(1) 推荐(0)
摘要:////////////////////////////////////////////////////////////////////////////////#include<iostream>#include<fstream>#include<string>#include<stdio.h>us 阅读全文
posted @ 2018-03-12 11:13 youqia 阅读(136) 评论(0) 推荐(0)
摘要:////////////////////////////////////////////////////////////////////////////////#include<iostream>using namespace std; int main(int argc,char * argv){ 阅读全文
posted @ 2018-02-28 16:35 youqia 阅读(125) 评论(0) 推荐(0)
摘要:////////////////////////////////////////////////////////////////////////////////#include<iostream>using namespace std; int main(int argc,char * argv){ 阅读全文
posted @ 2018-02-27 15:44 youqia 阅读(154) 评论(0) 推荐(0)
摘要:格式化输出 //////////////////////////////////////////////////////////////////////////////// #include<iostream>#include<math.h>#include<iomanip>using namesp 阅读全文
posted @ 2018-02-26 15:44 youqia 阅读(118) 评论(0) 推荐(0)
摘要:杭电oj 2000 sort(a,a+sizof(a)); 对数组a中元素进行排序,参数1,2分别为要排序数组首末地址 故sort句换成下行也通过 sort(a,&a[3]); ac代码 //////////////////////////////////////////////////////// 阅读全文
posted @ 2018-02-25 12:05 youqia 阅读(132) 评论(0) 推荐(0)