| 记录编号 | 548593 | 评测结果 | AAAAAAAAAA | ||
|---|---|---|---|---|---|
| 题目名称 | 2134.字符串加密 | 最终得分 | 100 | ||
| 用户昵称 | 是否通过 | 通过 | |||
| 代码语言 | C++ | 运行时间 | 0.005 s | ||
| 提交时间 | 2020-01-27 11:55:35 | 内存使用 | 13.66 MiB | ||
#include<cstdio>
#include<iostream>
#include<cstring>
using namespace std;
int main(){
char words[10001];
freopen("strpassword.in","r",stdin);
freopen("strpassword.out","w",stdout);
gets(words);
for(int i=0;i<strlen(words);i++){
bool a[9]={0};
int ASCII=words[i];
for(int i=8;i>=1;i--){
a[i]=ASCII%2;
ASCII/=2;
}
for(int i=1;i<=8;i++)
cout<<a[i];
}
return 0;
}