#34812: _cpp


yp11151187@yphs.tp.edu.tw (906-38黃柏昕)


(加24以確保沒有負數)

中後段:
{
    int h;
    cin>>h;
    cout<<(h+24-15)%24<<endl;
    return 0; 
}

 

#34813: Re: cpp


yp11151187@yphs.tp.edu.tw (906-38黃柏昕)


(加24以確保沒有負數)

中後段:
{
    int h;
    cin>>h;
    cout<<(h+24-15)%24<    return 0; 
}

 

前半段大家都會吧?(應該