結果
問題 | No.1236 長針と短針 |
ユーザー |
![]() |
提出日時 | 2020-09-25 21:25:40 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 284 bytes |
コンパイル時間 | 1,755 ms |
コンパイル使用メモリ | 192,948 KB |
最終ジャッジ日時 | 2025-01-14 20:34:30 |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
#include <bits/stdc++.h> using namespace std; const double EPS = 0.000001; int main(){ int A, B; cin >> A >> B; int t = A * 3600 + B * 60; double t2 = (double) 3600 * 12 / 11; double t3 = 0; while (t3 + EPS < t){ t3 += t2; } cout << (int) (t3 + EPS) - t << endl; }