結果
問題 |
No.1236 長針と短針
|
ユーザー |
![]() |
提出日時 | 2020-09-25 21:22:44 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 276 bytes |
コンパイル時間 | 1,883 ms |
コンパイル使用メモリ | 192,240 KB |
最終ジャッジ日時 | 2025-01-14 20:33:36 |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 18 WA * 2 |
ソースコード
#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 - t << endl; }