Codeforces Round #439 B
来源:互联网 发布:企业网站cms 编辑:程序博客网 时间:2024/05/29 04:52
大部分最后的尾数都是0
My ugly code
#include <cstdio>#include <cmath>#define ll long longusing namespace std;ll a,b;int main(){ while(~scanf("%I64d%I64d",&a,&b)){ ll ans=1; for(ll i=a+1;i<=b;i++){ ans*=(i%10); ans=ans%10; if(ans==0) break ; } printf("%I64d\n",ans); } return 0;}
阅读全文
0 0
- Codeforces Round #439 B
- Codeforces Round #439 B
- Codeforces Round #439 (Div. 2)A,B
- Codeforces Round #136 B
- Codeforces Round #239 --B
- Codeforces Round #300 B
- codeforces round # 412B
- Codeforces Round #425 B
- Codeforces Round #438 B
- Codeforces Round #397 B
- Codeforces (439B) Round #251 (div.2) B题
- Codeforces Beta Round #60-B
- Codeforces Beta Round #2 B
- codeforces round 176Div1 B
- codeforces div2 round#231 B
- codeforces div2 round#230 B
- Codeforces Round #1B Spreadsheets
- Codeforces Round #274 B. Towers
- Codeforces Round #439 (Div. 2) A-C题解
- STM32之IO输出方式理解
- 《Python学习手册》学习笔记(16)之第16章函数基础(关键词:编程语言/Python)
- 【实战】4-5 IDEA、maven等配置及初始化web空白项目
- 使用ZooKeeper实现Java跨JVM的分布式锁(优化构思)
- Codeforces Round #439 B
- JAVA提高篇(15)--PipedOutputStream和PipedInputStream类用法
- c写文件
- 实习的一些感想
- 《Python学习手册》学习笔记(17)之第17章作用域(关键词:编程语言/Python/作用域/global/nonlocal)
- 用py-faster-rcnn训练自己的VOC数据集
- bzoj 4443: [Scoi2015]小凸玩矩阵
- leetcode2
- 51node 1351 吃点心