結果
| 問題 |
No.1236 長針と短針
|
| コンテスト | |
| ユーザー |
iqueue02
|
| 提出日時 | 2020-09-25 23:26:22 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 447 bytes |
| コンパイル時間 | 2,728 ms |
| コンパイル使用メモリ | 191,304 KB |
| 最終ジャッジ日時 | 2025-01-14 21:40:01 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 20 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i = 0; i < (n);i++)
#define sz(x) int(x.size())
typedef long long ll;
typedef long double ld;
typedef pair<int,int> P;
constexpr int mod = 1e9+7;
int main() {
int a, b;
cin >> a >> b;
a = a * 3600 + b * 60;
int c = a % 3600*12;
int d = a % (12 * 3600);
if (c == d) cout << 0 << endl;
d -= c;
if (d < 0) d += 12 * 3600;
cout << d / 11 << endl;
return 0;
}
iqueue02