結果

問題 No.1236 長針と短針
ユーザー YamaKasa
提出日時 2020-09-26 00:18:05
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 340 bytes
コンパイル時間 1,497 ms
コンパイル使用メモリ 166,504 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-06-28 08:28:46
合計ジャッジ時間 2,291 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 11 WA * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;

int main() {
    int A, B;
    cin >> A >> B;
    int f1 = (2 * 6 * B) % 360;
    int f2 = (2 * 30 * A + B) % 360;
    if (f1 > f2) {
        cout << (360 - (f1 - f2)) * 60 / 11 << "\n";
    } else {
        cout << (f2 - f1) * 60 / 11 << "\n";
    }
    
    return 0;
}
0