1027 Colors in Mars

1027 Colors in Mars (20分) 思路分析+测试点分析 文章目录题目题目大意分析测试点分析codecode1code2 题目 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 th 阅读详情

1027 Colors in Mars (20 point(s))

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 Specification:

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

Output Specification:

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 its left.

Sample Input:

15 43 71

Sample Output:

#123456
#include<iostream>
using namespace std;
void print(int x){
	if(x>=0&&x<=9) printf("%d",x);
	else printf("%c",x-10+'A');
}
void fun(int n){
	int d1 = n / 13;
	int d2 = n % 13;
	print(d1);
	print(d2);
}
int main(void){
	int r,g,b;
	scanf("%d%d%d",&r,&g,&b);
	printf("#");
	fun(r);fun(g);fun(b);
	printf("\n");
	return 0;
} 

 

Toony Colors Pro 2 v2.8.0 unity动画shader , Toony Colors Pro 2 v2.8.0 立即下载

相关推荐

Toony Colors Pro 2 v2.2.5 (Toony颜色专业版2 v2.2.5)

● 包含硬表面模型Back facing描边断裂问题修复工具 ● 所支持的Unity版本:5.3.0 及以上版本

PAT 甲级 1027 Colors in Mars(20 分)

1027 Colors in Mars(20 分) 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 ar...

宝付支的博客 439

Unity Toony Colors Pro 2.3.31

Includes: ● Unified Material Inspector: selects the correct shader based on your settings ● Shader Generator Tool: create your own custom shader choosing among dozens of features ● Desktop/Mobile Versions of the Shaders ● PBS Version of the Shaders supporting Metallic and Specular workflows ● Smoothed Normal Tool: fixes broken hard-edge outlines ● Texture Ramp Tool: easily create ramp textures and see the changes in real-time on your materials ● Water Template: generate your own stylized water shader with depth-based effects, reflections, and more See the documentation for more info! Desktop/Mobile shaders features: - Ramp Shading (manual or texture) - Normal/Parallax mapping - Specular (classic, PBR or cartoon) - Reflection Cubemap/MatCap - Reflection Probes (Unity 5 only) - Rim Lighting/Rim Outline - Colorable Outline - Blended Outline Extended features in the Shader Generator: - Textured threshold (hand-painted shading) - Subsurface Scattering - Color Mask - Sketch Overlay - Dissolve - Transparency - Double-sided lighting ...and MUCH more!

Toony Colors Pro 2项目分析——shader编辑器

项目package,可在官网购买,也可以在taobao购买。 项目运行效果,可参看网址:http://www.jeanmoreno.com/unity/toonycolorspro/ 另外一个项目:https://github.com/unity3d-jp/unitychan-crs 项目分析参看:https://blog.youkuaiyun.com/candycat1992/article/details...

小孔明的专栏 2858

Toony Colors Pro 2 2.3.381

Toony Colors Pro 2 is a collection of stylized shaders and tools. Making your Unity game stylized has never been so easy!

Toony Colors Pro 2 v2.3.55

Toony Colors Pro 2是一系列风格化的着色器和工具,让我们的Unity游戏风格化从未如此简单! 特征 统一材质检查器 着色器生成器工具 着色器的桌面/移动版本 支持Metallic和Specular工作流的着色器的PBS版本 平滑的普通工具 纹理渐变工具 水模板 Toony Colors Pro 2 v2.3.55 所支持的Unity版本:5.3.0 及以上版本 Toony Colors Pro 2 is a collection of stylized shaders and tools. Making your Unity game stylized has never been so easy! Includes: ● Unified Material Inspector: selects the correct shader based on your settings ● Shader Generator Tool: create your own custom shader choosing among dozens of features ● Desktop/Mobile Versions of the Shaders ● PBS Version of the Shaders supporting me tallic and Specular workflows ● Smoothed Normal Tool: fixes broken hard-edge outlines ● Texture Ramp Tool: easily create ramp textures and see the changes in real-time on your materials ● Water Template: generate your own stylized water shader with depth-based effects, reflections, and more Toony Colors Pro 2 v2.3.55 Toony Colors Pro 2 v2.3.55 Toony Colors Pro 2 v2.3.55 Toony Colors Pro 2 v2.3.55 Toony Colors Pro 2 v2.3.55

1027 Colors in Mars (PAT甲级)

柳婼这个写法真的很简洁,学习……

linh2006的博客 197

运放+三极管恒流源电路设计实战:从原理到仿真一步到位(附Multisim文件)

本文详细解析了运放与三极管构建恒流源电路的核心原理,重点阐述了负反馈机制如何实现精准的电流控制。通过Multisim仿真实战,从电路搭建、参数计算到负载调整率与动态响应分析,一步步指导设计过程,并提供常见故障的调试技巧与PCB设计要点,帮助工程师从理论平稳过渡到可靠实践。

7z8x2c4v6b9的博客 711

【Unity 卡通渲染着色器插件】Toony Colors Pro 2 提供高质量、可自定义的非写实渲染(NPR)效果,适用于卡通、动漫、漫画风格的游戏

