GDUT_排位赛题解报告_第4场_C. Defining Labels

SP贴图高效导入Maya:从材质设置到渲染优化的完整流程 本文详细解析了将Substance Painter(SP)贴图高效导入Maya并配合Arnold渲染器的完整工作流。针对SP贴图在Maya中常见的色彩、法线等问题,核心在于对齐两者的PBR“语言”,重点讲解了SP中正确的贴图导出设置(包括色彩空间)以及在Maya中连接aiStandardSurface材质、处理法线贴图、优化渲染的标准化流程,确保材质效果准确无误。 阅读详情

题目:

Microsoft Excel is a spreadsheet developed by Microsoft. It features calculation, graphing tools, pivot tables, and a macro programming language called Visual Basic for Applications. It has been a very widely applied spreadsheet for many different operating systems, especially since version 5 in 1993, and it has replaced Lotus 1-2-3 as the industry standard for spreadsheets.

In Excel, the labelling for columns uses upper case letters instead of numbers to distinguish it from the labelling for rows. The first column in Excel is labelled A, the second is labelled B and so on. And after column Z, the next columns are labelled AA,AB,⋯,ZZ,AAA,⋯.

In this problem, we’ll define a new labelling scheme. Let’s use numerical digits instead of letters, and only a subset of the digits. Let’s define base k (2≤k≤10) labelling as using only digits from 10−k to 9 in the labels. For example, the labels in base 10 in ascending order are 0,1,⋯,9,00,01,⋯, and in base 7 they are 3,4,⋯,9,33,34,⋯.

Now, given k and X, your task is to find the X-th label in base k.

Input
The input contains multiple cases. The first line of the input contains a single integer T (1≤T≤105), the number of cases.

For each case, the first line of the input contains a single integer k (2≤k≤10), the base of the labelling scheme. The second line contains a single integer X (1≤X≤109), the number of the label you need to find.

Output
For each case, print a single string in a single line, the X-th label.

Example
inputCopy
2
10
10
5
10
outputCopy
9
59

这个题意简单,就是求26进制的第几个数,但是要处理一下,也算是数学题目:

代码:

#include <iostream>
#include <algorithm>
#include <cstdio>
#include <cmath>
#include <cstring>
#include <string>
#include <climits>
#include <queue>
#include <stack>
#include <map>
//鬼畜头文件
using namespace std;
const int INF = 0x3f3f3f3f;
//1.06e9大小
const int mod = 1e9+7;
typedef unsigned long long ULL;
typedef long long LL;
//鬼畜define
int t;
int k,x;
int all[35];
int main()
{
	scanf("%d",&t);
	while(t--)
	{
		scanf("%d %d",&k,&x);
		if(x%k!=0)
		{
			all[0]=x%k+9-k;
		}
		else
		{
			all[0]=9;
			--x;
		}
		x/=k;
		int bit=1;
		for(;x!=0;++bit)
		{
			if(x%k==0)
			{
				all[bit]=9;
				--x;
			}
			else
			{
				all[bit]=x%k+9-k;
			}
			x/=k;
		}
		for(int time=bit-1;time>=0;--time)printf("%d",all[time]);
		printf("\n");
	}
}
visionpro官方示例分析(一) 模板匹配工具 缺陷检测工具 使用CogPMAlignTool工具,该工具是模板匹配工具,见名知意,所谓模板匹配工具就是说先使用该工具对一张图像建立模板,然后用这个模板在其他图像上进行匹配,匹配上了就说明找到了,匹配不上就说明没有找到。 阅读详情

相关推荐

LTspice导入德州仪器SPICE模型的实用指南与常见问题解析

本文详细介绍了如何在LTspice中导入德州仪器的SPICE模型,包括模型文件获取、路径管理、导入步骤及常见问题解析。通过实用指南帮助工程师精确仿真电路性能,提升设计效率,重点涵盖了第三方模型的导入教程和最佳实践。

kk1234的博客 320

