基础练习 时间转换

蓝桥杯 基础练习 时间转换(vip)

代码

#include<bits/stdc++.h>
using namespace std;

int main()
{
    int n;
    cin>>n;
    int s=n%60;
    int h=n/3600;
    int m=n/60%60;
    cout<<h<<":"<<m<<":"<<s;
    return 0;
}

 

相关文章:

  • 2021-10-02
  • 2021-07-26
  • 2022-12-23
  • 2021-07-05
  • 2021-10-23
  • 2021-05-24
  • 2021-04-11
猜你喜欢
  • 2021-05-17
  • 2021-09-16
  • 2022-12-23
  • 2021-10-29
  • 2021-12-27
  • 2021-09-17
  • 2021-08-08
相关资源
相似解决方案