http://acm.hdu.edu.cn/showproblem.php?pid=2051 Problem Description Give you a number on base ten,you should output it on base two.(0 < n < 1000) Input For each case there is a postive number n on base ten, end of file. Output For each case outpu…
Bitset Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 14685 Accepted Submission(s): 11173 Problem Description Give you a number on base ten,you should output it on base two.(0 < n < 1000) …
Rikka with Candies Time Limit: 7000/3500 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 1452 Accepted Submission(s): 634 Problem Description As we know, Rikka is poor at math. Yuta is worrying about this situatio…
题意是将十进制数转换成二进制数. 从网上找到的十进制转 k 进制的做法,代码如下: #include <bits/stdc++.h> using namespace std; ','A','B','C','D','E','F'}; void conv(int n,int k)//k 为进制 { int r; r = n%k; n = n/k; if(n) conv(n,k); printf("%c",a[r]); } int main() { int n,k; while(…