
ACM省赛准备笔记
文章平均质量分 85
是Elie呀
人生苦短,莫忘初衷;凡事相信,凡事期待。认真做事,认真做人!翁恺老师寄语:“其实学习终归是一件痛苦的事情,所以呢面对学习你还是得要认真,用功,努力地去学习。享受的是什么?是学习之后获得的那种成就,快乐是从成就中来的。”
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
2017年ACM第八届省赛J题:Company - SDUT3902
Problem DescriptionThere are n kinds of goods in the company, with each of them has a inventory of and direct unit benefit . Now you find due to price changes, for any goods sold on day i, if its dir...原创 2018-04-14 15:31:00 · 615 阅读 · 0 评论 -
(找规律)萌萌哒身高差
萌萌哒身高差“清明时节雨纷纷,路上行人欲断魂。”然而wfy同学的心情是愉快的,因为BNU ACM队出去春游啦!并且,嗯。。。以下是wfy同学的日记: 昨天,何老师告诉我们:明天我们去春游,大家准备好喝的和吃的哦!大家听了都兴奋起来,有的欢呼,有的鼓掌,开心得不得了。第二天,我们早早地来到学校,迫不及待地上了车,来到了公园。一进门,啊,太美了!公园中有那么多树,有高有矮,有粗有瘦,密密的,在春风吹拂...原创 2018-04-05 20:59:09 · 515 阅读 · 0 评论 -
2015年北京师范大学新生程序设计竞赛题解
前四道题都是简单题,基本上半个小时就能解决。A. BQG's Programming ContestTime Limit: 2000msMemory Limit: 32768KB64-bit integer IO format: %lld Java class name: MainSubmit Status PID: 50997又到了一年一度的北京师范大学新生程序设计竞赛!为作为良心出题...原创 2018-04-06 16:03:22 · 374 阅读 · 0 评论 -
2017年ACM第八届山东省赛F题:quadratic equation(离散数学蕴含式)- SDUT3898
Problem DescriptionWith given integers a,b,c, you are asked to judge whether the following statement is true: "For any x, if a⋅+b⋅x+c=0, then x is an integer."InputThe first line contains only one int...原创 2018-04-13 16:49:41 · 301 阅读 · 0 评论 -
(同余与模算术)sum of power
Problem DescriptionCalculate mod (1000000000+7) for given n,m.InputInput contains two integers n,m(1≤n≤1000,0≤m≤10).OutputOutput the answer in a single line.Sample Input10 0Sample Output10HintSourc...原创 2018-04-13 17:29:56 · 348 阅读 · 0 评论 -
2017年ACM第八届山东省赛I题: Parity check(找规律)- SDUT3901
Problem DescriptionFascinated with the computer games, Gabriel even forgets to study. Now she needs to finish her homework, and there is an easy problem:f(n)=She is required to calculate f(n) mod 2 fo...原创 2018-04-13 20:37:16 · 269 阅读 · 0 评论 -
素数判定Miller_Rabin 算法详解
素数判定Miller_Rabin 算法详解 例如:Goldbach#include<bits/stdc++.h>using namespace std;unsigned long long n;const int times = 5;int number = 0;unsigned long long Random( unsigned long long n ) ...转载 2018-04-23 20:08:01 · 454 阅读 · 0 评论 -
(大数)Reversion Count
点击打开链接Description:There is a positive integer X, X's reversion count is Y. For example, X=123, Y=321; X=1234, Y=4321. Z=(X-Y)/9, Judge if Z is made up of only one number(0,1,2...9), like Z=11,Z=111,Z=...原创 2018-04-23 20:27:53 · 230 阅读 · 0 评论