
ACM网络赛
文章平均质量分 58
SY_Pistachio
低调的前行,越努力越幸运!
展开
-
Nise-Anti-AK Problem
Description:Peppa has been learning math recently, he is trapped by a easy problem. He is given a sequence of n numbers, what he need to do is finding the number ai which have the largest number f(ai)...原创 2018-04-23 19:16:19 · 289 阅读 · 0 评论 -
The 2018 ACM-ICPC Asia Qingdao Regional Contest, Online
A Live Love上取整,下取整函数:ceil() 向上取整,floor()向下取整。#include<iostream>#include<cstdio>#include<cmath>using namespace std;int main(){ int t,n,m; scanf("%d",&t); whil...原创 2018-09-23 10:34:03 · 232 阅读 · 0 评论 -
ACM-ICPC 2018 焦作赛区网络预赛
A Magic Mirror最开始提交的时候,忘记判断strlen(s)>6的情况,考虑不周到,以后一定考虑全面再提交。#include<bits/stdc++.h>using namespace std;int main(){ int t; scanf("%d",&t); while(t--){ char s[20]...原创 2018-09-23 11:48:55 · 270 阅读 · 0 评论 -
Problem F. The Chosen One(The 2017 ACM-ICPC Asia Nanning Regional Contest, Onsite 大数)
Problem F. The Chosen OneWelcome to the 2017 ACM-ICPC Asia Nanning Regional Contest.Here is a breaking news. Now you have a chance to meet alone with the Asia Director through a game.All boys and g...原创 2018-08-23 16:50:19 · 774 阅读 · 0 评论 -
Problem B. Cure(The 2016 ACM-ICPC Asia Qingdao Regional Contest, Online)
Problem B. CureTime limit: 1sColor of balloons: 32768KGiven an integer n, we only want to know the sum of 1/k2 where k from 1 to n.InputThere are multiple cases. For each test case, there is a si...原创 2018-08-14 19:04:15 · 364 阅读 · 0 评论 -
Problem E. Balanced Game (The 2016 ACM-ICPC Asia Qingdao Regional Contest, Online)
Problem E. Balanced GameTime limit: 1sColor of balloons: 32768KRock-paper-scissors is a zero-sum hand game usually played between two people, in which each player simultane-ously forms one of thre...原创 2018-08-14 16:16:55 · 306 阅读 · 0 评论 -
Goldbach 米勒 罗宾算法
1.来源:https://blog.youkuaiyun.com/qq_38749759/article/details/800425272.算数检测法介绍:https://blog.youkuaiyun.com/zengaming/article/details/518672403.米勒 罗宾算法原理介绍:https://blog.youkuaiyun.com/fisher_jiang/article/details/98...原创 2018-04-23 21:16:35 · 1395 阅读 · 2 评论 -
Copy and Submit II
Input:Input consists of several test cases. Each test case begins with an integer n. Then it's followed by n integers a[i]. 0<n<=10000000<=a[i]<=10000There are 100 ...原创 2018-04-23 20:56:53 · 311 阅读 · 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), ...原创 2018-04-23 20:26:03 · 225 阅读 · 0 评论 -
2016ACM/ICPC亚洲区沈阳站(区域赛练习)(C 矩阵快速幂)
A - Thickest Burger #include<bits/stdc++.h>using namespace std;int main(){ int t; cin>>t; while(t--) { int a,b; cin>>a>>b; cout<<2*max(a,b)+min(a,b)<&l...原创 2018-09-28 21:33:48 · 533 阅读 · 0 评论