编程介的小学生 2017-02-08 03:25 采纳率: 20.5%
浏览 900
已采纳

Strange Clock

问题描述 :

There is a strange clock, without any number written. Can you tell me what time it is now, based on the angle of the hour hand?
Resource Archiver

When the hour hand points right (0 degree), it is 3 o’clock. When it points to 80 degrees, it’s between 0 o’clock and 1 o’clock. Note that there is no 12 o’clock. You should always write 0 o’clock instead.
输入:

There are at most 10 test cases. Each case contains a single integer a (0 <= a < 360), the angle of the hour hand. The input ends with a = -1.
输出:

There are at most 10 test cases. Each case contains a single integer a (0 <= a < 360), the angle of the hour hand. The input ends with a = -1.
样例输入:

90
245
-1

  • 写回答

2条回答 默认 最新

  • threenewbee 2017-02-14 15:55
    关注
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 python变量和列表之间的相互影响
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 关于大棚监测的pcb板设计
  • ¥15 stm32开发clion时遇到的编译问题
  • ¥15 lna设计 源简并电感型共源放大器
  • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)