結果
| 問題 |
No.600 かい文回
|
| コンテスト | |
| ユーザー |
mgingin142857
|
| 提出日時 | 2018-09-12 02:29:51 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 333 bytes |
| コンパイル時間 | 1,515 ms |
| コンパイル使用メモリ | 158,828 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-24 23:24:46 |
| 合計ジャッジ時間 | 5,227 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 21 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
int N,i,j;
cin>>N;
string s="";
char c='a';
while(N>0){
int count=1;
s+=c;
while(N%2==0){
N=N/2;
s+=c;
count*=2;
}
N=N-1;
c+=1;
if(c=='z') c='a';
}
string ans=s;
for(i=0;i<s.size();i++){
ans+=s[s.size()-i-2];
}
cout<<ans;
return 0;
}
mgingin142857