Defining Labels【数学】Rating

题目描述: 思路: 模拟进制转化过程。因为正常转换时只需要除完之后取余即可,但是此题不是从1开始,所以还要加上一个偏移量(10-k),又因为时取到9比10进制还少了1,所以在取每一位得时候要(a - -)。 #include<iostream> #include<algorithm> #include<cstring> #include<cmath&gt...

weixin_45619734的博客 371

晶圆测试(wafer sort)全流程解析:从探针卡到良率统计的实战指南

本文详细解析了晶圆测试(wafer sort)的全流程,从探针卡选型到良率统计的实战指南。涵盖了12英寸先进制程产线的关键技术,包括探针卡系统、测试程序开发、产线自动化集成及数据分析,特别聚焦多站点并行测试的时序优化和接触阻抗异常排查,帮助工程师提升测试效率与准确性。

weixin_29279153的博客 736

Gym 102452D Defining Labels 数位数字提取

D - Defining Labels 这一题是一个典型的进制转换题,但是如果不知如何转换,则可能做不出来。 首先,我们来看一组对应: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 00, 01, 02, 03, ……, 99, 000, 001, 002, …… 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11, 12, 13, 14, ……,110,111, 1...

caiyiwen's ACM/ICPC Zone 736

ESP32连接OneNet云平台实现多设备联动控制完整示例

通过esp32连接onenet云平台,实现远程设备间的智能联动控制,利用MQTT协议完成数据通信,esp32连接onenet云平台后可高效稳定地上传与下发指令,提升物联网系统响应速度与自动化水平。

weixin_42360733的博客 553

阿里云大模型 ACP 认证教材内容突变?这些改动藏着通关密码,不看亏大!

【摘要】核心章节大换血,安全合规融入实战场景,大模型微调用数学深度解析,部署章节带来阿里云产品对比实战攻略,甚至整章内容被替换成藏满学习彩蛋的行业趋势指南。这些改动不仅重塑考试重点,更暗藏官方命题风向——安全合规考场景方案,微调原理考几何解析,部署设计考分析框架。无论你是数学小白还是部署新手,这篇攻略都将带你吃透变动逻辑,附赠急救包和考点清单,帮你抓住这些“隐形加分项”,速来解锁通关秘籍!

davidkorhenn的博客 1757

Gym 102452D Defining Labels 进制转换+找规律

https://codeforces.com/gym/102452/problem/D 如果k=10,则1->0,2->1,3->2,4->3,5->4,6->5,7->6,8->9,9->8,10->9,11->00,… 如果k=5,则1->5,2->6,3->7,4->8,5->9,6->55,7->56,8->57,9->58,10->59,11->65,… 再看在五进制

TK_wang_的博客 601

北斗导航 | 卡尔曼滤波与因子图优化对比(附图优化matlab代码)

- 历史数据利用:因子图通过滑动窗口保留历史状态,优化时联合多帧数据;卡尔曼滤波仅依赖当前和上一帧状态 。 - 迭代优化:因子图通过多次迭代逼近最优解,卡尔曼滤波仅单次更新 。 - 误差抑制:因子图的多次线性化可有效抑制非线性误差(如GNSS伪距观测的非线性) 。

尘世冰封的专栏 1324

C. Defining Labels

GDUT 2020寒假训练 排位赛四 C 原题链接 C. Defining Labels 题目 Microsoft Excel is a spreadsheet developed by Microsoft. It features calculation, graphing tools, pivot tables, and a macro programming language call...

xcy2001的博客 348

LPDDR6与LPDDR5 ZQ Calibration技术探讨

LPDDR6与LPDDR5 ZQ Calibration技术探讨

zilan23的博客 1114

第八届传智杯WPS智能办公能力挑战赛练习题库

