結果
| 問題 | No.651 E869120 and Driving | 
| コンテスト | |
| ユーザー |  dgd1724 | 
| 提出日時 | 2018-07-21 21:01:07 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 1,000 ms | 
| コード長 | 409 bytes | 
| コンパイル時間 | 417 ms | 
| コンパイル使用メモリ | 58,376 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-09-22 09:01:26 | 
| 合計ジャッジ時間 | 951 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 7 | 
ソースコード
#include <fstream>
#include <iostream>
int main() {
	//std::ifstream inf("Text.txt");	std::cin.rdbuf(inf.rdbuf());
	int a;
	std::cin >> a;
	int b = a / 100;
	int c = (a - (b * 100)) * 60 / 100;
	if (10 + b > 24) {
		std::cout << 10 + b - 24 << ":";
	}
	else {
		std::cout << 10 + b << ":";
	}
	if (c < 10) {
		std::cout << "0" << c << std::endl;
	}
	else {
		std::cout << c << std::endl;
	}
	return 0;
}
            
            
            
        