Submission #71653771
Source Code Expand
#include <bits/stdc++.h>
using namespace std;
#ifdef LOCAL
#define debug(arg) cout << "[" << #arg << "]: " << arg << endl
#else
#define debug(arg) 42
#endif
using llu = uint64_t;
using ll = int64_t;
#define vec vector
#define pb push_back
#define all(n) begin(n), end(n)
void solv() {
int n; cin >> n;
string s; cin >> s;
for (int i = n - s.size(); i--;) cout << 'o';
cout << s << '\n';
}
signed main() {
ios_base::sync_with_stdio(0), cin.tie(0);
int t = 1;
//cin >> t;
while (t--) solv();
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - o-padding |
| User | fisher199 |
| Language | C++23 (Clang 21.1.0) |
| Score | 100 |
| Code Size | 550 Byte |
| Status | AC |
| Exec Time | 2 ms |
| Memory | 3092 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt |
| All | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_test_00.txt, 01_test_01.txt, 01_test_02.txt, 01_test_03.txt, 01_test_04.txt, 01_test_05.txt, 01_test_06.txt, 01_test_07.txt, 01_test_08.txt, 01_test_09.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 00_sample_00.txt | AC | 2 ms | 3092 KiB |
| 00_sample_01.txt | AC | 1 ms | 2908 KiB |
| 00_sample_02.txt | AC | 1 ms | 2876 KiB |
| 01_test_00.txt | AC | 1 ms | 2948 KiB |
| 01_test_01.txt | AC | 1 ms | 2968 KiB |
| 01_test_02.txt | AC | 1 ms | 2948 KiB |
| 01_test_03.txt | AC | 1 ms | 2956 KiB |
| 01_test_04.txt | AC | 1 ms | 2856 KiB |
| 01_test_05.txt | AC | 1 ms | 2976 KiB |
| 01_test_06.txt | AC | 1 ms | 2932 KiB |
| 01_test_07.txt | AC | 1 ms | 3008 KiB |
| 01_test_08.txt | AC | 1 ms | 2948 KiB |
| 01_test_09.txt | AC | 1 ms | 2948 KiB |