1027. Colors in Mars (20)
来源:互联网 发布:米26重型直升机数据 编辑:程序博客网 时间:2024/04/30 01:58
#include <iostream>#include <stdio.h>#include <string.h>#include <vector>#include <map>#include <stack>#include <queue>#include <algorithm>#include <set>using namespace std;char RGB[3];void trans(int a){ RGB[0]=a/13<10?a/13+'0':a/13-10+'A'; RGB[1]=a%13<10?a%13+'0':a%13-10+'A';}int main(){ int input[3]; for(int i=0;i<3;i++){ scanf("%d",&input[i]); } printf("%c",'#'); for(int i=0;i<3;i++){ trans(input[i]); printf("%s",RGB); } return 0;}
0 0
- 1027. Colors in Mars (20)
- 1027. Colors in Mars (20)
- 1027. Colors in Mars (20)
- 1027. Colors in Mars (20)
- 1027. Colors in Mars (20)
- 1027. Colors in Mars (20)
- 1027. Colors in Mars (20)
- 1027. Colors in Mars (20)
- 1027. Colors in Mars (20)
- 1027. Colors in Mars (20)
- 1027. Colors in Mars (20)
- 1027. Colors in Mars (20)
- 1027. Colors in Mars (20)
- 1027. Colors in Mars (20)
- 1027. Colors in Mars (20)
- 1027. Colors in Mars (20)
- 1027. Colors in Mars (20)
- 1027. Colors in Mars (20)
- qt建立一个按钮控件
- 12 文档归档 压缩 传输.
- python的内存管理机制
- fatal: unable to access 'https://github.com/gmarik/Vundle.vim.git/': Could not resolve host: github.
- 四月初诗
- 1027. Colors in Mars (20)
- mysql安装
- Spring的配置文件中可以用${}
- SSH框架总结
- Data Modeling模型(建立ER模型)
- 未来五年-不懂版权价值层次论你就落伍了!
- CJOJ 2427 最小生成树
- MacOS下iTerm2 OhMyZsh Vim 安装、主题、配色
- pid理解及实现