結果
| 問題 |
No.1236 長針と短針
|
| コンテスト | |
| ユーザー |
milanis48663220
|
| 提出日時 | 2020-09-25 21:30:51 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 541 bytes |
| コンパイル時間 | 683 ms |
| コンパイル使用メモリ | 82,240 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-28 06:08:57 |
| 合計ジャッジ時間 | 1,453 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
#include <iostream>
#include <algorithm>
#include <iomanip>
#include <vector>
#include <queue>
#include <set>
#include <map>
using namespace std;
typedef long long ll;
const double eps = 1e-5;
int main(){
ios::sync_with_stdio(false);
cin.tie(0);
cout << setprecision(10) << fixed;
int a, b; cin >> a >> b;
a %= 12;
double da = 1.0/(3600.0*12.0);
double db = 1.0/(3600.0);
double dif = (double)a/12.0+(double)b/720.0-(double)b/60.0;
if(dif+eps < 0) dif += 1.0;
cout << (int)(dif/(db-da)) << endl;
}
milanis48663220