Submission #71650880


Source Code Expand

#include <bits/stdc++.h>
//#include <windows.h>
//taskkill /f /im 未命名1.exe
#define ED cerr<<endl;
#define TS cerr<<"I AK IOI"<<endl;
#define cr(x) cerr<<x<<endl;
#define cr2(x,y) cerr<<x<<" "<<y<<endl;
#define cr3(x,y,z) cerr<<x<<" "<<y<<" "<<z<<endl;
#define cr4(x,y,z,w) cerr<<x<<" "<<y<<" "<<z<<" "<<w<<endl;
#define pr(a,l,r) for(int i=l;i<=r;++i) cerr<<a[i]<<' ';ED
#define popcnt __builtin_popcount
#define all(s) s.begin(),s.end()
#define bstring basic_string
//#define add(x,y) (x+=y)%=mod
#define pii pair<int,int>
#define epb emplace_back
#define pb push_back
#define mk make_pair
#define ins insert
#define fi first
#define se second
#define ll long long
#define ull unsigned long long
using namespace std;
const int N=2e5+5,INF=2e9,mod=1e9+7;
int t,n,m;
char s[N];

int main()
{
	scanf("%d%s",&n,s+1);
	int len=strlen(s+1);
	for(int i=1;i<=n-len;++i) {
		putchar('o');
	}
	puts(s+1);
	return 0;
}

Submission Info

Submission Time
Task A - o-padding
User Include_S_Z_C_
Language C++23 (GCC 15.2.0)
Score 100
Code Size 953 Byte
Status AC
Exec Time 9 ms
Memory 3844 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 13
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 9 ms 3720 KiB
00_sample_01.txt AC 1 ms 3836 KiB
00_sample_02.txt AC 1 ms 3820 KiB
01_test_00.txt AC 1 ms 3712 KiB
01_test_01.txt AC 1 ms 3836 KiB
01_test_02.txt AC 1 ms 3836 KiB
01_test_03.txt AC 1 ms 3844 KiB
01_test_04.txt AC 1 ms 3836 KiB
01_test_05.txt AC 1 ms 3836 KiB
01_test_06.txt AC 1 ms 3836 KiB
01_test_07.txt AC 1 ms 3820 KiB
01_test_08.txt AC 1 ms 3808 KiB
01_test_09.txt AC 1 ms 3808 KiB