Source_Code
stringlengths
69
484k
IR_Original
stringlengths
2.05k
17.9M
#include <stdio.h> int main(){ int i,j,a,b,c; scanf("%d",&a); scanf("%d",&b); scanf("%d",&c); j=0; for(i=a;i<=b;++i){ if(c%i==0){ j++; } } printf("%d\n",j); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_352742/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_352742/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void){ int a,b,c,i,cnt = 0; scanf("%d %d %d",&a,&b,&c); for(i = a;i <= b;i++){ if(c % i == 0) cnt++; } printf("%d\n",cnt); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_352786/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_352786/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void){ int a,b,c,i; int count=0; scanf("%d%d%d",&a,&b,&c); for(i=a; i<=b; i++){ if(c%i == 0)count++; } printf("%d\n",count); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_352829/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_352829/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(){ int a, b, c, i, sam=0; scanf("%d %d %d",&a,&b,&c); for(i=a; i<=b; i++){ if(c%i==0){ sam++; } } printf("%d\n",sam); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_352872/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_352872/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(){ int a,b,x,i=0; scanf("%d %d %d",&a,&b,&x); while(a<=b){ if(x%a ==0) i++; a++; } printf("%d\n",i); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_352915/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_352915/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(int argc, char const *argv[]) { int a,b,c,i,tmp; scanf("%d%d%d",&a,&b,&c); for ( tmp = a; tmp <= b; tmp++) { if(c % tmp == 0){ i++; } } printf("%d\n",i); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_352959/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_352959/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void){ int x,y,z,i; int n =0; scanf("%d %d %d",&x,&y,&z); for( i=x; i<=y; i++ ){ if( z%i == 0 ) n++; } printf("%d\n",n); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_353000/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_353000/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void){ int x,a,b,c,count; scanf("%d %d %d",&a,&b,&c); count = 0; for ( x =a; x <= b; x++){ if(c%x == 0 ) { count++; } } printf("%d\n",count); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_353044/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_353044/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void){ int a, b, c; int k; int n; scanf("%d %d %d",&a,&b,&c); n = 0; for (k = a; k <= b; k++) { if (c % k == 0) n++; } printf("%d\n", n); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_353088/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_353088/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void) { int a, b, c, d, i; scanf("%d %d %d", &a, &b, &c); d = 0; for(int i = a; i <= b; i++){ if(0 == c % i){ d += 1; } else if(0 != c % i){ } } printf("%d\n", d); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_353130/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_353130/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { int ans= 0, a,b,c; scanf("%d %d %d",&a, &b, &c); for (int i = a ; i <=b; i++) { if(c%i == 0){ ans++; } } printf("%d\n", ans); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_353174/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_353174/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main() { int a,b,c,x,y=0; scanf("%d%d%d",&a,&b,&c); for(x=a;x<=b;x++) { if(c%x==0) y++; } printf("%d\n",y); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_353217/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_353217/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<stdlib.h> #include<math.h> #include<string.h> #include<stdbool.h> #include<assert.h> typedef long long ll; typedef long double ld; #define rep(i,l,r)for(ll i=(l);i<(r);i++) #define repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k)) #define rrep(i,l,r)for(ll i=(l);i>=(r);i--) #define INF (1LL<<60) #defin...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_353260/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_353260/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<stdlib.h> #include<string.h> int main(){ int a,b,c; int count; scanf("%d%d%d", &a, &b, &c); for(int i = a ; i <= b ; i++){ if(c % i == 0){ count++; } } printf("%d\n", count); return 0 ; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_353303/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_353303/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { int a,b,c,i,cnt=0; scanf("%d%d%d",&a,&b,&c); for(i=a;i<=b;i++) { if(c%i==0)cnt++; } printf("%d\n",cnt); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_353354/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_353354/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void){ int a,b,c,x,y,i=0; scanf("%d %d %d",&a,&b,&c); for(x=a;x<=b;x++){ y=c%x; if(y==0){ i++; } } printf("%d\n",i); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_353404/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_353404/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main (void){ int a,b,c,i; int count=0; scanf("%d %d %d",&a,&b,&c); for(i=a;i<=b;i++){ if(c%i==0){ count++; } } printf("%d\n",count); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_353448/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_353448/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void) { int a,b,c,n=0; scanf("%d %d %d", &a,&b,&c); for (int x = a; x <= b; x++) { if (c%x==0) { n++; } } printf("%d\n",n); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_353491/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_353491/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void){ int a,b,c; int ans = 0; scanf("%d %d %d",&a,&b,&c); for(int i=a; i<=b; i++) { //printf("%d\n",i); if(c % i == 0) { ans++; } } printf("%d\n",ans); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_353534/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_353534/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void){ int a, b, c, d=0; int i; scanf("%d %d %d", &a, &b, &c); for(i=a; i<=b; i++){ if(c%i==0){ d++; } } printf("%d\n", d); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_353578/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_353578/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { int a, b, c, d, n; d = 0; scanf("%d %d %d", &a, &b, &c); for (n = a; n <= b; n++) { if (c % n == 0) { d++; } else; } printf("%d\n", d); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_353628/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_353628/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <stdint.h> // int64_t #define max(a,b) ((a) > (b) ? (a) : (b)) #define min(a,b) ((a) > (b) ? (b) : (a)) int get_int2(int *a1, int *a2) { scanf("%d %d", a1, a2); return 0; } int get_str(char *str, int size) { char format[100]; if (size ==...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_353671/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_353671/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.point2d = type { i3...
#include<stdio.h> int main(){ int b,c,d; scanf("%d %d %d",&b,&c,&d); if(b==1&&c==0&&d==0){printf("Close\n");} else if(b==0&&c==1&&d==0){printf("Close\n");} else if(b==1&&c==1&&d==0){printf("Open\n");} else if(b==0&&c==0&&d==1) {printf("Open\n");} else printf("Close\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_353714/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_353714/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(){ int a, b, c; scanf("%d%d%d",&a,&b,&c); if(a==1 && b==1 && c==0 || c==1){ printf("Open\n"); } else printf("Close\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_353772/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_353772/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <inttypes.h> #include <stdlib.h> #include <string.h> #include <math.h> typedef uint64_t uint64; typedef uint32_t uint32; typedef int64_t int64; typedef int32_t int32; #define finc(i,a,b) for(int32 i=(a);i<=(b);i++) #define fdec(i,a,b) for(int32 i=(b)+1;i-->...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_35383/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_35383/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include<stdio.h> int minof(int min, int x) { min = (min < x) ? min:x; return min; } int slove(int, int); int slove(int a, int b) { int i, j, k, l, o, p, min, temp, d[4] = {}; min = 268435456; for(i = 1; i * i <= a; i += 1) { if(a % i == 0) { for(k = 1; k * k <= b; k += 1) { if(b % k == ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_353873/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_353873/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #define ll long long #define rep(i,l,r)for(ll i=(l);i<(r);i++) #define repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k)) #define INF ((1LL<<62)-(1LL<<31)) #define max(p,q)((p)>(q)?(p):(q)) #define min(p,q)((p)<(q)?(p):(q)) #define bit(n,m)(((n)>>(m))&1)...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_353930/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_353930/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int table[101],temp,frag,n; void search(){ int k; for(k=3; k<=n; k++) if(table[k]%2 != 0 || table[k] == 0) frag=1; for(k = 1; k <=2; k++) if(table[k] != 1) frag = 1; } int main(){ int i,j,A,B; for(i=0; i<101; i++){ table[i]=0; } n = 2; while(scanf("%d%d",&A,&B)!...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_354001/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_354001/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @n = dso_local local_unname...
#include<stdio.h> #include<string.h> int main(){ int t; scanf("%d",&t); while(t--){ long long int n; scanf("%lld",&n); char s[n+1]; scanf("%s",s); int i,j,p,c=0; int l=strlen(s); for(i=0;i<l-1;i++){ if((s[i]!=s[i+1])){c++;} } int ans=(n-c)/2; printf("%d\n",ans); } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_35406/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_35406/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> #include <string.h> int main(){ char s[200001]; scanf("%s", s); int i, count = 0; for(i = strlen(s) - 1; s[i] != 'Z'; i--){ count++; } for(i = 0; s[i] != 'A'; i++){ count++; } printf("%llu\n", strlen(s) - count); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_354102/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_354102/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> int main(void) { char s[200005]; scanf("%s",s); int i=0;//文字数 while(strncmp(&s[i], "\0", 1)!=0) i++; int a=0, z=i-1; while(strncmp(&s[a], "A", 1)!=0) a++; while(strncmp(&s[z], "Z", 1)!=0) z--; printf("%d", z-a+1); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_354153/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_354153/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { char s[200001]; int i,a,b; scanf("%s",s); for (i = 0;i < sizeof(s);i++) { if (s[i] == 'A') { a = i; break; } } for (i = 0;;i++) { if (s[i] == 'Z') { b = i; } if (s[i] == '\0') { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_354197/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_354197/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { char s[300000]; int a,z,i=0; scanf("%s",s); for(i = 0;s[i] != 'A';i++){} a = i + 1; for(i = 200001;s[i] != 'Z';i--){} z = i + 1; printf("%d\n",z-a+1); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_354247/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_354247/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
// AOJ 1169 The Most Powerful Spell // 2018.4.17 bal4u #include <stdio.h> #include <stdlib.h> #include <string.h> #define QMAX 2500 typedef struct { char s; short t; char *lab; } QUE; QUE que[QMAX]; int qsize; #define PARENT(i) ((i)>>1) #define LEFT(i) ((i)<<1) #define RIGHT(i) (((i)<<1)+1) void min_heapify(int ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_354290/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_354290/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.QUE = type { i8, i1...
#include<stdio.h> #include<string.h> int main(void){ char s[120]; int len,i,cnt; scanf("%s",&s); len = strlen(s); i = 0; cnt = 0; while(i < len-i-1){ if(s[i] != s[len-i-1]){ cnt++; } i++; } printf("%d",cnt); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_354333/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_354333/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void){ char s[101]; scanf("%s",s); int i,len=0,hug=0; for(i=0;s[i]!='\0';i++) len++; for(i=(len+1)/2;i<len;i++) if(s[i]!=s[len-i-1]) hug++; printf("%d",hug); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_354399/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_354399/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<math.h> #include<string.h> #define ll long long int void sort(ll a[],ll n){ ll i,j,temp; for(i=0;i<n;i++){ for(j=0;j<n;j++){ if(a[i]<a[j]){ temp=a[i]; a[i]=a[j]; a[j]=temp; } } } } int main(){ char a[100000]; ll i,cnt,n;...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_354441/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_354441/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<string.h> int main(){ char S[100]; int S_length; int i; int count = 0; scanf("%s", S); S_length = strlen(S); for(i=0;i<S_length/2;i++){ if(S[i] != S[S_length - i - 1]){ count++; } } printf("%d", count); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_354485/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_354485/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> int Check(char *s,int len){ int t,i; t = 0; for(i=0; i<(len/2); i++){ if(s[i] != s[len-i-1]) t++; } return t; } int main(void){ char St[100]; int a,len; scanf("%s", St); len = strlen(St); a = Check(St,len); printf("%d" ,a); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_354535/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_354535/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<string.h> int main(void) { int count=0,len,i; char str[128]; fgets(str,sizeof(str),stdin); len = strlen(str)-1; for(i=0;i < len/2;i++) { if(str[i] != str[len-i-1]) { count++; } } printf("%d",count); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_354586/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_354586/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @stdin = external local_unn...
/* * main.c * * Created on: 2019/07/21 * Author: family */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> int main() { char S[101] = {0}; int len = 0, i = 0, ans = 0; scanf("%s", S); len = strlen(S); for (i = 0; i < len/2; i++) { //printf("s=%c, e=%c\n", S[i], S[len-1-i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_354629/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_354629/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<stdlib.h> #define m 1000000007u typedef long long unsigned llu; typedef unsigned u; u F[111111],P[111111]; int main() { u n,i; scanf("%u",&n); P[0]=1; for(i=0;++i<=n;P[i]=27*(llu)P[i-1]%m)F[i]=(20*(llu)P[i-1]+7*(llu)F[i-1])%m; printf("%u\n",F[n]); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_35468/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_35468/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include<stdio.h> int main() { int n,count1=0,count2=0,j; scanf("%d",&n); int arr[n]; for(int i=0;i<n;i++) { scanf("%d",&arr[i]); } for(int i=0;i<n;i++) { if((arr[i]==(i+1))) { count1++; } if(arr[i]!=(i+1)) { count2...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_354722/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_354722/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<string.h> #include<math.h> void swap (int *x, int *y) { int temp; // 値を一時保存する変数 temp = *x; *x = *y; *y = temp; } /*** * pivotを決め、 * 全データをpivotを境目に振り分け、 * pivotの添え字を返す ***/ int partition (int array[], int left, int right) { int i, j, pivot; i = left; j = right + 1; pivot ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_354766/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_354766/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<math.h> #include<stdlib.h> int main(){ int n, i, cont=0; int vet[51]; scanf("%d", &n); for(i=0; i<n; ++i){ scanf("%d", &vet[i]); if(vet[i] != i+1) ++cont; } if(cont==2|| cont==0) printf("YES"); else printf("NO"); printf("\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_354809/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_354809/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
// Ver19.03 #include <stdio.h> #include <string.h> #include <stdlib.h> #include <math.h> #define INF (1 << 29) * 2 #define LLINF 4545454545454545454 #define MOD 1000000007 #define ll long long #define ull unsigned long long #define MAX(a, b) ((a) > (b) ? (a) : (b)) #define MIN(a, b) ((a) < (b) ? (a) : (b)) int upll(con...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_354852/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_354852/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #define N 50 int issorted(int *aa, int n) { int i; for (i = 0; i < n - 1; i++) if (aa[i] > aa[i + 1]) return 0; return 1; } int main() { static int pp[N]; int n, i, j; scanf("%d", &n); for (i = 0; i < n; i++) scanf("%d", &pp[i]); if (issorted(pp, n)) { printf("YES\n"); return ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_354896/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_354896/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @main.pp = internal global ...
#include<stdio.h> #define FOR(n) for(int i=0;i<n;i++) #define PRN(n) printf("%d\n",n) #define PRS(s) printf("%s\n",s) int main(void){ int n,cnt=0; scanf("%d",&n); FOR(n){ int a; scanf("%d",&a); if(a!=i+1)cnt++; } if(cnt<3){ PRS("YES"); }else{ PRS("NO"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_354953/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_354953/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void){ int i, N, x, sum=0; scanf("%d", &N); for(i=1;i<=N;i++){ scanf("%d", &x); if(i!=x) sum++; } if(sum>=3){printf("NO");} else{printf("YES");} }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_354997/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_354997/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #include <math.h> int main() { int seq[50], len, i, not_inorder=0; scanf("%d", &len); for (i = 0; i < len; i++) { scanf("%d", &seq[i]); } for (i = 0; i < len; i++) { if (seq[i] != i+1) { not_inorder++; } } if (not_inorder == 2 || not_inorder == 0) { prin...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_355039/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_355039/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void){ int N; scanf("%d", &N); int a[N]; int cnt = 0; for (int i = 0; i < N; i++) { scanf("%d", &a[i]); if(a[i] != i+1) cnt++; } if(cnt <= 2) printf("YES\n"); else printf("NO\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_355082/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_355082/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int a[9]; int b[9]; int main(){ for(int i=0;i<9;i++)scanf("%d",a+i); int n; scanf("%d",&n); for(int _=0;_<n;_++){ int t; scanf("%d",&t); for(int i=0;i<9;i++)if(a[i]==t)b[i]=1; } if( b[0]&&b[3]&&b[6] ||b[1]&&b[4]&&b[7] ||b[2]&&b[5]&&b[8] ||b[0]&&b[1]&&b[2] ||b[3]&&b[4]&&b...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_355125/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_355125/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void){ int a[3][3]; int i,j,k; for(i=0;i<3;i++){ for(j=0;j<3;j++){ scanf("%d",&a[i][j]); } } int n; scanf("%d",&n); int b[n]; for(i=0;i<n;i++){ scanf("%d",&b[i]); } for(i=0;i<n;i++){ for(j=0;j<3;j++){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_355219/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_355219/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { int i, n, t; scanf("%d %d", &n, &t); if(n==1 && t==10) printf("-1"); else{ printf("%d", t); if(t!=10) for(i=0; i<n-1; i++) printf("0"); else for(i=1; i<n-1; i++) printf("0"); } printf("\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_35527/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_35527/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include<stdio.h> int main(void){ int a11, a12, a13, a21, a22, a23, a31, a32, a33; int n11, n12, n13, n21, n22, n23, n31, n32, n33; int N; int b[100]; int i; int j = 0; n11 = 0; n12 = 0; n13 = 0; n21 = 0; n22 = 0; n23 = 0; n31 = 0; n32 = 0; n33 = 0; scanf("%d %d %d", &a11, &a12, &a13); scanf("%d %d ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_355312/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_355312/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { int A[3][3]; for(int i = 0; i < 3; i++) { for(int j = 0; j < 3; j++) { scanf("%d", &A[i][j]); } } int N = 0; scanf("%d", &N); int b[N]; for(int i = 0; i < N; i++) { scanf("%d", &b[i]); } for(int i = 0; i < 3; i+...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_355356/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_355356/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<string.h> #include<math.h> int main() { long long a,b,c,d,e,f,g,h,i,j,k,l,m; scanf("%lli",&a); long long z[a]; for(b=0;b<a;b++) { scanf("%lli",&c); z[c-1]=b; } long long x[a]; for(b=0;b<a;b++) { scanf("%lli",&c); x[c-1]=b; } long long y[a]; for(b=0;b<a;b++)y[b]=0; for(b=0...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_3554/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_3554/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr co...
#include <stdio.h> int main(){ long long x; int y, z; scanf("%lld %d.%d", &x, &y, &z); printf("%lld\n",x*(y*100+z)/100); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_355457/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_355457/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> int main() { int t; long long int x, y; scanf("%d", &t); while (t--) { scanf("%lld%lld", &x, &y); printf("%lld %lld\n", x * x * -1, y * y); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_35550/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_35550/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include<stdio.h> int main(){ long long a,b,c; scanf("%lld %lld.%lld",&a,&b,&c); printf("%lld\n",a*(b*100+c)/100); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_355543/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_355543/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <stdlib.h> #define N 100000 #define MAX 1000000000000000000 int main (void) { unsigned long long a, b_100; double b; char s[10]; int i, dot = 0; scanf("%llu %s", &a, s); for (i = 0; s[i] != '\0'; i++) { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_355587/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_355587/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main() { int n; scanf("%d",&n); long long int u,v,x,y; for(int i=1;i<=n;i++){ scanf("%lld %lld",&u,&v); y=-v*v; x=u*u; printf("%lld %lld\n",x,y); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_35563/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_35563/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> char str[201]; char hyou[30] = "abcdefghijklmnopqrstuvwxyz.?! "; int main() { int i, flag; while(scanf("%s", str) != EOF) { flag = 0; for(i = 0; flag == 0 && str[2 * i] != 0; ++ i) { if('1' <= str[2 * i] && str[2 * i] <= '6' && '1' <= str[2 * i + 1] && str[2 * i + 1] <= '5') str[i] = hyou[5 ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_355680/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_355680/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @hyou = dso_local local_unn...
#include<stdio.h> typedef long long int lli; int main() { char s[6]; scanf("%s", &s); if(s[2]==s[3] && s[4]==s[5]){ printf("Yes\n"); } else{ printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_355730/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_355730/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(){ char s[7]; scanf("%s",s); if((s[2]==s[3] && s[4]==s[5])){ printf("Yes\n"); }else{ printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_355774/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_355774/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void){ char coffee[6]; scanf("%s",coffee); if(coffee[2]==coffee[3] && coffee[4]==coffee[5]) printf("Yes\n"); else printf("No\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_355817/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_355817/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void){ char s[10]; scanf("%s", s); if((s[2] == s[3]) && (s[4] == s[5])) puts("Yes"); else puts("No"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_355860/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_355860/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main() { char s[6]; scanf("%s",&s); if(s[2]==s[3] && s[4]==s[5]) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_355918/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_355918/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { char S[5]; scanf("%s", S); if (S[2] == S[3] && S[4] == S[5]) { printf("Yes"); } else { printf("No"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_355961/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_355961/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ char s[6]; scanf("%s",s); if(s[2]==s[3] && s[4]==s[5]){ printf("Yes\n"); }else{ printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_356010/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_356010/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include<string.h> #define N 6 int main() { char s[N],l; scanf("%s", &s); l=strlen(s); if(l==6){ for(int i=0;i<l;i++){ if(s[i]>='a' && s[i]<='z'){ if(s[l-1]==s[l-2] && s[l-3]== s[l-4]){ printf("Yes"); break; }els...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_356054/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_356054/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { char S[5]; scanf("%s",S); if(S[2]==S[3]&&S[4]==S[5]){ printf("Yes\n"); } else{ printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_356111/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_356111/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ char s[6],a,b,c,d; scanf("%s",s); a=s[2];b=s[3];c=s[4];d=s[5]; if(c==d && a==b){ printf("Yes\n"); }else{ printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_356162/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_356162/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { char string[7]; scanf("%s", string); if(string[2]==string[3] && string[4]==string[5]) { printf("Yes"); } else { printf("No"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_356205/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_356205/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> #include <stdlib.h> int main(void){ char S[7]; scanf("%s", &S); if (S[2] == S[3] && S[4] == S[5]){ printf("Yes"); } else { printf("No"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_356263/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_356263/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main() { char s[6]; scanf("%s",s); if (s[2]==s[3]) { if (s[4]==s[5]) printf("Yes\n"); else printf("No\n"); } else printf("No\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_356306/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_356306/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main() { int n,z=0,e=0,r=0,o=0,nn=0;scanf("%d",&n); char a; for(int i=0;i<=n;i++) { scanf("%c",&a); if(a=='z'){z++;} if(a=='e'){e++;} if(a=='r'){r++;} if(a=='o'){o++;} if(a=='n'){nn++;} } for(int i=0;i<nn;i++){printf("1 ");} ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_35635/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_35635/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <math.h> #include <stdbool.h> #define LL long long #define DB double #define MIN(x,y) ((x)<(y)?(x):(y)) #define MAX(x,y) ((x)<(y)?(y):(x)) #define FOR(i,a,n) for(i=a;i<n;i++) #define rep(i,n) FOR(i,0,n) #define MOD 1000000007 //#define MOD 998244353 #d...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_356393/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_356393/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @fact = dso_local local_unn...
#include<stdio.h> int func(int,int); int main(){ int N; int result=0; while(1){ scanf("%d",&N); if(N==0)break; if(N>=3) result=func(N,0); printf("%d\n",result); } return 0; } int func(int x,int i){ int z; int j=1; int count=0; z=x; while(1){ x-=i; if(x==0){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_356436/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_356436/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #include <string.h> int main(void) { int n, i; scanf("%d",&n); char s[n+1]; scanf("%s",s); int a=0, b=0; for(i=0;s[i];i++) { if(s[i]=='z') a++; else if(s[i]=='n') b++; } if(b>0) { for(i=0;i<b;i++) printf("%d ",1); } if(a>0)...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_35648/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_35648/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include<stdio.h> int main() { int a,i,n=0,z=0; scanf("%d",&a); char s[a+1]; scanf("%s",s); for(i=0;i<a;i++) { if(s[i]=='n') n++; if(s[i]=='z') z++; } for(i=0;i<n;i++) printf("1 "); for(i=0;i<z;i++) printf("0 "); return 0; }...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_35653/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_35653/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> int month[]={-99999,20,19,20,19,20,19,20,19,20,19}; int diff(int y,int m,int d){ int sum=0,i; for(i=y+1;i<=999;i++){ if(i%3==0){ sum+=200; }else{ sum+=195; } } for(i=m+1;i<=10;i++){ if(y%3==0){ sum+=20; }else{ sum+=month[i]; } } if(y%3==0) sum+=20-d+1; else sum+=m...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_356588/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_356588/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @month = dso_local local_un...
#include<stdio.h> long long int gcm(long long int x,long long int y){ long long int r,tmp; if(x<y){ tmp=x; x=y; y=tmp; } r=x%y; while(r!=0){ x=y; y=r; r=x%y; } return(y); } int main(){ int T; scanf("%d",&T); int q,i; long long int A[T],B[T],C[T],D[T]; long long int a,b,c,d,gcm_bd; for(q=0;q...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_356645/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_356645/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> int main (void){ long long int N,K; long long int ans=0; int over; int max; scanf("%lld %lld",&N,&K); if (K==0) { ans=N*N; }else{ for (int i = K+1; i <=N; i++) { ans+=...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_356689/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_356689/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <math.h> typedef struct Point{ double x; double y; }P; void koch(int n, P a,P b){ if(n == 0) return; P s,t,u; double th = M_PI*60.0/180.0; s.x = (2.0*a.x+1.0*b.x)/3.0; s.y = (2.0*a.y+1.0*b.y)/3.0; t.x = (1.0*a.x+2.0*b.x)/3.0; t.y = (1.0*a.y+2.0*b.y)/3.0; u.x = (t.x-s.x...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_356731/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_356731/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<math.h> #include<string.h> #define RtD(radian) ((radian)*(180.0f/M_PI)) #define DtR(degrees) ((degrees)*(M_PI/180.0f)) void TESTmoveXY( double x, double y, double mx, double my, double si, double co ) { double xy[3][1] = { {x}, {y}, {1}, };...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_356775/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_356775/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<math.h> typedef struct{ double x,y; }Point; void koch(int,Point,Point); int main(){ Point a,b; int n; scanf("%d",&n); a.x = a.y = 0; b.x = 100; b.y = 0; printf("%f %f\n",a.x,a.y); koch(n,a,b); printf("%f %f\n",b.x,b.y); return 0; } void koch(int n,Point a,Point ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_356818/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_356818/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<math.h> void getCurve(double l[2], double r[2], int i){ if( i <= 0 ){ return; } double s[2], t[2], u[2]; s[0] = l[0] + (r[0]-l[0])/3; s[1] = l[1] + (r[1]-l[1])/3; t[0] = l[0] + (r[0]-l[0])*2/3; t[1] = l[1] + (r[1]-l[1])*2/3; double dx = t[0]-s[0], dy = t[1]-s[1]; u[0] = s[0] + dx * c...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_356861/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_356861/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<math.h> #define N 6 typedef struct{ double x; double y; }XY; void koch(int,XY,XY); int main() { int n,i; XY p1 = {0.0,0.0},p2 = {100.0,0.0}; scanf("%d",&n); printf("%.8f %.8f\n",p1.x,p1.y); koch(n,p1,p2); printf("%.8f %.8f\n",p2.x,p2.y); return 0; } void ko...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_356904/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_356904/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <math.h> typedef struct{ double x; double y; } Point; void koch(int, Point, Point); int main(int argc, char const *argv[]) { Point p1,p2; int n; scanf("%d",&n); p1.x = 0; p1.y = 0; p2.x = 100; p2.y = 0; printf("%.8f %.8f\n",p1.x,p1.y); koch(n,p1,p2); printf("%....
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_356948/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_356948/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<math.h> #define PI 3.141592653589 double th = 60*PI/180; void fanction(int n,double p1[],double p2[]){ double s[2],u[2],t[2]; s[0]=(2*p1[0]+p2[0])/3; s[1]=(2*p1[1]+p2[1])/3; t[0]=(p1[0]+2*p2[0])/3; t[1]=(p1[1]+2*p2[1])/3; u[0]=(t[0]-s[0])*cos(th)-(t[1]-s[1])*sin(th)+s[0]; u[1]=...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_357004/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_357004/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @th = dso_local local_unnam...
#include <stdio.h> #include <math.h> struct Point{ double x; double y; }; void koch(int n,struct Point a,struct Point b){ if(n == 0){ return; } struct Point s,t,u; double th = M_PI * 60.0 / 180.0; s.x = (2.0 * a.x + 1.0 * b.x) / 3.0; s.y = (2.0 * a.y + 1.0 * b.y) / 3.0; t.x = (1.0 * a.x + 2.0...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_357055/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_357055/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <math.h> struct point{ double x,y; }; void kock(int n,struct point a,struct point b){ struct point s,t,u; double th=M_PI*60.0/180.0; if(n==0) return ; s.x=(2.0*a.x+1.0*b.x)/3.0; s.y=(2.0*a.y+1.0*b.y)/3.0; t.x=(1.0*a.x+2.0*b.x)/3.0; t.y=(1.0*a.y+2.0*b.y)/3.0; u.x=(t.x-s.x)*cos(th...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_357099/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_357099/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<math.h> typedef struct{ double x; double y; }Ten; void kock(int,Ten,Ten); int main(){ int n; Ten p1,p2; p1.x=0.0; p1.y=0.0; p2.x=100.0; p2.y=0.0; scanf("%d",&n); printf("%.8f %.8f\n",p1.x,p1.y); kock(n,p1,p2); printf("%.8f %.8f\n",p2.x,p2.y); return 0; } void...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_357141/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_357141/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <math.h> typedef struct { double x; double y; }point; void koch(int n, point p1, point p2){ if(n == 0){ return; } else{ point s, t, u; double rad = M_PI * 60 / 180; s.x = (2 * p1.x + p2.x) / 3; s.y = (2 * p1.y + p2.y) / 3; t.x = (p1.x + 2 * p2.x) / 3; t.y = (p1.y + 2 * p...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_357185/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_357185/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <assert.h> #include <stdlib.h> #include <string.h> #include <math.h> struct Point { double x; double y; }; static double cos_60; static double sin_60; static void init_sin_cos(void){ cos_60 = cos(M_PI / 3.0); sin_60 = sin(M_PI / 3.0); return; } static voi...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_357235/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_357235/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.Point = type { doub...
#include <stdio.h> #include <math.h> typedef struct{ double x; double y; } Point; void KOCK(int n, Point p1, Point p2){ Point s,t,u; if(n == 0) return; s.x = (2*p1.x + 1*p2.x)/3; s.y = (2*p1.y + 1*p2.y)/3; t.x = (1*p1.x + 2*p2.x)/3; t.y = (1*p1.y + 2*p2.y)/3; u.x = (((t.x - s.x)*cos(M_PI/3)) -...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_357286/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_357286/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<math.h> #define PI 3.141592653 void koch(int n, double p1x,double p1y,double p2x,double p2y){ if(!n)return; double sx,sy,tx,ty,ux,uy; sx = (2*p1x+p2x)/3; sy = (2*p1y+p2y)/3; tx = (p1x+2*p2x)/3; ty = (p1y+2*p2y)/3; ux = (tx-sx)*cos(PI/3)-(ty-sy)*sin(PI/3)+sx; uy = (tx-sx)*...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_357343/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_357343/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<math.h> typedef struct{ double x; double y; }pt; void koch(int,pt,pt); int main(){ pt pt1 = {0.0, 0.0}, pt2 = {100.0, 0.0}; int n; scanf("%d", &n); printf("%f\t%f\n", pt1.x, pt1.y); koch(n, pt1, pt2); printf("%f\t%f\n", pt2.x, pt2.y); return 0; } void koch(int n,pt pt1,pt pt2)...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_357387/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_357387/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #define ll long long ll bush(ll a,ll b,ll c,ll d) { if((a-c)<(b-d)) return (b-d); else return (a-c); } int main() { int t,n,i; ll a[50],b[50],k1,k2,s; scanf("%d",&t); while(t--) { s=0; scanf("%d",&n); for(i=0;i<n;i++) scanf("%lld",&a[i]); for(i=0;i<n;i++) ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_35743/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_35743/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...