Submission #22802481


Source Code Expand

Copy
#include<iostream>
#include<string>
#include<math.h>
using namespace std;
typedef long long ll;
int main()
{
string a;
cin >> a;
for (ll i=0; i < a.size(); i++)
{
if (a[i] == '9')
{
a[i] = '6';
}
else if (a[i] == '6')
{
a[i] = '9';
}
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
#include<iostream>
#include<string>
#include<math.h>
using namespace std;
typedef long long ll;

int main()
{
	string a;
	cin >> a;
	for (ll i=0; i < a.size(); i++)
	{
		if (a[i] == '9')
		{
			a[i] = '6';
		}
		else if (a[i] == '6')
		{
			a[i] = '9';
		}

	}
	for (ll i = a.size()-1; i >= 0; i--)
	{
		cout << a[i];
	}
	cout << endl;
}

Submission Info

Submission Time
Task B - 180°
User sato7564
Language C++ (Clang 10.0.0)
Score 200
Code Size 364 Byte
Status AC
Exec Time 15 ms
Memory 3196 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 3
AC × 17
Set Name Test Cases
Sample sample_00, sample_01, sample_02
All maximum_01, maximum_02, minimum_01, minimum_02, sample_00, sample_01, sample_02, test_00, test_01, test_02, test_03, test_04, test_05, test_06, test_07, test_08, test_09
Case Name Status Exec Time Memory
maximum_01 AC 15 ms 3068 KB
maximum_02 AC 12 ms 3196 KB
minimum_01 AC 2 ms 3040 KB
minimum_02 AC 3 ms 2888 KB
sample_00 AC 2 ms 3016 KB
sample_01 AC 2 ms 3036 KB
sample_02 AC 3 ms 2980 KB
test_00 AC 15 ms 3164 KB
test_01 AC 5 ms 2872 KB
test_02 AC 3 ms 2900 KB
test_03 AC 14 ms 3108 KB
test_04 AC 14 ms 3164 KB
test_05 AC 13 ms 2964 KB
test_06 AC 3 ms 2948 KB
test_07 AC 8 ms 3144 KB
test_08 AC 2 ms 3036 KB
test_09 AC 12 ms 3016 KB


2025-04-11 (Fri)
11:54:14 +00:00