CSES - HIIT Open 2024 - Results
Submission details
Task:Forgotten measurements
Sender:Taffa Spaghetti
Submission time:2024-11-16 16:26:50 +0200
Language:C++ (C++17)
Status:READY
Result:
Test results
testverdicttime
#1ACCEPTED0.00 sdetails
#2ACCEPTED0.00 sdetails
#30.00 sdetails
#40.00 sdetails
#50.00 sdetails
#60.03 sdetails
#70.03 sdetails
#80.03 sdetails
#90.03 sdetails
#100.03 sdetails
#110.03 sdetails

Code

#include <bits/stdc++.h>
using namespace std;
#define endl "\n";

#define PRINT_ARR(arr, n) \
    do { \
        for (int i = 0; i < n; i++) { \
            cout << arr[i] << " "; \
        } \
        cout << endl; \
    } while (0)

typedef long long ll;

int main() {
    string s;
    cin >> s;
    cout << "2\n";
    return 0;
    int n = s.size();
    ll count = 2ll;
    for (int i = 0; i < n; ++i) {
        if (s[i] == s[(i+2)%n] && s[(i+2)%n] == s[(i+4)%n]) {
            ++count;
        }
    }
    cout << count << endl;
    return 0;
}

Test details

Test 1

Verdict: ACCEPTED

input
ULDRUR

correct output
2

user output
2

Test 2

Verdict: ACCEPTED

input
RULD

correct output
2

user output
2

Test 3

Verdict:

input
RULDRURDRURDLULD

correct output
7

user output
2

Test 4

Verdict:

input
LDLDRDLULULURURURULDRDLDRDRURD...

correct output
19

user output
2

Test 5

Verdict:

input
RURULDLULDRURDLULDRULURULURDLD...

correct output
470

user output
2

Test 6

Verdict:

input
DRULDLULDLULDLURDRULDRURDLURDL...

correct output
499773

user output
2

Test 7

Verdict:

input
DLURDLULDLULDRULURULURURDLDLDR...

correct output
499383

user output
2

Test 8

Verdict:

input
RULDLDLDRULDLDLULURULULDLURDLU...

correct output
499622

user output
2

Test 9

Verdict:

input
RDRDRURDLDLURDRULURDLDRULDLULU...

correct output
499788

user output
2

Test 10

Verdict:

input
LDLURDRURDRULDLULDLDRURDLULDRU...

correct output
499368

user output
2

Test 11

Verdict:

input
DRULULDRDLDLDLURULDRDLURULULDR...

correct output
499790

user output
2