結果
問題 |
No.1236 長針と短針
|
ユーザー |
|
提出日時 | 2020-12-16 18:38:43 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 382 bytes |
コンパイル時間 | 1,617 ms |
コンパイル使用メモリ | 165,780 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-20 05:13:56 |
合計ジャッジ時間 | 2,444 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define ll long long #define rep(i, n) for (int i = 0; i < (n); i++) #define P pair<int, int> int main() { double a, b; cin >> a >> b; double s = ((int)a % 12) * 30 + b * 0.5; double l = b * 6; if (s >= l) { cout << (int) (60 * (s-l)/5.5) << endl; } else { cout << (int) (60 * (360-(l-s))/5.5) << endl; } }