結果

問題 No.1236 長針と短針
ユーザー YamaKasa
提出日時 2020-09-26 00:44:11
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 332 bytes
コンパイル時間 1,708 ms
コンパイル使用メモリ 165,060 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-28 08:43:22
合計ジャッジ時間 2,483 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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