进制问题
文章平均质量分 74
一羽清宁lgx
这个作者很懒,什么都没留下…
展开
-
杭电oj——有关进制的问题 (1)
1720:A+B Coming 问题:16进制输入,10进制输出 C语言提供了一个利器 %x(或%X)--------------读入16进制整数#include using namespace std; int main() { int a,b; while(scanf("%x%x",&a,&b)!=EOF) { printf("%d\n"原创 2016-08-03 21:34:25 · 663 阅读 · 0 评论 -
hdu 3711----Binary Number
Description For 2 non-negative integers x and y, f(x, y) is defined as the number of different bits in the binary format of x and y. For example, f(2, 3)=1,f(0, 3)=2, f(5, 10)=4. Now given 2 se原创 2016-10-17 20:46:51 · 307 阅读 · 0 评论