| Task: | HQ9+ |
| Sender: | mango_lassi |
| Submission time: | 2020-11-28 00:11:59 +0200 |
| Language: | C++ (C++11) |
| Status: | READY |
| Result: | 15 |
| group | verdict | score |
|---|---|---|
| #1 | ACCEPTED | 15 |
| #2 | WRONG ANSWER | 0 |
| test | verdict | time | group | |
|---|---|---|---|---|
| #1 | ACCEPTED | 0.01 s | 1, 2 | details |
| #2 | WRONG ANSWER | 0.01 s | 2 | details |
Code
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
int t;
cin >> t;
for (int ti = 0; ti < t; ++ti) {
int n;
cin >> n;
for (; n >= 494; n -= 494) cout << 'p';
for (; n >= 1; n -= 1) cout << 'H';
cout << '\n';
}
}
Test details
Test 1
Group: 1, 2
Verdict: ACCEPTED
| input |
|---|
| 100 10 96 42 77 ... |
| correct output |
|---|
| HHHHHHHHHH HHHHHHHHHHHHHHHHHHHHHHHHHHHHHH... |
| user output |
|---|
| HHHHHHHHHH HHHHHHHHHHHHHHHHHHHHHHHHHHHHHH... Truncated |
Test 2
Group: 2
Verdict: WRONG ANSWER
| input |
|---|
| 100 76364 26254 35192 92572 ... |
| correct output |
|---|
| 999999999999999999999999999999... |
| user output |
|---|
| pppppppppppppppppppppppppppppp... Truncated |
