![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C语言习题
sabcasjkd
是只小猴子
展开
-
[codewars] | playing with digits
playing with digits下面来分享一题来自codewars的题目以及codewars上的优秀答案。instructionsSome numbers have funny properties. For example:89 --> 8¹ + 9² = 89 * 1695 --> 6² + 9³ + 5⁴= 1390 = 695 * 246288 --&gt...原创 2019-01-21 20:21:30 · 293 阅读 · 0 评论 -
[C] 将小时转化为时分秒
描述:输入以小时为单位的时间,将其转化为x小时x分x秒对应的时间输出。代码:#include <stdio.h>int main(){ double a; printf("请输入要转化的时间(小时): \n"); scanf("%lf",&a); //法一 printf("%d小时 %d分 %d秒\n",(int)a,(int)...原创 2019-02-03 10:37:15 · 2852 阅读 · 2 评论 -
[c] double cola
描述:double colaSheldon, Leonard, Penny, Rajesh and Howard are in the queue for a “Double Cola” drink vending machine; there are no other people in the queue. The first one in the queue (Sheldon) buys...原创 2019-02-03 15:47:40 · 333 阅读 · 0 评论 -
[C] Beer Land
Beer LandTime Limit: 1 Sec Memory Limit: 64 MBDescriptionKing ACM 2002 received some clear ground and some money through inheritance. Terms of the will and testament require the heir to build n to...原创 2019-02-07 16:00:26 · 162 阅读 · 0 评论