本文是关于WPS Office软件操作知识的选择题汇总,内容涵盖WPS文字、表格和演示三大组件的常用功能。主要包括:云文档协同编辑、文本框插入、幻灯片打印设置、数据排序与筛选、函数应用(如SUMIF、COUNT)、动画效果设置、格式刷使用、页眉页脚设置、单元格引用类型等基础操作要点。同时涉及计算机基础概念如二进制、ROM存储器等。题目以单选和多选形式呈现,附带详细答案解析,全面检验用户对WPS办公软件的功能掌握程度和实际操作能力,适用于办公软件技能培训和水平测试。

qq_73044452的博客 1463

GDUT_排位赛题解报告_第4场_E. Binary Tree

题目: In computer science, a binary tree is a rooted tree in which each node has at most two children. In this problem, let’s denote n as the number of nodes, l as the number of leaf nodes and h as the ...

DevourPower的博客 598

ROS从入门到精通0-4:VSCode 搭建 ROS 工程环境

为了提高开发效率,可以先安装集成开发工具和使用方便的工具,本教程用VSCode搭建ROS工程环境

FRIGIDWINTER的博客 1万+

GDUT_排位赛题解报告_第5场_H. 完美排列

题目: ChenJr定义一个长度为n的完美排列为:对于一个任意的的i,都有a[i−1]>a[i]<a[i+1] 或者 a[i−1]<a[i]>a[i+1] 给你一个正整数n,你需要输出一个字典序最小的完美排列。 Input 一行输入一个正整数n (1≤n≤105)。 Output 输出n个整数,代表答案的排列。 Example inputCopy 1 outputCopy ...

DevourPower的博客 462

大中型超市收银系统(可直接运行)

光步前台收银系统系统功能:商品销售、商品退货、挂单、收银员权限、会员销售、单品取消、整单取消、商品查询、脱机销售、脱机数据上传,基本资料下载,开钱箱、小票打印、收款结算,支持多币种付款方式(现金、储值卡、礼券、微信等),支持多种促销。运行环境:.net 4.0登陆信息用户名:1001 密码:123456内置商品信息,商品编码可输入00001000 - 00010000,测试效果相关功能键F5 结算 F9挂单 F11商品查询 F8退货 Insert单品取消 Del整单取消 F12开钱箱F2 会员 Ctrl+Z退出系统 Home 锁屏 相关源码待公开

visio安装包

Microsoft Office Visio 是一款专业的制图软件。利用经过更新的形状、协作工具和数据链接图表,创建专业级图表以简化复杂的信息。

2020.2.22GDUT寒假训练排位赛2-A

A — Fence Planning 题目大意: 农民约翰的N头奶牛,方便地编号为1…N(2≤N≤105),有一个复杂的社会结构,围绕着“moo网络”——小群的奶牛,它们在自己的群体中交流,但不与其他群体交流。每头奶牛位于2D的农场地图上不同的(x,y)位置,我们知道有M对奶牛(1≤M<105)在互相moo叫。互相moo叫的两头牛属于同一个moo网络。为了更新他的农场,农民约翰想要建一个长方...

csdn_xieql的博客 595

最新的sdio 4.0 spec 协议标准 带书签 高清完整PDF版

Part-E1-SDIO-Specification-Ver4.00-Final-120220.pdf:最新的sdio 4.0 spec 协议标准 带书签 高清完整PDF版,包括SDIO 接口的外设,SDIO 接口官方协议等。

2020寒假集训排位赛 Defining Labels (思维,递归)

题目链接:https://codeforces.com/group/5yyKg9gx7m/contest/270506/problem/C 思路 这题有种答案就在眼前但就是就是做不出来的便秘感觉,有点像之前做过的转化成X进制的题目,不过区别在于这题不是从0开始数的,于是就对每一种进制都对应一个补正表,发现只要对输出的每一个数都加上(10-K),那么我们就可以输出符合题意得答案。 举个例子:比如样例...

bllovepigpig的博客 245

数学建模模型总结

这是本人在两年内准备参加数学建模竞赛搜集到的模型资料,已经经过了本人的筛选和整理,希望能够对准备参加数学建模竞赛的学弟学妹们提供一些帮助!

