70分

P5707 【深基2.例12】上学迟到

chinojane @ 2024-08-27 12:22:23

这钱做过的题 为啥错了

#include<bits/stdc++.h>
using namespace std;
int main(){
    int s,y,t,t2,t3,h,m;
    cin>>s>>y;
    t=s/y;
    if(s%y!=0){t++;}
    t2=t+10;
    t3=480-t2;
    h=t3/60;
    m=t3%60;
    if(h<10) {cout<<"0"<<h;}
    else{cout<<h;}
    if(m<10) {cout<<":"<<"0"<<m;}
    else{cout<<":"<<m;}
}

by chinojane @ 2024-08-27 12:44:50

@yuhuaibo 咱整啊


by _std_O2 @ 2024-08-27 12:47:04

@chinojane o


by chinojane @ 2024-08-27 12:47:25

@yuhuaibo o( ̄ヘ ̄o#)


by dongzirui0817 @ 2024-08-27 14:11:38

@chinojane 你老师可真逊啊(逃)


上一页 |