Codeforces Round #439 B
来源:互联网 发布:linux telnet 退出 编辑:程序博客网 时间:2024/05/14 15:49
直接找到规律爆
最多只个数就能使得答案确定为 0
#include <iostream>#include <cstdio>#include <cstdlib>#include <cstring>#include <string>#include <cmath>#include <set>#include <map>#include <stack>#include <queue>#include <ctype.h>#include <vector>#include <algorithm>#include <sstream>#define PI acos(-1.0)#define in freopen("in.txt", "r", stdin)#define out freopen("out.txt", "w", stdout)using namespace std;typedef long long ll;const int maxn = 20 + 7, INF = 0x7f7f7f7f, mod = 1e9 + 7;ll n, m;int main() { scanf("%I64d %I64d", &n, &m); ll t = 1; for(ll i = n+1; i <= n+10 && i <= m; ++i) { t *= (i%10); t %= 10; } cout << t << endl; return 0;}
阅读全文
1 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
- JVM中的四种引用:强引用、软引用、弱引用、虚引用。
- Java加密解密之对称加密
- tensorflow入门栗子:mnist的AlexNet实现
- android性能优化-评论列表
- Mariadb通过yum安装
- Codeforces Round #439 B
- LDA 主题模型
- Codeforces Round #439 (Div. 2) E. The Untended Antiquity (hash+数状数组)
- JAVA课堂练习
- FTPrep, 108 Convert Sorted Array to Binary Search Tree
- EU5-12:Talking about the future technology
- 学习JavaScript数据结构与算法(四)——链表
- Codeforces Round #439 (Div. 2)-The Intriguing Obsession(DP)
- JAVA提高篇(18)--BufferedReader、BufferedWriter