微软Excel文件格式

                    MICROSOFT EXCEL FILE FORMATMicrosoft Excel is a popular spreadsheet. It uses a file format called BIFF (BinaryFile Format). There are many types of BIFF records. Each has a 4 b

belowsky的专栏 1296

GDUT_排位赛题解报告_第1场_E题 Milk Visits

题目: Farmer John is planning to build N (1≤N≤105) farms that will be connected by N−1 roads, forming a tree (i.e., all farms are reachable from each-other, and there are no cycles). Each farm contains ...

DevourPower的博客 326

Defining Labels Gym - 102452D(进制)

Microsoft Excel is a spreadsheet developed by Microsoft. It features calculation, graphing tools, pivot tables, and a macro programming language called Visual Basic for Applications. It has been a very widely applied spreadsheet for many different operatin

tomjobs的博客 439

GDUT_排位赛题解报告_第3场_E. Word Processor

题目: E. Word Processor time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Bessie the cow is working on an essay for her writing class. Since her ha...

DevourPower的博客 372

GDUT_寒假训练题解报告_专题I_L题 个人题解报告

GDUT_寒假训练题解报告_专题I_L题 个人题解报告 题目: You are given two integers a and b. You may perform any number of operations on them (possibly zero). During each operation you should choose any positive integer x and...

DevourPower的博客 880

GDUT_寒假训练题解报告_专题I_K题 个人题解报告:杭电题目Error Curves【裸三分】

GDUT_寒假训练题解报告_专题I_K题 个人题解报告 题目: Josephina is a clever girl and addicted to Machine Learning recently. She pays much attention to a method called Linear Discriminant Analysis, which has many interesti...

DevourPower的博客 703

GDUT_寒假训练题解报告_专题I_A题 个人题解报告【尺取模板题目详解】【poj题目Subsequence】

GDUT_寒假训练题解报告_专题I_A、B、C、D题 个人题解报告 A题:尺取(模板题目 给出了一个N个正整数序列(10<N<1e5),每个正整数小于或等于10000,以及一个正整数S(S<1e8)。编写一个程序,以求序列的连续元素的子序列的最小长度,其和大于或等于S。 输入 第一行是测试用例的数量。对于每个测试用例,程序必须从第一行读取数字N和S,用间隔分隔。序列的数目在测试用...

DevourPower的博客 559

GDUT_排位赛题解报告_第3场_H. Photoshoot

题目: Farmer John is lining up his N cows (2≤N≤103), numbered 1…N, for a photoshoot. FJ initially planned for the i-th cow from the left to be the cow numbered ai, and wrote down the permutation a1,a2,…...

DevourPower的博客 525

GDUT_寒假训练题解报告_专题I_B、C、D题 个人题解报告

GDUT_寒假训练题解报告_专题I_B、C、D题 个人题解报告 B题 :dfs (我更喜欢叫它感染函数,因为之前写扫雷的时候教别人,不敢说dfs就说感染函数说顺口了。) 由于最近下雨,水在农民约翰的田里的各个地方汇集起来,用一个N×M(1<=N<=100;1<=M<=100)正方形表示。每一个正方形包含水(“W”)或旱地(“.”)。农场主约翰想弄清楚他的田里有多少池塘。...

DevourPower的博客 465

GDUT_寒假训练题解报告_数论专题_个人题解报告——题目:D - Beautiful Numbers (CodeForces - 300C)【逆元、组合数公式】

原题链接http://codeforces.com/problemset/problem/300/C 题目: Vitaly is a very weird man. He’s got two favorite digits a and b. Vitaly calls a positive integer good, if the decimal representation of this int...

DevourPower的博客 444
上一篇: GDUT_排位赛题解报告_第4场_E. Binary Tree
下一篇: GDUT_排位赛题解报告_第5场_A. 唯一排列
DevourPower
博客等级 码龄7年 52粉丝 78原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

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

抵扣说明:

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

余额充值