結果
| 問題 | 
                            No.1236 長針と短針
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2020-09-26 07:52:26 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 159 bytes | 
| コンパイル時間 | 926 ms | 
| コンパイル使用メモリ | 63,684 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-06-28 17:12:20 | 
| 合計ジャッジ時間 | 1,410 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 20 | 
コンパイルメッセージ
main.cpp:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main()
      | ^~~~
            
            ソースコード
#include<iostream>
using namespace std;
main()
{
	int a,b;cin>>a>>b;
	int h=a%12*3600+b*60;
	int m=b*60*12;
	int d=h-m;
	if(d<0)d+=43200;
	cout<<d/11<<endl;
}