作者gd03 (闲散懒人)
看板C_and_CPP
标题[ACM ] 579 input问题
时间Mon Sep 7 20:37:04 2009
我的程式码:
http://codepad.org/BZvxMh01
题目:求时钟里的时针与分针的夹角角度
sample input:
12:00
9:00
8:10
0:00(代表输入结束)
sample output:
0.000
90.000
175.000
目前是不知道要怎麽处理输入里的符号":"
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.116.178.242
1F:推 zptdaniel:用一个char variable装? 09/07 20:39
2F:推 joefaq: scanf("%d:%d",&hour,&min); 09/07 20:40
3F:→ gd03:谢谢楼上~ 原来是我想太多了 囧 拿到AC了 09/07 20:47