Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am Jueast on github.
  • I am jueastwang (https://keybase.io/jueastwang) on keybase.
  • I have a public key whose fingerprint is 78FD CF5B C03F 4639 56E9 EB01 6120 19B6 CF0B 0A87

To claim this, I am signing this object:

@Jueast
Jueast / substact.c
Created November 13, 2014 23:20
substact two up to 80 digits int.
#include <stdio.h>
#include <string.h>
int main(void){
char a[100],b[100],result[100];
int i,j,k,signr = 1,state = 0;
scanf("%s",a);
scanf("%s",b);
for(i=80,j=strlen(a)-1,k = strlen(b)-1;i>=0;i--){//move the number
if(j>=0)
a[i] = a[j--] - '0';
@Jueast
Jueast / temp.c
Last active August 29, 2015 14:06
#include <stdio.h>
int k;
int main(void){
int x;
scanf("%d%d",&k,&x);
if (judge(x))
printf("YES.\n");
else
printf("NO.\n");
return 0;