Source_Code
stringlengths
69
484k
IR_Original
stringlengths
2.05k
17.9M
#include <stdio.h> int main(void) { // your code goes here int t,n,i; scanf("%d%d",&n,&t); if(t!=10) { for(i=0;i<n;i++) printf("%d",t); } else { if(n==1) printf("-1"); else printf("1"); for(i=0;i<n-1;i++) printf("0"); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_35473/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_35473/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,arr[100],i,count=0; scanf("%d",&n); for(i=0;i<n;i++) { scanf("%d",&arr[i]); if(arr[i]!=i+1) count++; } if (count<=2) { printf("YES"); } else printf("NO"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_354773/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_354773/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> int main(void){ int num; int *digital; scanf("%d",&num); digital=(int *)malloc(sizeof(int)*num); int i; int miss_count=0; for(i=0;i<num;i++){ scanf("%d",&digital[i]); if(digital[i]!=i+1){ mis...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_354816/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_354816/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, t, i; scanf("%d %d", &n, &t); if(n==1 && t==10) printf("-1"); else{ if(t==10) t=1; printf("%d", t); for(i=0; i<n-1; i++) printf("0"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_35486/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_35486/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 i,n,t; scanf("%d",&n); scanf("%d",&t); if(n==1 && t==10) { printf("-1\n"); return 0; } if(t==10) printf("1"); else printf("%d",t); for(i=1;i<n;i++) { printf("0"); } printf("\n"); retu...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_35491/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_35491/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; int p[50]; int i; int count = 0; scanf("%d",&n); for(i=1;i<=n;i++){ scanf("%d",&p[i]); if(p[i] != i){ count++; } } if(count<=2){ printf("YES\n"); } else { printf("NO\n"); } ret...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_355002/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_355002/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,c=0; scanf("%d",&N); int P[N],A[N]; for(i=0;i<N;i++){ scanf("%d",&P[i]); A[i] = i+1; } for(i=0;i<N;i++){ //printf("%d %d\n",P[i],A[i]); if(P[i]!=A[i]){ c++; } } //printf("%d\n",c); if(c==2 || c==0){ printf("YES"); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_355046/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_355046/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() { long long int n,t,i,c=0,s=1,u=9; scanf("%lld%lld",&n,&t); if(t==10) { if(n==1) printf("-1\n"); else{ printf("1"); for(i=1 ;i<n;i++) printf("0"); } } else for(i=0;i<n;i++) printf...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_35509/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_35509/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 n,i,a[3][3],c[3][3]={0}; for(i=0;i<3;i++){ for(int j=0;j<3;j++){ scanf("%d",&a[i][j]); } } scanf("%d", &n); int b[n],t=0; for(i=0;i<n;i++){ scanf("%d",&b[i]); } for(int i=0;i<3;i++){ for(int j=0;j<3;j++){ for(...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_355132/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_355132/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 s[10][10]; for(int i=0;i<3;i++){ for(int j=0;j<3;j++){ scanf("%d",&s[i][j]); } } int n; scanf("%d",&n); int b[30]; for(int i=0;i<n;i++){ scanf("%d",&b[i]); } for(int i=0;i<3;i++){ for(int j=0;j<3;j++){ for(int k=0;k<n...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_355183/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_355183/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 a1,a2,a3,b1,b2,b3,c1,c2,c3; int num; int k,n; int i=0; int x,y; int a=0; int bin=0; scanf("%d%d%d%d%d%d%d%d%d",&a1,&a2,&a3,&b1,&b2,&b3,&c1,&c2,&c3); int bingo[3][3]={{a1,a2,a3},{b1,b2,b3},{c1,c2,c3}}; scanf("%d", &num); n=num; whil...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_355226/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_355226/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[3][3]; int N; int B[10]; int bin[3][3]; int flg=0; for(int i = 0 ; i < 3 ; i++){ for(int j = 0 ; j < 3 ; j++){ scanf("%d",&A[i][j]); bin[i][j] = 0; } } scanf("%d",&N); f...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_355277/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_355277/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 <memory.h> #include <string.h> #define RESULT_LENGTH 100 int main(void) { int n, t; char result[RESULT_LENGTH]; memset((void *) result, '\0', RESULT_LENGTH); scanf("%d %d", &n, &t); switch (t) { case 2: { int ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_35532/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_35532/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 a[3][3],b[11]; int n,i,j,k,s=0; /*入力部*/ for(i=0;i<3;i++){ for(j=0;j<3;j++){ scanf("%d",&a[i][j]); } } scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&b[i]); } for(i=0;i<3;i++){ for(j=0;j<3;j++){ for(k=0;k<n;k++){ if(a[i][j]==b[k...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_355363/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_355363/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, A[15], B, C[15], i, j; for (i=0; i<9; i++) scanf("%d", &A[i]); scanf("%d", &N); for (i=0; i<9; i++) C[i]=0; for (i=0; i<N; i++) { scanf("%d", &B); for (j=0; j<9; j++) { if (B==A[j]) C[j]=1; } } if (C[0]*C[1]*C[2]...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_355406/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_355406/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> int main() { long long a,s,sum; double b; scanf("%lld %lf",&a,&b); s=b*100+0.1; sum=(a*s)/100; printf("%lld\n",sum); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_355464/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_355464/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> int main(void) { long long a, b2; double b; scanf("%lld %lf", &a, &b); b2 = (long long)round(b * 100.0); long long c = a * b2; printf("%lld\n", c/100); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_355507/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_355507/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(){ unsigned long long a; double b; scanf("%llu %lf",&a,&b); b = b * 1000; unsigned long long b_int = b; printf("%llu\n", a*b_int/1000); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_355550/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_355550/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> typedef unsigned long long ull; int main(void) { ull a; char b[5]; char c[4]; ull bb; ull r; scanf("%llu %s", &a, b); c[0] = b[0]; c[1] = b[2]; c[2] = b[3]; c[3] = '\0'; bb = (ull)atoi(c); /* bb = (ull)(b * 100....
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_355594/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_355594/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) { long double a, b, c; long long int d; scanf("%Lf%Lf", &a, &b); d = a * b; printf("%lld", d); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_355637/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_355637/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> // printf(), getc() #include <stdbool.h> const char NUL = '\0'; bool ope_line() { char oline[101]; const char letter[6][5] = {"abcde", "fghij", "klmno", "pqrst", "uvwxy", "z.?! "}; int c = getchar(); if (c == EOF) return false; if (c == '\n') return true; bool b_na = false; i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_355688/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_355688/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" @NUL = dso_local local_unna...
#include <stdio.h> int main(void){ // 自分の得意な言語で // Let's チャレンジ!! char str[100]; scanf("%s",str); if(str[2]==str[3] && str[4]==str[5]){ puts("Yes"); }else{ puts("No"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_355738/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_355738/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[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_355781/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_355781/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; char s[10]; 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_355824/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_355824/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 str[7]; scanf("%s", str); if(str[2]==str[3] && str[4]==str[5]) printf("Yes\n"); else printf("No\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_355868/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_355868/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_355925/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_355925/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[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_355976/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_355976/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[6]; //reads in string from stdin for (int i = 0; i < 6; i++) { scanf("%c", &s[i]); } //check if its coffee-like 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_356018/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_356018/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[6]; scanf("%s", S); if (S[2] != S[3] || S[4] != S[5]){ printf("No\n"); } else { printf("Yes\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_356061/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_356061/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],i; 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_356119/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_356119/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,z=0; char s[100000]; scanf("%d",&a); scanf("%s",s); for(int i=0;i<a;i++){ if(s[i]=='n') printf("1 "); else if(s[i]=='z'){ z++; } else{} } for(int i=0;i<z;i++){ printf("0 "); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_35617/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_35617/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() { int n; scanf("%d",&n); char a[n]; int i,l,c=0,c1=0,c2=0,c3=0,one=0,zero=0; scanf("%s",a); for(i=0;i<n;i++){ if(a[i]=='o'){ c++; } else if(a[i]=='n'){ c1++; } else if(a[i]=='e'){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_35622/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_35622/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> int ASC(const void *a,const void *b) { return *(int *)b - *(int *)a;//降順 } int main(void) { char s[7]; scanf("%s",s); if (s[2] == s[3] && s[4] == s[5]) { printf("Yes"); return 0; } printf("No"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_356270/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_356270/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 a[7]; scanf("%s",a); if(a[2]==a[3]&&a[4]==a[5]) printf("Yes"); else printf("No"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_356313/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_356313/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...
// ABC 160-A // 2020.3.28 bal4u #include <stdio.h> int main() { char S[10]; scanf("%s", S); puts(S[2] == S[3] && S[4] == S[5]? "Yes": "No"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_356357/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_356357/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,temp1=0,temp2=0,i; scanf("%d",&n); char a[n]; scanf("%s",a); for(i=0;i<n;i++) { if(a[i]=='n') temp1++; if(a[i]=='z') temp2++; } while(temp1--) { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_35640/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_35640/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 <stdlib.h> int main(void) { int a,i,j,ret; while(scanf("%d",&a), a){ ret = 0; for(i = 2;i <= 500;i++){ if ((a << 1) <= i * i) break; if (!((a << 1) % i) && (((a << 1) / i + i) & 1)) ret++; } printf("%d\n",ret); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_356443/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_356443/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 n; int cnt; void rec(int n0,int sum){ if(sum==n) cnt++; else if(sum>n); else rec(n0+1,sum+(n0+1)); } void start(){ for(int i=1;i<=((n-1)/2);i++){ rec(i,i); } } int main(void){ while(1){ scanf("%d",&n); if(n==0) break; cnt=0; start...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_356487/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_356487/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 global i32 0...
#include <stdio.h> int main(void){ int i, j, n ,y, m, d, result; scanf("%d", &n); for(i = 0; i < n; i++){ scanf("%d %d %d", &y, &m, &d); result = 0; for(j = y + 1; j < 1000; j++){ if(j % 3 == 0){ result += 10 * 20; } else{ result += 10 * (20 + 19) / 2; } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_356537/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_356537/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,i,j; int Y,M,D,day; int a=196471; scanf("%d",&n); for(i=0,day=0;i<n;i++,day=0){ scanf("%d %d %d",&Y,&M,&D); for(j=1;j<Y;j++){ if(j%3==0){ day+=200; }else{ day+=195; } } for(j=1;j<M;j++){ if(Y%3==0||j%2==1){ day+=20; }else{ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_356595/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_356595/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...
/* cat <<EOF >mistaken-paste */ #pragma GCC diagnostic ignored "-Wincompatible-pointer-types" #define _USE_MATH_DEFINES #include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #include <math.h> #include <time.h> #define BIG 2000000007 #define VERYBIG 2000000000000007LL #d...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_356652/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_356652/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" @parent = dso_local local_u...
#include <stdio.h> #include <stdlib.h> #include <math.h> int main(void) { int N; scanf("%d", &N); int V[N*2]; for(int i = 0; i < N; i++){ scanf("%d %d", &V[2*i], &V[2*i+1]); } long long int R2 = 0; for(int i = 0; i < 100; i++){ double theta = 2*M_PI*i/100; double a = cos(theta); d...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_356696/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_356696/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 xy{ double x; double y; }; int kock(int n,struct xy,struct xy); int main(){ struct xy p1 ={0,0}, p2 ={100,0}; int n; scanf("%d",&n); printf("%.8lf %.8lf\n",p1.x,p1.y); kock(n,p1,p2); printf("%.8lf %.8lf\n",p2.x,p2.y); return 0; } int kock(int n,struct xy p1,struct ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_356739/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_356739/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> double pi=3.14159265358979; struct point{ double x; double y; }; void print_point(struct point p){ printf("%.8f %.8f\n",p.x,p.y); } void koch(int n,struct point p1,struct point p2){ if(n==0) return ; struct point s,t,u; s.x=(2*p1.x+p2.x)/3; s.y=(2*p1.y+p2.y)/3; t.x=(...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_356782/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_356782/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" @pi = dso_local local_unnam...
#include <stdio.h> #include <math.h> struct XX{ double x; double y; }; void kock(int n,struct XX p1,struct XX p2){ struct XX s,t,u; if(n==0) return; 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*p2.y)/3; u.x=(t.x-s.x)*cos(M_PI/3)-(t.y-s.y)*sin(M_PI/3)+s....
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_356825/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_356825/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; } zahyo_t; int koch(int n, zahyo_t p1, zahyo_t p2) { //if(n == 0) // return 0; zahyo_t a, b, c; // printf("%f %f\n", p1.x, p1.y); if(p1.x < p2.x && p1.y == p2.y) { a.x = p1.x + (p2.x - p1.x)/3; a.y = p1.y; c.x = p1.x +...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_356869/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_356869/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 koch(double x1, double y1, double x2, double y2, int n){ double ax, ay, bx, by, cx, cy; if(n != 0){ ax = (x2 - x1) / 3 + x1; ay = (y2 - y1) / 3 + y1; bx = 2 * (x2 - x1) / 3 + x1; by = 2 * (y2 - y1) / 3 + y1; cx = ((bx - ax)* cos(M_PI/3) - (by - ay)* si...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_356911/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_356911/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 merge(long long arr[], long long l, long long m, long long r) { long long i, j, k,n1,n2; n1 = m - l + 1; n2 = r - m; /* create temp arrays */ long long L[n1], R[n2]; /* Copy data to temp arrays L[] and R[] */ for (i = 0;...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_35697/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_35697/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<math.h> #include<stdlib.h> typedef struct Eachtop { double x; double y; struct Eachtop *next; } Top; Top *topnode, *lastnode, *thisnode; void makenewpoint(Top* a, Top* b){ Top *firstnode, *secondnode, *thirdnode; firstnode = (Top*)malloc(sizeof(Top)); firstnode->x = (b->x - a->...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_357011/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_357011/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.Eachtop = type { do...
#include<stdio.h> #include<math.h> typedef struct point{double x,y;}point; void kochcurve(int n,point a,point b){ if(n==0) return; point s,t,u; double p=3.14159265*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...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_357062/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_357062/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 , P, P); int main(){ int n; P s,t; scanf("%d",&n); s.x = 0; s.y = 0; t.x = 100; t.y = 0; printf("%.8f %.8f\n",s.x,s.y); Koch(n, s, t); printf("%.8f %.8f\n",t.x,t.y); return 0; } void Koch(int n,P p1,P ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_357105/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_357105/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> typedef struct { double x; double y; }P; int kock(int,P,P); int main(){ int n; P p1,p2; p1.x=0; p1.y=0; p2.x=100; p2.y=0; scanf("%d",&n); printf("%.8f %.8f\n",p1.x,p1.y); kock(n,p1,p2); printf("%.8f %.8f\n",p2.x,p2.y); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_357149/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_357149/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 scale{ double x; double y; } S; void kock(int n, S p1,S p2); int main(void){ int n, i; S p1, p2; p1.x = 0.0; p1.y =0.0; p2.x = 100.0; p2.y = 0.0; scanf("%d", &n); printf("%f %f\n", p1.x, p1.y); kock(n, p1, p2); printf("%f %f\n", p2.x, p2.y); return 0; }...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_357192/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_357192/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 _USE_MATH_DEFINES /*これがないと円周率M_PIが使えない*/ #include<stdio.h> #include<math.h> typedef struct { double x; double y; } Point; void koch(int d, Point p1, Point p2) { double th = M_PI * 60.0 / 180.0; if (d == 0) { return; } Point s = {0, 0}, t = { 0, 0 }, u = { 0, 0 }; s.x = (2 * p1.x + 1 * p2.x) / 3; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_357242/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_357242/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 t,n,a[100],k[2000],i,j,h; scanf("%d",&t); for(i=1;i<=t;i++) { scanf("%d",&n); k[i]=1; for(j=1;j<=n;j++) { scanf("%d",&a[j]); } if(n==1) k[i]=1; else { for(j=1;j<n;j++) { for(h=j+1;h<=n;h++) { if(a[h]<a[j]) { int tg; tg=a[h]; a[h]=a[...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_35730/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_35730/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<math.h> typedef struct{ double x; double y; }point; void kock(int, point, point); int main(){ int n; point p1, p2; scanf("%d", &n); p1.x = 0; p1.y = 0; p2.x = 100; p2.y = 0; printf("%.8f %.8f\n", p1.x, p1.y); kock(n, p1, p2); printf("%.8f %.8f\n",p2.x, p2.y); retu...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_357350/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_357350/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; int Ans(Point,Point,int); int main(){ int n; Point p1,p2; p1.x=0.0; p1.y=0.0; p2.x=100.0; p2.y=0.0; scanf("%d",&n); printf("%f %f\n",p1.x,p1.y); Ans(p1,p2,n); printf("%f %f\n",p2.x,p2.y); return 0; } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_357394/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_357394/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> typedef long long ll; int main() { ll x, ans; scanf("%lld", &x); ans = (x / (5 + 6)) * 2; int left = x % (5 + 6); if (left == 0) { ans += 0; } else if (1 <= left && left <= 6) { ans += 1; } else { ans += 2; } printf("%lld\n", ans); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_357437/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_357437/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) { long long int x,quo; int rem; scanf("%lld", &x); quo = x / 11; rem = x % 11; if (rem>6) printf("%lld",(quo+1) * 2); else if (rem == 0)printf("%lld", quo * 2); else printf("%lld",quo * 2 + 1); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_357488/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_357488/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 points { double x; double y; }; int main(void) { struct points eigenvector; int p1x, p1y, p2x, p2y, px, py; double length; int q; int i; scanf("%d%d%d%d",&p1x,&p1y,&p2x,&p2y); struct points p1, p2; p1.x = p1x; p1.y = p1y; p2.x = p2x; p2.y = p2y; len...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_357530/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_357530/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 A 200000 int compare(const void *a, const void *b) { int ia = *(int *) a; int ib = *(int *) b; return ib - ia; } int main() { static int kk[A + 1]; int n, k, a, ans; scanf("%d%d", &n, &k); while (n--) { scanf("%d", &a); kk[a]++; } qsort(kk, A + 1, sizeof ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_357574/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_357574/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.kk = internal global ...
#include <stdio.h> #include <stdlib.h> int comp(const void *a, const void *b) { return *(int*)b - *(int*)a; } int main() { int n, k, ans = 0; int t, a[200010] = {}; scanf("%d%d", &n, &k); for (int i = 0; i < n; i++) { scanf("%d", &t); a[t-1]++; } qsort(a, n+1, sizeof(int), comp); for (int i = k; i < n; i++...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_357617/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_357617/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 _GNU_SOURCE // use memmem(3) #include <stdio.h> #include <stdlib.h> #include <string.h> int N; char S[10000]; int judge(int slen) { int l1; char *result; if (slen == 0) return 1; for (l1=0; l1 < N+1-2*slen; l1++) { result = memmem(S+l1+slen, N-l1-slen, S+l1, slen); //p...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_357660/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_357660/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 global i32 0...
#include <stdio.h> #include <stdlib.h> #include <string.h> #define MAX_N 50 int main() { int n, r; int card[MAX_N]; int buffer[MAX_N]; int i, j; while(scanf("%d %d", &n, &r) == 2 && n) { for(i = 0; i < n; ++i) { card[i] = n - i; } for(i = 0; i < r; ++i) { int p, c; scanf("%d %d", &p, &c); --p...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_357710/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_357710/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[60], b[60]; int main(void) { while (1) { int n, r, i; scanf("%d%d", &n, &r); if (n==0 && r==0) break; for(i=0;i<n;++i) a[n-i]=i+1; while (r--) { int p, c; scanf("%d%d", &p, &c); for(i=1;i<=n;++i) b[i]=a[i]; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_357754/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_357754/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, r, p, c; int k, i, l, m, j; int card[50], sto[50]; scanf("%d %d", &n, &r); while(n!=0 || r!=0) { for(i=0;i<n;i++) { card[i] = n-i; } for(k=0;k<r;k++) { scanf("%d %d", &p, &c); if(p>0) { for(l=0;l<p-1;l++) { sto[l] = card[l]; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_357811/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_357811/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> // uint64_t #define max(a,b) ((a) > (b) ? (a) : (b)) #define min(a,b) ((a) > (b) ? (b) : (a)) #define BUF_SIZE 20 #define DIVISOR 1000000007 int get_int2(int *a1, int *a2) { #ifdef BUF_SIZE char line[BUF_SIZE]; if(!fgets(line, BUF_SIZE...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_357862/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_357862/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...
#include<stdio.h> int ta[200010],nt[400010],to[400010],p[200010],d[200010]; void f(int a,int b,int c){ int i; d[a]=c+p[a]; for(i=ta[a];i+1;i=nt[i]){ if(to[i]==b)continue; f(to[i],a,d[a]); } } int main(){ int n,m,a,b,i; scanf("%d %d",&n,&m); for(i=0;i<n;i++)ta[i+1]=-1; for(i=0;i<n-1;i++){ sca...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_357905/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_357905/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" @p = dso_local local_unname...
#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> #include<string.h> void LCS(char *x, char *y){ int m = strlen(x+1); int n = strlen(y+1); int i, j, **c; c = malloc(sizeof(int)*(m+1000)); for (i = 0; i <= m; i++) c[i] = malloc(sizeof(int)*(n+1)); for (i = 0; i <= m; i++){ for (j = 0; j ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_357956/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_357956/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 max(int a, int b) { return (a > b)?a:b; } int solve(char *a, char *b, int al, int bl) { int i,j; int table[al+1][bl+1]; for (i = 0; i <= al; i++) { table[i][0] = 0; } for (i = 0; i <= bl; i++) { table[0][i] = 0; } for (i = 1; i <= al; i++) { for ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_358027/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_358027/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 LCSLength(char*,char*); int main(){ int q,i; char X[1000],Y[1000]; scanf("%d",&q); for(i=0;i<q;i++){ scanf("%s",X); scanf("%s",Y); printf("%d\n",LCSLength(X,Y)); } return 0; } int LCSLength(char *X,char *Y){ int c[1001][1001]; int i,j,m,n; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_358070/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_358070/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 1200 #define max(a, b) (a < b ? b : a) int dp[N][N]; char X[N], Y[N]; int LCS(); int main(){ int n, i; scanf("%d\n", &n); for ( i = 0; i < n; i++ ){ fgets(X, N, stdin); fgets(Y, N, stdin); printf("%d\n", LCS()); } return 0; } int LCS(voi...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_358120/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_358120/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> void LCS_lenght(char *x, char *y) { int i, j, m, n, c[1001][1001]; m = strlen(x+1); n = strlen(y+1); for(i = 1; i <= m; i++) c[i][0] = 0; for(j = 0; j <= n; j++) c[0][j] = 0; for(i=1;i<=m;i++) for(j=1;j<=n;j++) if(x[i]==y[j]) c[i]...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_358164/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_358164/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 MAX 2000 void longest_common_subsequence(char x[], char y[]){ int i,j,m,n; m = strlen(x); n = strlen(y); int a[m+1][n+1]; for(i=0; i<=m; i++){ for(j=0; j<=n; j++){ a[i][j] = 0; } } for(i=1; i <= m; i++){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_358221/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_358221/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 1000 #define max(a,b) ( a > b ? a : b ) int main(void) { int iii, i, j, m, n; char x[N], y[N]; int table[N+1][N+1]; int num; scanf( "%d", &num ); for( iii=0; iii<num; ++iii ) { scanf( "%s", x ); scanf( "%s", y ); m = st...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_358272/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_358272/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 SIZE 1000 int max(int a,int b){ return (a>b ? a:b); } int main(){ int n,i,j,cnt=0; char x[SIZE],y[SIZE]; scanf("%d",&n); while(cnt != n){ char tmp1[SIZE],tmp2[SIZE]; scanf("%s %s",tmp1,tmp2); x[0]=y[0]=' '; strcpy(x+1,tmp1); strcpy(y+1,tm...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_358315/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_358315/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> static int N = 1000; int max(int, int); int lcs(char *, char *); int main(){ char s1[1500], s2[1500]; int n, i; scanf("%d", &n); for(i = 0; i < n; i++){ scanf("%s %s", s1, s2); printf("%d\n", lcs(s1, s2)); } return 0; } int max(int x, int y){ if(x > y){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_358366/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_358366/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> static int N =1000; int max(int a,int b){ if(a>b) return a; else return b; } int lcs(char x[],char y[]){ int c[N+1][N+1]; int m=strlen(x); int n=strlen(y); int maxl=0,i,j; for(i=0;i<=m;i++) c[i][0]=0; for(j=1;j<=n;j++) c[0][j]=0; for(i=1;i<=m;i++){ for...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_358416/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_358416/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 1001 int Comp(int a,int b){ if(a<b)return b; else return a; } int lcs(char *x,char *y){ int i,j; int lenx,leny; int dp[N][N]; lenx=strlen(x); leny=...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_358467/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_358467/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> int h[100]; void input(int n) { int i; for(i=0;i<n;i++) scanf("%d",&h[i]); } int fun(int n,int k) { int i; while(k>0){ i=0; while(h[i]>=h[i+1]&&i<n-1) i++; if(i==n-1) return -1; k--;...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_35851/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_35851/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 sum = 0, i, a; for (i = 0; i < 5; i++){ scanf("%d", &a); if (a < 40){ sum += 40; } else { sum += a; } } printf("%d\n", sum / 5); return (0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_358553/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_358553/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, e, heikin; scanf("%d %d %d %d %d",&a,&b,&c,&d,&e); if(a < 40) a = 40; if(b < 40) b = 40; if(c < 40) c = 40; if(d < 40) d = 40; if(e < 40) e = 40; heikin = (a + b + c + d + e) / 5; printf("%d\n",heikin); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_358603/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_358603/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 No.0592 Average Score*/ #include <stdio.h> int main(){ int i; int t=0; int a; for(i=0;i<5;i++){ scanf("%d",&a); if(a>=40){ t+=a; } else if(a<40){ t+=40; } } printf("%d\n",t/5); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_358647/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_358647/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[5]; int i; for(i = 0; i < 5; i++){ scanf("%d",&a[i]); if(a[i] < 40) a[i] = 40; } printf("%d\n",(a[0]+a[1]+a[2]+a[3]+a[4])/5); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_358690/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_358690/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,t,g=0; for(i=0;i<5;i++){ scanf("%d",&t); if(t<40)t=40; g=g+t; } printf("%d\n",g/5); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_358733/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_358733/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,t; scanf("%d%d%d",&a,&b,&c); if(a>b){t=a;a=b;b=t;}if(a>c){t=a;a=c;c=t;} printf("%d",(b>c?b:c)-a); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_358784/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_358784/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> int compar(const int *val1, const int *val2); int main(void){ int a[3],sum; int n=sizeof(a)/sizeof(a[0]); scanf("%d%d%d",&a[0],&a[1],&a[2]); qsort(a, n, sizeof(int), (int (*)(const void *, const void *))compar ); sum=a[2]-a[0]; printf("%d",sum); return EXIT_SU...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_358841/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_358841/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; scanf("%d %d %d",&a,&b,&c); if(b<c){ d=b; b=c; c=d; } if (a<b){ d=a; a=b; b=d; } if(b<c){ d=b; b=c; c=d; } printf("%d",a-c); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_358885/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_358885/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,s=0,flag; scanf("%d %d %d",&a,&b,&c); int x=a-b,y=a-c,z=b-c; if(x<0)x*=-1; if(y<0)y*=-1; if(z<0)z*=-1; if(x<y && x<z){s+=x;flag =0;} else if(y<x && y<z){s+=y;flag=1;} else{s+=z;flag=2;} if(flag==0){ if(y<z){s+=y;} else{s+=z;} } if(flag==1){ if(x<z){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_358928/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_358928/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(void) { int best,i,j,a,b,c,task[3],con[6],order[6][3]={{0,1,2}, {0,2,1}, {1,0,2}, {1,2,0}, ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_358986/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_358986/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,max,min; scanf("%d",&a); scanf("%d",&b); scanf("%d",&c); if(a>b){ max=a; min=b; }else{ max=b; min=a; }if(c>max){ max=c; }else if(c<min){ min=c; } printf("%d",max-min); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_359035/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_359035/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 <stdbool.h> #include <math.h> int main() { int T; scanf("%d",&T); while(T--) { int px,py,flag=1; char str[100001] = {0}; scanf("%d %d",&px,&py); scanf("%s",str); int sx=0,sy=0; int countU...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_35910/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_35910/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 flg,i,j,k,a[100][100],w,h,cnt; char s[101]; scanf("%d %d",&h,&w); for(i=0;i<h;i++){ scanf("%s",s); for(j=0;j<w;j++){ flg=0; cnt=0; for(k=j;k>=0;k--){ if(s[k]=='c'){ flg=1; a[i][j]=cnt; break; } cnt++; } if(flg==0){ a[i][j]=-1; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_359150/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_359150/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,k; scanf("%d %d",&n,&k); int p[101]={},d[k]; for(int i=0;i<k;i++){ scanf("%d",&d[i]); for(int j=0;j<d[i];j++){ int pn=0; scanf("%d",&pn); p[pn]++; } } int c=0; for(int i=0;i<n;i++){ if(p[i+1]==0){ c++; } } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_359200/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_359200/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,k,a,d,cnt,i,j,flg[101]={0}; scanf("%d %d",&n,&k); for(i=0;i<k;i++){ scanf("%d",&d); for(j=0;j<d;j++){ scanf("%d",&a); flg[a]=1; } } for(i=1;i<=n;i++){ if(flg[i]==0){ cnt++; } } printf("%d\n",cnt); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_359244/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_359244/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_snuke; scanf("%d", &n_snuke); int has_trts[n_snuke+1]; //お菓子を持っている->0;持っていない->1 for(int snuke = 1; snuke <= n_snuke; snuke++) has_trts[snuke] = 1; int n_trtkinds; scanf("%d", &n_trtkinds); for(int trt_i = 1; trt_i <= n_trtkinds; trt_i++){ int n_trt_i, trt_i_to; scanf(...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_359295/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_359295/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> #include <stdlib.h> #include<ctype.h> #include<limits.h> //qsort int compare_int(const void *a, const void *b) { return *(int*)a - *(int*)b; } //比較 int max(int a, int b){ if (a>b) return a; else return b; } int min(int a,int b) { if(a>b) return b; else re...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_359338/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_359338/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,k; int d[1000]; int a[1000][1000]; int sunuke[1000]; int count=0; scanf("%d %d", &n, &k); for(int i=1;i<=k;i++){ scanf("%d", &d[i]); for(int j=1;j<=d[i];j++){ scanf("%d", &a[i][j]); sunuke[a[i][j]] += 1; } } for(int i=1;i<=n;i++){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_359381/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_359381/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 n,k,i,j,l,cont=0; int d[110],a[110]; scanf("%d %d",&n,&k); for(i=0;i<110;i++) { a[i]=0; } for(i=0;i<k;i++) { scanf("%d",&d[i]); for(j=0;j<d[i];j++) { l=0; scanf("%d",&l); a[l]++; } } for(i=1;i<=n;i++...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_359431/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_359431/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,k; scanf("%d%d", &n, &k); int d[k], a[k][n]; for (int i = 0; i < k; i++) { scanf("%d", &d[i]); for (int j = 0; j < d[i]; j++) scanf("%d", &a[i][j]); } int b[n], ans=0; for (int i = 0; i < n; i++) b[i] = 0; for (int i = 0; i < k; i++) { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_359475/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_359475/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...