CodeForces 808A Lucky Year(思维)
来源:互联网 发布:美工设计包括哪些 编辑:程序博客网 时间:2024/06/05 04:57
题目链接:点击打开链接
思路:无敌水思维题。
// CodeForces 808A Lucky Year 运行/限制:31ms/1000ms#include <cstdio>#include <cstring>#include <algorithm>#include <cmath>#include <iostream>using namespace std;int main(){int num;while (scanf("%d", &num) != EOF) {int t = num;int len = (int)log10(t);//最高位后有几位for (int i = 0; i < len; i++) {t /= 10;}t++;for (int i = 0; i < len; i++) {t *= 10;}printf("%d\n", t - num);} return 0;}
阅读全文
1 0
- CodeForces 808A Lucky Year(思维)
- codeforces 808A Lucky Year
- 【Codeforces 808 A. Lucky Year】
- Codeforces 808A Lucky Year 题解
- 【Codeforces 808A】【模拟】Lucky Year 题解
- CodeForces 808A——Lucky Year——思维,模拟
- 808A Lucky Year
- Codeforces 145A Lucky Conversion(思维)
- CF#808 A. Lucky Year(水题)
- Educational Codeforces Round 21 808A Lucky Year
- codeforces——808A——Lucky Year
- Educational Codeforces Round 21 A. Lucky Year
- Educational Codeforces Round 21 A. Lucky Year
- Educational Codeforces Round 21 A. Lucky Year
- Codeforces--140A--New Year Table(思维)
- Codeforces 303A Lucky Permutation Triple【思维】
- codecodefor 808A——Lucky Year
- A. Lucky Year
- android xml本地数据弹窗多选
- 机器学习十大算法
- Leetcode c语言- Permutations II
- 迭代器Iterator
- 使用cad转换器操作教程
- CodeForces 808A Lucky Year(思维)
- Jupyter Notebook的安装
- [App] DHCP 服务器搭建
- NSURLSession下的网络请求
- Spring boot启动运行流程
- 留言过滤(简单实现)-过滤字符串
- linux下mysql
- FTP两种模式初次认识
- MySQL中的FEDERATED引擎