跳到正文

个人记录

hyw

summer0703约 1 分钟
原文
文章信息与版本

文章信息

发布
2026年2月26日
收录
2026年5月24日
更新
2026年9月28日
篇幅
约 1 分钟

版本

  1. v1当前
C++
#include<bits/stdc++.h>
#define pre(i, l, r)	for(int i = (l); i <= (r); ++i)
#define fpre(i, r, l)	for(int i = (r); i >= (l); --i)
#define fr(i, s)	for(int i = 0, _ = s.size(); i < _; ++i)
#define ll long long

using namespace std;

const int maxn = 2e6 + 5;
const int inf = 1e9;
const ll lnf = 2e18;



int main()
{
	string s;
	cin>>s;
	for(auto y : s)
	{
		int base = 128;
		while(base)
			printf("%d", y / base), y %= base, base >>= 1;
	}
	return 0;
}




原文