|
数据范围1080不是1000,警钟长鸣
题目 128 [USACO Mar08] 混乱的齿轮
2024-10-04 19:20:37
|
|
还是数学好,一招鲜吃遍天
题目 3778 [CSP 2022J]解密
2024-10-04 18:13:46
|
|
三年oi一场空,不开long long 见祖宗
![]() |
|
没用二分的我5分钟得了50分:(
题目 3778 [CSP 2022J]解密
2024-10-03 20:53:26
|
|
|
|
#include<bits/stdc++.h>
using namespace std; typedef long long op; int main() { freopen("csp2022pj_pow.in","r",stdin);freopen("csp2022pj_pow.out","w",stdout); op a,b; cin>>a>>b; if(pow(a,b)>1000000000)cout<<-1; else cout<<(int)pow(a,b); return 0; }
题目 3777 [CSP 2022J]乘方
2024-10-02 21:44:15
|
|
这个傻逼的 [静态查错] 能力为 0
|
|
$\mathcal{O}(8n\log{n})$。
题目 4023 硝华流焰
2024-09-30 21:56:03
|
|
怎么记搜跟暴力一样慢
题目 4022 批发市场
2024-09-29 23:32:15
|
|
#include<iostream>
#include<cstdio> using namespace std; int f(int x){ } int j(int a,int b,int c) { int o=0; float e=b*b-4*a*c; if(e<0){ cout<<"NO"<<endl; return 0; } for(int i=0;i<=e;i++) if(i*i==e){ o=1; e=i;break; } float x1=(e-b)/(2*a)*1.0; float x2=(-e-b)/(2*a)*1.0; int x3=(-e-b)/(2*a); int x4=(e-b)/(2*a); if(x1<x2){ if(x2!=x3)f(x2); else cout<<x2<<endl; } } int main() { //freopen("uqe.in","r",stdin); //freopen("uqe.out","w",stdout); long long q,w; cin>>q>>w; in
题目 4016 [NOI 2024]分数
2024-09-28 17:40:29
|
|
页面 95 比较好的部分分题分享
2024-09-26 18:57:47
|
|
#include<iostream>
using namespace std; int main() { //freopen("road.in","r",stdin); //freopen("road.out","w",stdout); long long n,d; long long k,h=0,i,l=0,m=0,v=0,y=0,s=1,s1=1; cin>>n>>d; int a[n],b[(n+1)]; for(i=1;i<n;i++) cin>>a[i]; for(i=1;i<=n;i++) cin>>b[i]; while(y==0){ h=0; for(i=(s+1);i<=n;i++){ if((b[i]<b[s])||(i==n)){ k=(i-s);break; } } for(i=1;i<=k;i++){ h=h+a[i]; s++; } h-=v; cout<<"h="<<h<<' '; l=h/d; if(h%d!=0)l++; cout<<"l="<<l<<' '; v+=l*d; m+=l*b[s1];
题目 4017 [NOI 2024]登山
2024-09-22 18:00:44
|
|
题目 3927 [CSP 2023J]小苹果
2024-09-22 11:07:02
|
|
题目 3927 [CSP 2023J]小苹果
2024-09-22 11:06:45
|
|
hahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahha
题目 3927 [CSP 2023J]小苹果
2024-09-22 11:05:53
|
|
hahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahha
题目 3927 [CSP 2023J]小苹果
2024-09-22 11:05:50
|
|
hahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahha
题目 3927 [CSP 2023J]小苹果
2024-09-22 11:05:44
|
|
回复 @father :
hahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahahahahahahahaahhahahahahahahahahahaha
题目 3927 [CSP 2023J]小苹果
2024-09-22 11:05:37
|
|
hahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahahaha
题目 3927 [CSP 2023J]小苹果
2024-09-22 11:03:19
|
|
三年oi一场空,不开long long三年oi一场空,不开long long 见祖宗三年oi一场空,不开long long 见祖宗三年oi一场空,不开long long 见祖宗三年oi一场空,不开long long 见祖宗三年oi一场空,不开long long 见祖宗三年oi一场空,不开long long 见祖宗三年oi一场空,不开long long 见祖宗三年oi一场空,不开long long 见祖宗三年oi一场空,不开long long 见祖宗三年oi一场空,不开long long 见祖宗三年oi一场空,不开long long 见祖宗三年oi一场空,不开long long 见祖宗三年oi一场空,不开long long 见祖宗三年oi一场空,不开long long 见祖宗三年oi一场空,不开long long 见祖宗三年oi一场空,不开long long 见祖宗三年oi一场空,不开long long 见祖宗三年oi一场空,不开long long 见祖宗三年oi一场空,不开long long 见祖宗三年oi一场空,不开long long 见祖宗三年oi一场空,不开long long 见祖宗三年oi一场空,不开
题目 3927 [CSP 2023J]小苹果
2024-09-22 11:03:08
|