# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
313932 | phathnv | Titlovi (COCI19_titlovi) | C++11 | 1 ms | 256 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
#define mp make_pair
#define X first
#define Y second
#define taskname "TITLOVI"
using namespace std;
typedef long long ll;
typedef pair <int, int> ii;
struct Ttime{
int h, m, s, ms;
int getNum(const string &s, int l, int r){
int res = 0;
for(int i = l; i <= r; i++){
assert(isdigit(s[i]));
res = res * 10 + s[i] - '0';
}
return res;
}
void init(const string &str){
h = getNum(str, 0, 1);
m = getNum(str, 3, 4);
s = getNum(str, 6, 7);
ms = getNum(str, 9, 11);
}
void shift(int t){
ms += t;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |