delete pics to save space

This commit is contained in:
2023-08-03 09:22:52 +08:00
commit de60cd6ed4
1334 changed files with 66221 additions and 0 deletions

15
1.1147.cpp Normal file
View File

@ -0,0 +1,15 @@
#include<cstdio>
int l,r,sum,M;
int main()
{
scanf("%d",&M);
l=r=sum=1;
while(r<M)
{
while(sum+r+1<=M) sum+=++r;
if(sum==M) printf("%d %d\n",l,r);
sum-=l++;
if(l>r) r=sum=l;
}
return 0;
}