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

View File

@ -0,0 +1,28 @@
#include<cstdio>
using namespace std;
/*
x<EFBFBD><EFBFBD>,סy<D7A1><79>;
x*(x+1)/2-2*y=n;
2*y+n=x*(x+1)/2;
2*y=x*(x+1)/2-n;
y=(x*(x+1)/2-n)/2;
*/
int main()
{
int n;
scanf("%d",&n);
for(int i=2;;i++)
{
if((i*(i+1)/2-n)%2==0)
{
int y=(i*(i+1)/2-n)/2;
if(y>0&&y<=i)
{
printf("%d %d\n",y,i);
return 0;
}
}
}
return 0;
}