結果

問題 No.1236 長針と短針
ユーザー test
提出日時 2020-09-25 22:16:19
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 301 bytes
コンパイル時間 2,757 ms
コンパイル使用メモリ 191,680 KB
最終ジャッジ日時 2025-01-14 21:00:48
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 14 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

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

void solve() {
  int a, b;
  cin >> a >> b;
  if (a == 12 && b == 0) a = 0;
  a %= 12;
  double t = (12.0 / 11) * 3600;
  cout << int((t * a) - (a * 3600 + b * 60)) % 3600 << endl;
}

int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  solve();
}
0