17907955 2016-05-14 17:17:32 biss A - Summer Camp GNU C++11 Accepted 15 ms 2200 KB
2016-05-14 22:19
609 查看
#include <iostream> #include <vector> #include <algorithm> #include<queue> using namespace std; const int N = 1e4 + 100; string funk(int n){ string s; while(n){ s = char(n%10+48) + s; n/=10; } return s; } int main(){ int pos; cin >> pos; string s; for(int i = 1;i<= pos;i++){ s+=funk(i); } cout<<s[pos-1]; }
相关文章推荐
- 第7周 C语言程序设计(新2版) 练习9/10 解释原理与大写变小写
- C++走向远洋——47(第十二周、运算符重载基础程序、阅读)
- C++数组在函数中的传递与返回
- C++之RAII惯用法
- essential c++ 练习题(1)
- C++子父类成员之间相互访问的权限分析
- C语言中关键字auto、static、register、const、volatile、extern的作用
- C/C++标准误导篇
- C++中模板类引入
- faster_rcnn c++版本的 caffe 封装,动态库(2)
- c++中string类成员函数的总结
- 第7周 C语言程序设计(新2版) 各类位运算符定义
- 关于C语言的问卷调查(补交)
- C++变量和基本类型
- C++_(矩阵)快速幂
- C++_FatMouse' Trade(贪心)
- 第7周 C语言程序设计(新2版) 例题 3个函数例题
- C++builder Property属性
- Java和C语言,C++语言主要差别
- C++ primer plus 第十章课后习题,原创答案。