Toony Colors Pro 2 是一款强大的卡通渲染(Toon Shading)*着色器插件,专为 Unity 设计,提供高质量、可自定义的*非写实渲染(NPR)*效果,适用于*卡通、动漫、漫画风格的游戏。该插件支持Built-in、URP(通用渲染管线)和 HDRP(高清渲染管线),并包含多种可调节的着色器参数,让开发者轻松打造独特的视觉风格。

2403_88403568的博客 1211

从零搭建《火影忍者》手游服务端:Linux环境部署与全流程实战

游戏服务器后端开发是构建大型多人在线体验的核心技术,其原理涉及高并发网络通信、分布式系统架构与数据一致性保障。在技术价值上,一套稳定高效的服务端不仅能支撑海量玩家实时交互,更是游戏业务逻辑、经济系统和安全防线的基石。典型的应用场景包括MMORPG、回合制卡牌、SLG等中重度手游。本文以《火影忍者》IP的横版卡牌回合制手游为例,聚焦于**手工服务端**的完整搭建过程,详细拆解从Linux系统初始化、MySQL与**Redis**缓存部署、核心服务编译、到代理后台联调的全链路实践,为开发者深入理解游戏后端架构提

weixin_30800615的博客 339

SSD训练自定义数据集实战:VOC格式标注与模型调参技巧

本文详细介绍了如何使用SSD模型训练自定义VOC格式数据集,包括数据标注工具选择、VOC数据集目录结构规范、数据集划分方法以及模型调参技巧。通过实战案例演示了SSD源码的关键修改点和训练参数优化策略,帮助开发者高效实现目标检测任务。

php55的博客 563

PAT甲级1027 Colors in Mars :[C++题解]进制位

刷题

阿正的梦工坊 428

SRE校招面试全攻略:从基础理论到实战场景解析

本文为SRE(站点可靠性工程)校招面试提供全面攻略,涵盖计算机基础、运维核心技能、场景设计与系统架构等关键模块。文章结合真实面试真题,解析了从Linux原理、网络协议到容器化、监控告警等实战考点,并分享了高可用设计、故障排查等工程思维,旨在帮助应届生夯实基础、理清思路,从容应对SRE校招挑战。

bush的博客 644

1027 Colors in Mars

1027 Colors in Mars

老顽固也可爱 164

3D医学影像分割新突破:手把手教你用MedSAM2快速标注CT/MRI数据(附3D Slicer插件配置)

本文详细介绍了如何利用MedSAM2模型进行3D医学影像分割,包括从环境准备到3D Slicer插件配置的全流程。通过实战案例和技巧分享,帮助医疗从业者快速掌握CT/MRI数据的高效标注方法,提升医学影像分析的准确性和效率。

ujm5678901的博客 301

Ardupilot飞控姿态角与姿态角速度控制过程分析(超长篇)

目录 目录 摘要 1.代码控制过程分析 摘要 本节主要记录自己学习ardupilot飞控代码的姿态角速度的控制过程 1.代码控制过程分析 可以看出:AC_AttitudeControl *attitude_control; //指针对象 virtual void rate_controller_run() = 0;是AC_AttitudeContro...

陌城烟雨 1万+

【PAT 甲级】1027 Colors in Mars (20 分)

1027Colors in Mars(20分) 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 a...

CrystalXueNing的博客 248

若依框架二次开发——RuoYi-AI 本地部署流程

若依框架二次开发——RuoYi-AI 本地部署流程

bjzhang75的博客 1785

1027 Colors in Mars (20 分)

1027 Colors in Mars (20 分) 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 , the middle 2 digits for , and the last 2 digits

FG_future的博客 140

微信小程序 - 实现仿小红书轮播图组件功能,类似小红书笔记页面图片展示播放效果,微信小程序仿小红书幻灯片轮播支持视频播放、图片预览,自动适应图片或视频大小可左右滑动切换(小程序精美轮播图,丝滑切换)

微信小程序,轮播图组件,微信小程序仿小红书轮播图,小红书轮播图仿造,微信小程序轮播图,微信小程序幻灯片,微信小程序高仿小红书轮播图实现,小程序实现类似小红书一样的轮播图组件,轮播图插件,精致轮播图,精美丝滑流畅切换的轮播图,轮播图组件,小红薯轮播图,关于小红书的小程序不同数量的轮播图,展示不一样的轮播指示点的实现,微信小程序仿小红书图片轮播,开发微信小程序模仿小红书,高仿小红书Banner的指示器,小红书小程序笔记详情轮播图指示点的随图片数量的变化动态变化,微信小程序swiper轮播图,js轮播图,html

✅ 精选推荐文章 6933

android 蓝牙通讯demo

android 下蓝牙通讯demo,实现了发现蓝牙,使能蓝牙,通过蓝牙发送消息。

上一篇: 1023 Have Fun with Numbers
下一篇: 1028 List Sorting
coderwait
博客等级 码龄9年 20粉丝 210原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值