Skip to content

Commit

Permalink
windows-v2
Browse files Browse the repository at this point in the history
  • Loading branch information
zhou-yidie committed Oct 28, 2024
1 parent a27728b commit 72d106a
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions CF1554D.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#include<bits/stdc++.h>
#define LL long long

using namespace std;
const int N=5e5+100;
LL n,k,sm;
string tmp;

void solve(){
cin >> n ;
string ans = tmp;
LL x = n/2-1;
for(int i =1; i <= x ; i++) {
ans += 'a';
}
ans+='b';
if (n & 1 && n!=1) ans+='c';
for(int i =1; i <= x+1 ; i++) {
ans += 'a';
}
cout << ans<< '\n';
return ;
}
int main(){
ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
int T=1;
cin>>T;
while(T--){
solve();
}
return 0;
}
Binary file added CF1554D.exe
Binary file not shown.

0 comments on commit 72d106a

Please sign in to comment.