#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. Linux Shell编程(21)——复杂命令

    更高级的用户命令find-exec COMMAND \;在每一个find 匹配到的文件执行 COMMAND 命令. 命令序列以 ; 结束( ";" 是 转义符 以保证 shell ...

  2. asp.net生成二维码的方法

    asp.net生成二维码的方法 [复制链接]     这个要利用一个Dll文件. 如下 Gma.QrCodeNet.Encoding.dll (105.5 KB, 下载次数: 27) 当然大家也可以直 ...

  3. 连接池 BoneCPDataSource

    一篇连接池不错的文章 http://blog.csdn.net/vincent_czz/article/details/7646392

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

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

  5. 【转】OpenGL基础图形编程(二)

    原文:http://blog.chinaunix.net/uid-20638550-id-1909184.html  分类: 十一.位图与图像 11.1.位图 11.1.1 位图(Bitmap)与字符 ...

  6. Android NDK开发指南---Application.mk文件和android.mk文件

    https://android.googlesource.com/platform/development/+/donut-release/ndk/docs/OVERVIEW.TXT https:// ...

  7. Python切割nginx日志_小组_ThinkSAAS

    Python切割nginx日志_小组_ThinkSAAS Python切割nginx日志

  8. Corn Fields - POJ 3254(状态压缩)

    题目大意:有一个M*N的牧场,G(i, j) = 1表示这块地营养丰富,可以喂养牛,等于0表示贫瘠,不能喂养牛,所有的牛都讨厌与别的牛相邻,求有多少种放置牛的方式. 分析:算是炮兵那个题的弱化版吧,先 ...

  9. EXCEL VBA运行不显示系统提示

    Sub XXX() Application.DisplayAlerts = False '代码段 Application.DisplayAlerts = True End Sub 以下是MICROSO ...

  10. LINQ 从 CSV 文件生成 XML

    本文参考:http://msdn.microsoft.com/zh-cn/library/bb387090.aspx 下面的代码对字符串数组执行 LINQ 查询. 在 C# 版本中,该查询使用 let ...