結果

問題 No.651 E869120 and Driving
ユーザー hkarinto
提出日時 2018-06-04 16:34:31
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 258 bytes
コンパイル時間 440 ms
コンパイル使用メモリ 55,696 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-22 09:00:37
合計ジャッジ時間 919 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <cstdlib>
#include <iostream>

#include <typeinfo>
using namespace std;
int main(){
int a;
cin>>a;
int hour=10+(a/100);
int m=(a-(a/100)*100)*60/100;


if(int(m)<9){
    
cout<<int(hour)<<":"<<'0'<<m<<endl;
}else{
cout<<int(hour)<<":"<<m<<endl;
}

}
0