結果
| 問題 |
No.1236 長針と短針
|
| コンテスト | |
| ユーザー |
沙耶花
|
| 提出日時 | 2020-09-25 22:19:33 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 635 bytes |
| コンパイル時間 | 1,733 ms |
| コンパイル使用メモリ | 200,276 KB |
| 最終ジャッジ日時 | 2025-01-14 21:02:27 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
#include <stdio.h>
#include <bits/stdc++.h>
using namespace std;
#define modulo 1000000007
#define rep(i,n) for (int i = 0; i < (n); ++i)
#define Inf 1000000000
int main(){
vector<vector<int>> t = {{0,0,0},{1,5,27},{2,10,54},{3,16,21},{4,21,49},{5,27,16},{6,32,43},{7,38,10},{8,43,38},{9,49,5},{10,54,32}};
vector<int> S;
rep(i,t.size()*10){
S.push_back(t[i%11][0]*3600+t[i%11][1]*60+t[i%11][2]);
rep(j,i/11){
S.back() += 3600 * 12;
}
}
rep(i,S.size()){
//cout<<S[i]<<endl;
}
int A,B;
cin>>A>>B;
int C = B*60 + A*3600;
int x = *lower_bound(S.begin(),S.end(),C);
cout<<x - C<<endl;;
return 0;
}
沙耶花