結果
| 問題 |
No.651 E869120 and Driving
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-02-23 22:32:16 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 846 bytes |
| コンパイル時間 | 687 ms |
| コンパイル使用メモリ | 89,084 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-22 08:53:55 |
| 合計ジャッジ時間 | 1,150 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 |
ソースコード
#include <iostream>
#include <cstdio>
#include <bitset>
#include <queue>
#include <stack>
#include <vector>
#include <list>
#include <set>
#include <map>
#include <utility>
#include <string>
#include <algorithm>
#include <cmath>
#include <limits>
using namespace std;
using ll=long long;
using vint=vector<int>;
using pint=pair<int,int>;
const double EPS = 1e-9;
const int inf = numeric_limits<int>::max();
#define rep(i,n) for(int i=0;i<int(n);++i)
#define REP(i,a,b) for(int i=int(a);i<int(b);++i)
#define SHOW(a) cout << #a << " = " << a << endl
#define ARR(a,i,n) for(int i=0;i<int(n);++i) cout << #a << "[" << i << "]" << " = " << a[i] << endl
void solve(){
int n, hh = 10, mm = 0;
cin >> n;
double t = n / 100.0;
hh += floor(t);
mm = round(60 * (t - floor(t)));
printf("%02d:%02d\n", hh, mm);
}
int main(){
solve();
return 0;
}