結果
問題 | No.1236 長針と短針 |
ユーザー |
![]() |
提出日時 | 2020-09-25 21:30:17 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 444 bytes |
コンパイル時間 | 1,858 ms |
コンパイル使用メモリ | 165,448 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-28 06:08:19 |
合計ジャッジ時間 | 2,420 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define int long long typedef pair<int,int> P; int INF = 5e18+7; int mod = 1e9+7; int dx[4] = {1, 0, -1, 0}; int dy[4] = {0, 1, 0, -1}; long double pi = 3.141592653589793238; signed main() { int A,B; cin >> A >> B; int a = (A*30+B/2)%360; int b = (6*B)%360; if(a == b) { cout << 0 << endl; } else { cout << ((a+360-b)%360*120+B%2*60)/11 << endl; } }