#43518: AC (0.3s, 88KB)


1121228@stu.wghs.tp.edu.tw (你知道我是誰嗎!!??)


#include <stdio.h>        //用這標準庫比較快
//不須usingnamespace std;因為不會用到
int main() {
long int a, b;
long int c;
    scanf("%lld", &c);        //用scanf和printf比cout和cin快
while (c--){        //比for迴圈快
    scanf("%lo %llo", &a, &b);        //用%llo讀取long int的八進位,並分別儲存於a和b中
    printf("%lX\n", a + b);        //用%lX讀取long int的十六進位
}
return 0;
}

#43519: Re: AC (0.3s, 88KB)


1121226@stu.wghs.tp.edu.tw (Arthur✨EC)


#include        //用這標準庫比較快
//不須usingnamespace std;因為不會用到
int main() {
long int a, b;
long int c;
    scanf("%lld", &c);        //用scanf和printf比cout和cin快
while (c--){        //比for迴圈快
    scanf("%lo %llo", &a, &b);        //用%llo讀取long int的八進位,並分別儲存於a和b中
    printf("%lX\n", a + b);        //用%lX讀取long int的十六進位
}
return 0;
}

👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕💕