7-7 然后是几点
题面:
代码:
#include <algorithm>
#include <string>
#include <cstring>
#include<stdio.h>
#include<iostream>
#include<cmath>
using namespace std;
int main() {
int a, b, m, h, ans;
cin >> a >> b;
m = (a / 100) * 60 + (a % 100) + b;
h = m / 60;
ans = m % 60;
if(ans<10)
printf("%d0%d\n",h,ans);
else printf("%d%d\n",h,ans);
//后来才直到可以直接printf("%d%02d\n",h,ans);
//实现这个功能,乌鱼子
return 0;
}