Compare commits

..

No commits in common. "259fbeaeaf12bd42f6afdd0866e5dbb813428ae9" and "6429be5a4b0ac5b108cff1f4424e59bcb4dfe083" have entirely different histories.

12 changed files with 1 additions and 108 deletions

View File

@ -1,5 +0,0 @@
[{000214A0-0000-0000-C000-000000000046}]
Prop3=19,2
[InternetShortcut]
URL=http://www.51nod.com/Login.html?oldhref=http%3A%2F%2Fwww.51nod.com%2FContest%2FContestDescription.html%23contestId%3D987%26randomCode%3D716111#oldhref=http:%2F%2Fwww.51nod.com%2FContest%2FContestDescription.html%23contestId=987&randomCode=716111
IDList=

BIN
8.16/P-LargeDivision/P.pdf (Stored with Git LFS)

Binary file not shown.

View File

@ -1,13 +0,0 @@
# P - Large Division
* https://vjudge.net/contest/509210#problem/P
### 题意
高精除单精能否整除
### 做法
高精除单精
### 关键词
高精除单精
### 易错点
* long long
* 初始化 a[0]=0;//important?
### 工具箱
* 高精除单精 https://www.cnblogs.com/lcez56jsy/p/10679029.html

View File

@ -1 +0,0 @@
#

View File

@ -1,46 +0,0 @@
#include <iostream>
#include<cstdio>
#include<algorithm>
#include <cmath>
#include <cstring>
using namespace std;
const int S=205;
char s[S];
long long a[S];//´Ó1¿ªÊ¼
int main()
{
int t;
int t1=0;
int len;
long long b;
char c1;
scanf("%d",&t);
while(t--)
{
a[0]=0;//important
scanf("%s%lld",&s,&b);//lld
len=strlen(s);
for(int i=1;i<len; i++)
{
a[len-i]=s[i]-'0';
}
if(s[0]=='-')len--;
else a[len]=s[0]-'0';
if(b<0)b*=-1;
for(int i=len;i>0; i--)
{
a[i]%=b;
a[i-1]+=(a[i]*10);
// printf("%d ",a[i-1]);
}
if(a[0]==0)
{
printf("Case %d: divisible\n",++t1);
}
else
{
printf("Case %d: not divisible\n",++t1);
}
}
return 0;
}

View File

@ -1,27 +0,0 @@
//只是高精除单精
#include<iostream>
#include<cstdio>
#include<cmath>
#include<cstring>
using namespace std;
char e[1001];
int n,a[1001],c[1001];
int main()
{
scanf("%s",e);
int k=strlen(e);
scanf("%d",&n);
for(int i=k;i>=k;i--)
{a[i]=e[k-i]-48;
}
for(int i=k;i>=1;i--)
{
c[i]=a[i]/n;
a[i]%=n;
a[i-1]+=a[i]*10;
}
while(c[k]==0&&k>1)k--;
for(int i=k;i>=1;i--)
printf("%d",c[i]);
}

View File

@ -1,7 +0,0 @@
## z:\Chao\src\Template\test\in.txt
2020/03/14 ÖÜÁù 11:41:28.68
Hello Easy C++ project!
-----------------------------------------------
Process exited after 200 ms with return value 0

BIN
8.18.威尔逊定理/威尔逊定理.pdf (Stored with Git LFS)

Binary file not shown.

View File

@ -3,15 +3,13 @@
#include<algorithm>
#include <cmath>
using namespace std;
const int N=1e8+5;
int main()
{
int t;
int t1=0;
int n;
scanf("%d",&t);
while(t--)
{
int n;
scanf("%d",&n);
for(int i=1;i<=n; i++)
{