LeetCode Weekly Contest 179
問題文
省略
省略
C++に変換後のコードはこちら
#define main dummy_main
{}
#undef main
class Solution {
public:
string generateTheString(int n) {
string res;
if(n%2==0) res += 'z', n--;
rep(n) res += 'a';
return res;
}
};
Current time: 2024年04月18日19時52分57秒
Last modified: 2020年03月29日02時14分23秒 (by laycrs)
Tags: Competitive_Programming_Incomplete LeetCode
トップページに戻る
Logged in as: unknown user (not login)