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

18
1.1014.cpp Normal file
View File

@ -0,0 +1,18 @@
#include<cstdio>
typedef long long LL;
int main()
{
LL L=1,R,M,n,a;
scanf("%lld",&n);
R=n;
while(L<R)
{
M=(L+R)/2;
if(M*(M+1)/2<n) L=M+1;
else R=M;
}
a=n-L*(L-1)/2;
if(L%2==0) printf("%lld/%lld\n",a,L+1-a);
else printf("%lld/%lld\n",L+1-a,a);
return 0;
}