結果

問題 No.1236 長針と短針
ユーザー 57tggx
提出日時 2020-10-17 16:08:14
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 251 bytes
コンパイル時間 667 ms
コンパイル使用メモリ 66,328 KB
最終ジャッジ日時 2025-01-15 10:55:42
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>

int main(){
	int a, b, t;
	std::cin >> a >> b;
	t = ((a % 12) * 60 + b) * 60;

	for(int i = 0;; i += 43200){
		// std::cout << i / 11 << std::endl;
		if(t * 11 <= i){
			std::cout << i / 11 - t << std::endl;
			return 0;
		}
	}
}
0