码迷,mamicode.com
首页 >  
搜索关键字:九度    ( 670个结果
oj--九度oj---1431
#include #include #define offset 500000 bool isinput[1000001]; int main(){ int n,m; while(scanf("%d %d",&n,&m)!=EOF){ memset(isinput,0,sizeof(isinput)... ...
分类:其他好文   时间:2017-06-24 20:49:38    阅读次数:136
oj--九度oj--1018
简单hash ...
分类:其他好文   时间:2017-06-24 19:49:49    阅读次数:135
oj----九度oj----1186---第几天---输出日期
利用日期类的nextday(); 或者先加一个月的天数,然后判断是否大于给定天数,然后再加一个月的天数,在判断.... ...
分类:其他好文   时间:2017-06-24 17:27:05    阅读次数:124
oj---九度oj---1070----今年的第几天
通过与原点的差值来计算第几天(要+1). ...
分类:其他好文   时间:2017-06-24 16:23:48    阅读次数:149
oj---九度oj---1043----day of week
...
分类:其他好文   时间:2017-06-24 15:36:25    阅读次数:129
oj---九度oj---1096----日期类问题一类解法
选择参考点,0年1月1日(认为是闰年)。日期a,日期b,算出abs((a-0)-(b-0)).视情况加1,若连续的日期视为两天,则res=abs((a-0)-(b-0))+1 . ...
分类:其他好文   时间:2017-06-24 15:30:41    阅读次数:237
oj---九度oj---1015
#include #include #include using namespace std; int mypow(int k){ int res=1; while(k--){res*=10;} return res; } int main(){ int sum; int a,b,k; while(... ...
分类:其他好文   时间:2017-06-22 00:10:49    阅读次数:137
oj---九度oj---1054
...
分类:其他好文   时间:2017-06-21 22:59:01    阅读次数:170
oj---九度oj--1078---二叉树重建
通过两种遍历结果重建,必须有中序遍历(找到根的位置)。 ...
分类:其他好文   时间:2017-06-21 21:10:00    阅读次数:180
oj---九度oj---1061
#include #include #include using namespace std; struct Student{ char name[105]; int grade; int age; }student[1005]; bool cmp(Student a,Student b){ if(... ...
分类:其他好文   时间:2017-06-21 21:05:38    阅读次数:159
670条   上一页 1 ... 3 4 5 6 7 ... 67 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!