# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
345629 | limabeans | Datum (COCI20_datum) | C++17 | 1089 ms | 492 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>
using namespace std;
template<typename T>
void out(T x) { cout << x << endl; exit(0); }
#define watch(x) cout << (#x) << " is " << (x) << endl
vector<int> M = {-1, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
struct date {
int month, day, year;
date(string s) {
int n = s.length();
vector<int> tmp(3);
int ptr = 0;
for (int i=0; i<n; ) {
int j=i;
while (j<n && s[j]!='.') j++;
int cur = 0;
while (i<j) {
cur *= 10;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |