#include<iostream>
#include<cstdio>
#include<vector>
#include<cmath>
using namespace std;
vector<int>s[2160001];
int main()
{
int t;
for(int i=0;i<=11;i++)
for(int j=0;j<=59;j++)
for(int z=0;z<=50;z+=10)
{
int temp=abs(66000*j+1100*z-360000*i);
if(temp>2160000)temp=4320000-temp;
s[temp].push_back(i);
s[temp].push_back(j);
s[temp].push_back(z);
}
while(scanf("%d",&t)!=EOF)
{
for(int i=0;i<s[t].size();)
{
if(s[t][i]<10)cout<<0;
cout<<s[t][i]<<":";
if(s[t][i+1]<10)cout<<0;
cout<<s[t][i+1]<<":";
if(s[t][i+2]<10)cout<<0;
cout<<s[t][i+2]<<endl;
i+=3;
}
}
return 0;
}

  

hdu_5276的更多相关文章

随机推荐

  1. Spring - Web MVC简介

    Web MVC简介 1.1.Web开发中的请求-响应模型: 在Web世界里,具体步骤如下: 1.  Web浏览器(如IE)发起请求,如访问http://www.cnblogs.com 2.  Web服 ...

  2. closest

    <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title> ...

  3. JQuery中如何click中传递参数

    代码如下: click(data,fn)中的data其实是json对象,取的时候,只能通过当前的事件源来取,data是默认放在event中的,所以这里的data是eventdata,引用的时候也使用e ...

  4. Linux学习笔记16——wait函数

    wait函数的定义如下: #include <sys/types.h> #include <sys/wait.h> pid_t wait(int *stat_loc); wai ...

  5. Postman用法简介-Http请求模拟工具

    在我们平时开发中,特别是需要与接口打交道时,无论是写接口还是用接口,拿到接口后肯定都得提前测试一下,这样的话就非常需要有一个比较给力的Http请求模拟工具,现在流行的这种工具也挺多的,像火狐浏览器插件 ...

  6. Bzoj 1612: [Usaco2008 Jan]Cow Contest奶牛的比赛 传递闭包,bitset

    1612: [Usaco2008 Jan]Cow Contest奶牛的比赛 Time Limit: 5 Sec  Memory Limit: 64 MBSubmit: 891  Solved: 590 ...

  7. TC358746AXBG/748XBG 桥接器说明

    为什么需要这个mipi csi-2 bridge 芯片,由于我们用的sensor 芯片是美光的MT9m021,这颗芯片并不支持MIPI 下面是网上摘录的说明可能解释这个问题: Because of t ...

  8. Scrapinghub | Professional Services

    VShell破解版 VShell破解版 Scrapinghub | Professional Services OUR PROFESSIONAL SERVICES INCLUDE

  9. 2013腾讯编程马拉松初赛第一场(3月21日) 湫湫系列故事——减肥记II ----线段树

    题目:http://acm.hdu.edu.cn/showproblem.php?pid=4509 虽然制定了减肥食谱,但是湫湫显然克制不住吃货的本能,根本没有按照食谱行动! 于是,结果显而易见… 但 ...

  10. Linux开启相关端口及查看已开启端口

    防火墙层面:   /sbin/iptables -I INPUT -p tcp --dport 8011 -j ACCEPT #开启8011端口  /etc/rc.d/init.d/iptables ...