結果
| 問題 |
No.1236 長針と短針
|
| コンテスト | |
| ユーザー |
沙耶花
|
| 提出日時 | 2020-09-25 22:15:07 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 585 bytes |
| コンパイル時間 | 1,757 ms |
| コンパイル使用メモリ | 199,028 KB |
| 最終ジャッジ日時 | 2025-01-14 20:59:42 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 9 WA * 11 |
ソースコード
#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,t.size()/11){
S.back() += 3600 * 12;
}
}
int A,B;
cin>>A>>B;
int C = B*60 + A*3600;
cout<<(*lower_bound(S.begin(),S.end(),C)) - C<<endl;;
return 0;
}
沙耶花