結果
問題 |
No.651 E869120 and Driving
|
ユーザー |
|
提出日時 | 2025-07-30 06:45:50 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 681 bytes |
コンパイル時間 | 3,052 ms |
コンパイル使用メモリ | 276,040 KB |
実行使用メモリ | 7,716 KB |
最終ジャッジ日時 | 2025-07-30 06:45:54 |
合計ジャッジ時間 | 4,010 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 7 |
ソースコード
#include <bits/stdc++.h> using namespace std; /////////////////// メイン /////////////////// int main () { //////////////////// 入力 //////////////////// int n; cin >> n; //////////////// 出力変数定義 //////////////// int result = 0; //////////////////// 処理 //////////////////// int h = 10; int m = n/10*6; int tmp = m/60; m -= tmp*60; h += tmp; //////////////////// 出力 //////////////////// cout << std::setfill('0') << std::right << std::setw(2); cout << h; cout << ":"; cout << std::setfill('0') << std::right << std::setw(2); cout << m << endl; //////////////////// 終了 //////////////////// return 0; }