麻豆小视频在线观看_中文黄色一级片_久久久成人精品_成片免费观看视频大全_午夜精品久久久久久久99热浪潮_成人一区二区三区四区

首頁 > 學(xué)院 > 開發(fā)設(shè)計(jì) > 正文

PAT A1027. Colors in Mars (20)

2019-11-11 05:27:27
字體:
供稿:網(wǎng)友

People in Mars rePResent the colors in their computers in a similar way as the Earth people. That is, a color is represented by a 6-digit number, where the first 2 digits are for Red, the middle 2 digits for Green, and the last 2 digits for Blue. The only difference is that they use radix 13 (0-9 and A-C) instead of 16. Now given a color in three decimal numbers (each between 0 and 168), you are supposed to output their Mars RGB values.

Input

Each input file contains one test case which occupies a line containing the three decimal color values.

Output

For each test case you should output the Mars RGB value in the following format: first output "#", then followed by a 6-digit number where all the English characters must be upper-cased. If a single color is only 1-digit long, you must print a "0" to the left.

Sample Input
15 43 71Sample Output
#123456
#include <cstdio>#include <algorithm>#include <cmath>#include <cstring>#define Max 110using namespace std;int main(){	int r=0,g=0,b=0,num[6];	char Mars[14]={'0','1','2','3','4','5','6','7','8','9','A','B','C'};	scanf("%d%d%d",&r,&g,&b);	printf("#");	printf("%c%c",Mars[r/13],Mars[r%13]);	printf("%c%c",Mars[g/13],Mars[g%13]);	printf("%c%c/n",Mars[b/13],Mars[b%13]);	system("pause");	return 0;}
發(fā)表評論 共有條評論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 亚洲va久久久噜噜噜久牛牛影视 | 国产精品www | 99影视在线视频免费观看 | 久久成人视屏 | 欧美一级黄视频 | 久久老司机精品视频 | av在线播放免费 | 亚洲欧美国产高清va在线播放 | 日本在线播放一区二区三区 | 男女羞羞视频在线观看免费 | 羞羞视频免费网站男男 | 国产精品成人久久 | 狠狠婷婷综合久久久久久妖精 | 成人在线视频免费 | 欧美91看片特黄aaaa | 久久华人 | 羞羞视频.www在线观看 | 精品国产一区二区三区久久久蜜 | 久久激情小视频 | 久久精品日产第一区二区三区 | 特黄一级小说 | 激情视频在线播放 | 中文字幕四区 | av电影在线观看网址 | 日韩每日更新 | www.91tv| av电影网站在线观看 | 国产999精品久久久久 | 男女羞羞视频在线观看免费 | 第一区免费在线观看 | 欧美一级棒 | 中文日韩 | 国产美女视频一区 | 欧美成a人片在线观看久 | vidz 98hd| 国产精品久久久久久久不卡 | 国产成人av免费看 | 国产精品午夜未成人免费观看 | 黄色视屏免费看 | 欧美一级α | 欧美大荫蒂xxx |