結果
| 問題 | 
                            No.1236 長針と短針
                             | 
                    
| コンテスト | |
| ユーザー | 
                             iqueue02
                         | 
                    
| 提出日時 | 2020-09-25 23:27:00 | 
| 言語 | C++17  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 471 bytes | 
| コンパイル時間 | 1,811 ms | 
| コンパイル使用メモリ | 192,380 KB | 
| 最終ジャッジ日時 | 2025-01-14 21:40:25 | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| 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;
    return 0;
  }
  d -= c;
  if (d < 0) d += 12 * 3600;
  cout << d / 11 << endl;
  return 0; 
}
            
            
            
        
            
iqueue02