Submission #67923453
Source Code Expand
#include<bits/stdc++.h>
#define int long long
const int inf = 1e9;
using namespace std;
int32_t main(void)
{
string s;
cin >> s;
int n = s.length();
bool tak = true;
for(int i = 0 ; i < n ; i++)
{
if(s[i] == '.' && tak)
{
s[i] = 'o';
tak = !tak;
}
else if(s[i] == '#' && tak == false)
{
tak = !tak;
}
}
cout << s << "\n";
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | B - 1D Akari |
| User | Sarthak_Borse |
| Language | C++ 20 (gcc 12.2) |
| Score | 250 |
| Code Size | 421 Byte |
| Status | AC |
| Exec Time | 1 ms |
| Memory | 3672 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 250 / 250 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt |
| All | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt, 01_handmade_00.txt, 01_handmade_01.txt, 01_handmade_02.txt, 01_handmade_03.txt, 01_handmade_04.txt, 01_handmade_05.txt, 01_handmade_06.txt, 02_random_00.txt, 02_random_01.txt, 02_random_02.txt, 02_random_03.txt, 02_random_04.txt, 02_random_05.txt, 02_random_06.txt, 02_random_07.txt, 02_random_08.txt, 02_random_09.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 00_sample_00.txt | AC | 1 ms | 3540 KiB |
| 00_sample_01.txt | AC | 1 ms | 3632 KiB |
| 00_sample_02.txt | AC | 1 ms | 3548 KiB |
| 00_sample_03.txt | AC | 1 ms | 3608 KiB |
| 01_handmade_00.txt | AC | 1 ms | 3480 KiB |
| 01_handmade_01.txt | AC | 1 ms | 3412 KiB |
| 01_handmade_02.txt | AC | 1 ms | 3532 KiB |
| 01_handmade_03.txt | AC | 1 ms | 3484 KiB |
| 01_handmade_04.txt | AC | 1 ms | 3672 KiB |
| 01_handmade_05.txt | AC | 1 ms | 3488 KiB |
| 01_handmade_06.txt | AC | 1 ms | 3496 KiB |
| 02_random_00.txt | AC | 1 ms | 3480 KiB |
| 02_random_01.txt | AC | 1 ms | 3420 KiB |
| 02_random_02.txt | AC | 1 ms | 3612 KiB |
| 02_random_03.txt | AC | 1 ms | 3544 KiB |
| 02_random_04.txt | AC | 1 ms | 3444 KiB |
| 02_random_05.txt | AC | 1 ms | 3476 KiB |
| 02_random_06.txt | AC | 1 ms | 3452 KiB |
| 02_random_07.txt | AC | 1 ms | 3544 KiB |
| 02_random_08.txt | AC | 1 ms | 3480 KiB |
| 02_random_09.txt | AC | 1 ms | 3648 KiB |