标签:mes NPU problem space pac pre bsp int bit
#include <algorithm> #include <iostream> #include <cstring> #include <cstdio> #include <vector> #include <cmath> #include <queue> #include <deque> #include <cmath> #include <map> using namespace std; typedef long long ll; const double inf=1e20; const int maxn=2e5+10; const int mod=1e9+7; int n,m; void f(int x){ if(x/m!=0){ f(x/m); } int xx=x%m; if(xx<10) printf("%d",xx); else if(xx>=10)printf("%c",xx-10+‘A‘); } int main(){ m=2; while(scanf("%d",&n)!=EOF){ if(n<0){ printf("-"); n=-n; } f(n); printf("\n"); } return 0; }
标签:mes NPU problem space pac pre bsp int bit
原文地址:https://www.cnblogs.com/wz-archer/p/12450816.html