Letters Gym
来源:互联网 发布:以太网是什么网络 编辑:程序博客网 时间:2024/05/20 09:08
https://vjudge.net/contest/170300#problem/F
这道题目的思维量不大,但是看到别人的代码那么简介,还是要好好学。。
int main(){ //freopen("F.in","r",stdin); LL now=26,len=1; LL n;sf("%lld",&n);++n; while(n>now*len){ n-=now*len,len++;now*=26; } char pre[30]; for(int i=1;i<=len;++i){ now/=26; for(char p='A';p<='Z';++p){ if(n<=now*len){ pre[i]=p;break; } n-=now*len; } } pf("%c\n",pre[n]);}
阅读全文
0 0
- Letters Gym
- LETTERS
- Gym
- Gym
- Gym
- Gym
- Gym
- Gym
- Gym
- Gym
- Gym
- Gym
- Gym
- Gym
- Gym
- Gym
- Gym
- Gym
- MIT《计算机科学数学》Chaper06-State Machine
- DAY 2の分治
- 平台
- MySQL常用函数总结
- python socket编程:时间戳服务端与客户端
- Letters Gym
- 一些大佬的博客地址
- 打印目标字符串前面的内容
- python多线程模块threading
- Mr. Kitayuta's Colorful Graph
- c#窗口操作-句柄操控全解
- Maven常用命令以及Nexus私服配置
- 获取系统传感器
- POJ2155 Matrix <树套树/二维树状数组>