主题:[讨论]第78比赛讨论结果
结果如下:
作者:JKwangw
输入
3
3 2
5 2
8 2
输出
16,21
于例子不一样了
作者:廖增祥
年份超過4位的不能計算
少于4位的也不能計算
低于2000年的四位年份會算出負數來
作者:chaosuper85
please input the time to be changed...
1999-25-23
the changed result of baidu time is:
747
please input the time to be changed...
2000-82-56
the changed result of baidu time is:
2490
20056-25-36
Error
please input the time to be changed...
2001-02-29
the changed result of baidu time is:
425
please input the time to be changed...
shad-as-ss
the changed result of baidu time is:
-1
please input the time to be changed...
-205-01-01
the changed result of baidu time is:
0
please input the time to be changed...
2005-12-01256
the changed result of baidu time is:
2161
另外的一种形式MM/DD/YYYY类似上面的错误
作者:alexanderip
请输入日期(YYYY-MM-DD OR MM/DD/YYYY)
2005-02-29
1884
请输入日期(YYYY-MM-DD OR MM/DD/YYYY)
12522-12-12
Error
请输入日期(YYYY-MM-DD OR MM/DD/YYYY)
2000-00-00
-31
另外的一种形式MM/DD/YYYY类似上面的错误
作者:yj1221
我用的是g++,不知道是不是编译器的问题,我把你的代码稍微改了一下,
int i;
for(int i = 2000; i < year; ++i) -> for(i = 2000; i < year; ++i)
2000-00-00->0
2001-02-29->425
00/023/2001->388
2005-35-12 ->-950805249
2005-11-562->2692
可能是我编译器的原因,其他的通不过,有点抱歉
不过我很高兴有这么多人参加比赛,大部分都是做第一题的第一小题,只有JKwangw和shbgreenery做了第四小题,可能是我编译器的原因,shbgreenery的没有通过。还是有点失望,其他的题目没人做,我因为这几天有事,要把工作辞了,有点忙,所以只写了几道题目的,大家可以参考一下,在我的博客里。
经过多方面的考虑,廖增祥来主持下一届的比赛,谢谢大家的支持
作者:JKwangw
输入
3
3 2
5 2
8 2
输出
16,21
于例子不一样了
作者:廖增祥
年份超過4位的不能計算
少于4位的也不能計算
低于2000年的四位年份會算出負數來
作者:chaosuper85
please input the time to be changed...
1999-25-23
the changed result of baidu time is:
747
please input the time to be changed...
2000-82-56
the changed result of baidu time is:
2490
20056-25-36
Error
please input the time to be changed...
2001-02-29
the changed result of baidu time is:
425
please input the time to be changed...
shad-as-ss
the changed result of baidu time is:
-1
please input the time to be changed...
-205-01-01
the changed result of baidu time is:
0
please input the time to be changed...
2005-12-01256
the changed result of baidu time is:
2161
另外的一种形式MM/DD/YYYY类似上面的错误
作者:alexanderip
请输入日期(YYYY-MM-DD OR MM/DD/YYYY)
2005-02-29
1884
请输入日期(YYYY-MM-DD OR MM/DD/YYYY)
12522-12-12
Error
请输入日期(YYYY-MM-DD OR MM/DD/YYYY)
2000-00-00
-31
另外的一种形式MM/DD/YYYY类似上面的错误
作者:yj1221
我用的是g++,不知道是不是编译器的问题,我把你的代码稍微改了一下,
int i;
for(int i = 2000; i < year; ++i) -> for(i = 2000; i < year; ++i)
2000-00-00->0
2001-02-29->425
00/023/2001->388
2005-35-12 ->-950805249
2005-11-562->2692
可能是我编译器的原因,其他的通不过,有点抱歉
不过我很高兴有这么多人参加比赛,大部分都是做第一题的第一小题,只有JKwangw和shbgreenery做了第四小题,可能是我编译器的原因,shbgreenery的没有通过。还是有点失望,其他的题目没人做,我因为这几天有事,要把工作辞了,有点忙,所以只写了几道题目的,大家可以参考一下,在我的博客里。
经过多方面的考虑,廖增祥来主持下一届的比赛,谢谢大家的支持

您所在位置:

