- 博客(2)
- 收藏
- 关注
原创 Pat 1028 C语言
我这个方法比较笨,但是也是一种思路,感兴趣的可以读一遍#include<stdio.h>typedef struct{ char name[5]; int year, month, day;}person;int cmp(const void *a, const void *b){ person one = *(person *)a; person two = *(person *)b; if(one.year > two.year)
2020-05-23 11:46:39
140
原创 PAT 1026 C
NOTES:注意C语言四舍五入的小技巧#include<stdio.h>#define CLK 100int main(void){ int C1, C2, T; scanf("%d %d", &C1, &C2); T = (C2 - C1 + 50) / CLK; printf("%02d:%02d:%02d", T / 3600, T % 3600 / 60, T % 60); return 0;}...
2020-05-23 09:11:04
72
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人