CodeForces 620B Grandfather Dovlet’s calculator
2024-08-24 10:58:58
水题
#include<cstdio>
#include<cstring>
#include<cmath>
#include<stack>
#include<vector>
#include<string>
#include<iostream>
#include<algorithm>
using namespace std; int x[]; int main()
{
int a,b;
int ans=;
x[]=;
x[]=;
x[]=;
x[]=;
x[]=;
x[]=;
x[]=;
x[]=;
x[]=;
x[]=; scanf("%d%d",&a,&b);
for(int i=a;i<=b;i++)
{
int num=i;
while(num)
{
ans=ans+x[num%];
num=num/;
}
}
printf("%d\n",ans);
return ;
}
最新文章
- 发布一个自用的ansi转utf8程序
- 执行Hadoop job提示SequenceFile doesn&#39;t work with GzipCodec without native-hadoop code的解决过程记录
- DOM一致性检测
- AES .net 、JS 相互加密解密
- Arcgis Engine 切割图斑(ITool)
- CF 16C. Monitor
- 【Cocos2d-x 3.X 资源及脚本解密】
- Linux下Qt的安装与配置
- HTML+CSS学习笔记 (12) - CSS布局模型
- 91. Decode Ways
- windows 7环境下配置oracle 11g 客户端
- mysql中的sql时间格式转换
- V$、GV$、X$、V_$、GV_$之间的关系
- android 5.0新特性学习--RecyclerView
- Oracle中SQL语句分类
- JVM之GC算法、垃圾收集算法——标记-清除算法、复制算法、标记-整理算法、分代收集算法
- CSS3 box-shadow 属性 紧跟在 -webkit-, -ms- 或 -moz-
- WCF系列_WCF如何选择不同的绑定
- centos7下kubernetes(10。kubernetes-daemonset)
- 数位dp 模板