![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
QLU 新生赛acm竞赛
QLUGCL
每一步都算数
展开
-
凉肝的比赛(最小因子)
C - Fadi and LCM CodeForces - 1285CToday, Osama gave Fadi an integer X, and Fadi was wondering about the minimum possible value of max(a,b) such that LCM(a,b) equals X. Both a and b should be positiv...原创 2020-01-15 23:09:12 · 252 阅读 · 0 评论 -
凉心的比赛(—)
C题You might have heard about the next game in Lara Croft series coming out this year. You also might have watched its trailer. Though you definitely missed the main idea about its plot, so let me lif...原创 2020-01-14 13:22:06 · 207 阅读 · 0 评论 -
QLU新生赛02题解
D#include<iostream>#include<algorithm>using namespace std;int main(){ long long n; cin>>n; long long a[3]; while(n--){ long long sum=0; cin>>a[0]>>a[1]>>...原创 2020-01-09 16:40:52 · 1040 阅读 · 0 评论 -
开挂的小洋
题目描述最近小洋迷上了一款名叫打地鼠的游戏,但是小洋是个游戏白痴,这么简单的游戏也总是得不到几分,有一天他发现这款游戏可以在网络上买到外挂,这款外挂可以提前预知所有地鼠出现的时间,并且他可以开局得到两把锤子,之前小洋1s只能挥动一次锤子 现在他左右开弓可以同时打中最多两只地鼠。每只地鼠在第 i 秒出现,在第i+1秒的时候就会消失。也就是说在第 i 秒小洋只能打到这一秒出现的地鼠,(i-1)秒以及(...原创 2019-01-20 12:48:09 · 190 阅读 · 0 评论 -
神奇的老虎机
#include<stdio.h> int main() { int n,i,j,item; scanf("%d",&n); for(i=0;i<n;i++) { scanf("%d",&item); int b[item]; ...原创 2019-01-21 13:01:44 · 175 阅读 · 0 评论 -
QLU 新生赛 折纸达人(double与longlong区别)
float的范围为-2^128 ~ +2^128,也即-3.40E+38 ~ +3.40E+38;double的范围为-2^1024 ~ +2^1024,也即-1.79E+308 ~ +1.79E+308。float:2^23 = 8388608,一共七位,这意味着最多能有7位有效数字,但绝对能保证的为6位,也即float的精度为6~7位有效数字;double:2^52 = 45035996...转载 2019-01-22 16:19:20 · 153 阅读 · 0 评论 -
数数(二维数组)
#include<stdio.h>int main(){ int j=0,i; char c[100],a[2][100]; for(i=0;i<100;i++) { a[0][i]='\0'; a[1][i]='1'; } gets(c); i=0; while(c[i]!='\0') { a[0][j]=c[i++]; while(a[...原创 2019-01-23 17:42:23 · 181 阅读 · 0 评论