1234567891011121314151617 |
- #include <stdio.h>
- int main() {
- int total_seconds, minutes, seconds;
-
- // 输入总秒数
- scanf("%d", &total_seconds);
-
- // 计算分钟和秒数
- minutes = total_seconds / 60;
- seconds = total_seconds % 60;
-
- // 输出转换后的时间
- printf("%dmin%ds\n", minutes, seconds);
-
- return 0;
- }
|