結果
| 問題 |
No.1236 長針と短針
|
| コンテスト | |
| ユーザー |
やう
|
| 提出日時 | 2020-09-26 20:08:54 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 306 bytes |
| コンパイル時間 | 1,328 ms |
| コンパイル使用メモリ | 165,740 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-29 19:31:13 |
| 合計ジャッジ時間 | 2,176 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
double a,b;
cin >> a >> b;
a=(int)a%12;
double x=0;
if(a*6<1.1*b) x=(60-b)*6+a*30+b*0.5;
else if(a*6>1.1*b) x=a*30-b*5.5;
while(x<0) x+=360;
while(360<x) x-=360;
double p=(double)11/120;
int ans=x/p;
cout << ans << endl;
}
やう