zoukankan      html  css  js  c++  java
  • poj3751

    简单题

    View Code
    #include <iostream>
    #include
    <cstdio>
    #include
    <cstdlib>
    #include
    <cstring>
    using namespace std;

    int main()
    {
    //freopen("t.txt", "r", stdin);
    int t;
    scanf(
    "%d", &t);
    while (t--)
    {
    int year, month, day, hour, minute, second;
    scanf(
    "%d/%d/%d-%d:%d:%d", &year, &month, &day, &hour, &minute, &second);
    printf(
    "%02d/%02d/%04d-%02d:%02d:%02d%s\n", month, day, year, (hour - 1 + 12) % 12 + 1, minute, second, hour >= 12 ? "pm" : "am");
    }
    return 0;
    }

  • 相关阅读:
    css定位
    css盒子
    css元素分类
    Css属性
    Css基础2
    啊啊啊啊
    函数指针
    重载函数
    成员函数
    资源网站
  • 原文地址:https://www.cnblogs.com/rainydays/p/2102440.html
Copyright © 2011-2022 走看看