Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include<stdio.h>
int main(void)
{
int a,b;
scanf("%d %d\n",&a,&b);
if(a>b)printf("a > b\n");
else if(a<b)printf("a < b\n");
else if(a==b)printf("a == b\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_244556/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244556/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 main(){
int y,k,n,i,ok,x;
scanf("%d %d %d",&y,&k,&n);
ok=0;
if(k<=n){
if(k>y){
x=(k-y);
}
else{
if(k<y){
x=k-(y % k);
//printf("lol");
}
else{
x=k;
}
}
for(i=x;i<=(n-y);i=i+k){
//printf("%d\n",i);
if(((i+y) % k)==0){
ok=1... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_2446/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_2446/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(){
int a, b;
scanf("%d %d", &a, &b);
if(a < b){
printf("a < b\n");
}
else if(a > b){
printf("a > b\n");
}
else {
printf("a == b\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_244642/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244642/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;
scanf("%d%d",&a,&b);
if (a < b){
printf("a < b\n");
} else if (a > b) {
printf("a > b\n");
} else {
printf("a == b\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_244686/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244686/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 ;
scanf("%d %d",&a,&b) ;
if(a>b){
printf("a > b\n") ;
}
else if(a<b){
printf("a < b\n") ;
}
else if(a==b){
printf("a == b\n") ;
}
return 0 ;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_244729/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244729/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 m,n,i,sum=0;
scanf("%I64d %I64d",&m,&n);
int arr[n+1];
for(i=0;i<n;i++)
{
scanf("%d",&arr[i]);
}
sum+=arr[0]-1;
for(i=1;i<n;i++)
{
if(arr[i]<arr[i-1])
{
sum+=m+arr[i]-arr[i-1];
}
if(arr[... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24478/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24478/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()
{
long long int n,m,i;
scanf("%lld %lld",&n,&m);
long long int state = 1;
long long int ans =0,temp;
for( i=0;i<m;i++)
{
scanf("%lld",&temp);
//printf("%d %d\n",temp,state);
if( temp >= state )
{
ans+= te... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24483/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24483/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,b;
scanf("%d %d", &a,&b);
if(a<b)printf("a < b\n");
if(a>b)printf("a > b\n");
if(a==b)printf("a == b\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_244873/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244873/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;
scanf("%d %d", &a, &b);
if (a < b)printf("a < b\n");
else if(a > b)printf("a > b\n");
else printf("a == b\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_245016/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245016/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 a[100];
char b[50],temp;
int i=0,j=0,k,c,m=0;
scanf("%s",a);
k=strlen(a);
while(i<k)
{b[j]=a[i];
j++;
i=i+2;
}
for(i=0;i<j;i++)
{for(k=0;k<j;k++)
{
if(b[i]<b[k])
{temp=b[i];
b[i]=b[k];
b[k]=temp;
}
}
}
for(i=0;i<j;i++)
{a[m]=b[i];
m=m+2;
}
pr... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24506/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24506/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>
int main(void)
{
int a,b;
scanf("%d %d", &a,&b);
if(a>b)
printf("a > b\n");
else if(a<b)
printf("a < b\n");
else
printf("a == b\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_245102/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245102/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;
scanf("%d %d", &a, &b);
if (a > b)
printf("a > b\n");
else if (b > a)
printf("a < b\n");
else
printf("a == b\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_245153/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245153/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;
scanf("%d %d", &a, &b);
if (a < b) {
printf("a < b\n");
} else if (a > b) {
printf("a > b\n");
} else {
printf("a == b\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_245197/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245197/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=0;
int b=0;
scanf("%d %d", &a, &b);
printf("a ");
if(a>b){
printf(">");
}
else if(a<b){
printf("<");
}
else{
printf("==");
}
printf(" b\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_245283/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245283/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;
scanf("%i %i",&a,&b);
if(a<b)printf("a < b");
if(a>b)printf("a > b");
if(a==b)printf("a == b");
printf("\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_245333/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245333/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;
scanf("%d %d" ,&a,&b);
if(a>b){
printf("a > b\n");
}
if(a==b){
printf("a == b\n");
}
if(a<b){
printf("a < b\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_245377/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245377/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;
scanf("%d%d", &a, &b);
if(a < b) {
printf("a < b\n");
}
if (a == b) {
printf("a == b\n");
}
if (a > b) {
printf("a > b\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_245441/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245441/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;
scanf("%d %d",&a,&b);
if(a>b){
printf("a > b\n",a,b);
}else if(a<b){
printf("a < b\n",a,b);
}else{
printf("a == b\n",a,b);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_245485/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245485/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;
while(scanf("%d %d",&a,&b)!=EOF)
{
if(a>b) printf("a > b\n");
else if(a<b) printf("a < b\n");
else printf("a == b\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_245528/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245528/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;
scanf("%d %d",&a,&b);
if(a < b){
printf("a < b\n");
} else if(a == b){
printf("a == b\n");
} else {
printf("a > b\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_245571/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245571/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;
scanf("%d%d",&a,&b);
if(a<b){
printf("a < b\n");
}else if(a>b){
printf("a > b\n");
}else{
printf("a == b\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_245621/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245621/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;
scanf("%d %d",&a,&b);
if(a<b){
printf("a < b\n");
}
else if(a>b){
printf("a > b\n");
}
else{
printf("a == b\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_245672/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245672/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, const char * argv[]){
int a,b;
scanf("%d %d", &a, &b);
if (a>b) {
printf("a > b\n");
}else if(a<b){
printf("a < b\n");
}else{
printf("a == b\n");
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_245722/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245722/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;
scanf("%d",&a);
scanf("%d",&b);
if (a<b){
printf("a < b\n");
} else if (a>b){
printf("a > b\n");
} else {
printf("a == b\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_245766/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245766/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;
scanf("%d %d",&a,&b);
if(a<b){
printf("a < b\n");
}
else if(a>b){
printf("a > b\n");
}
else{
printf("a == b\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_245809/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245809/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 t,a,b,x,y,i,n;
scanf("%lld",&t);
for(i=0;i<t;i++){
scanf("%lld %lld %lld %lld",&x,&y,&a,&b);
if((y-x)%(a+b)==0){
n=(y-x)/(a+b);
printf("%lld\n",n);
}
else{
printf("-1\n");
}
}
r... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24586/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24586/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 answer();
int main()
{
int test,i;
scanf("%d",&test);
int ans[test];
for(i=0;i<test;i++)
{
ans[i]=answer();
}
for(i=0;i<test;i++)
{
printf("%d\n",ans[i]);
}
}
int answer()
{
int x,y,a,b,dist,speed,mod;
scanf("%d %d %d %d",&x,&y,&a,&b... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24591/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24591/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>
#define M 1000000
#define L 14
char H[M][L]; /* Hash Table */
int getChar(char ch){
if ( ch == 'A') return 1;
else if ( ch == 'C') return 2;
else if ( ch == 'G') return 3;
else if ( ch == 'T') return 4;
}
/* convert a string into an integer value */
long long getKey(char... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_245953/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245953/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"
@H = dso_local global [1000... |
#include<stdio.h>
#include<string.h>
#define M 1000003
#define L 14
char H[M][L];
int getChar(char ch){
if ( ch == 'A') return 1;
else if ( ch == 'C') return 2;
else if ( ch == 'G') return 3;
else if ( ch == 'T') return 4;
} /* convert a string into an integer value */
int getKey(char str[]){
int sum = 0,... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_245997/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245997/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"
@H = dso_local global [1000... |
#include <stdio.h>
#include <string.h>
#include <math.h>
int id(char *);
void insert(char *);
void find(char *);
int dic[22369621]={0};
int main(void)
{
int i, n;
char op[7], str[13];
scanf("%d",&n);
for (i=0; i<n; i++) {
scanf("%s %s",op,str);
if( strcmp(op, "insert") == 0 ) {
insert(str);
} else if(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246039/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246039/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"
@dic = dso_local local_unna... |
#include<stdio.h>
#include<string.h>
#define M 1000003
#define L 14
char H[M][L];
int getChar(char C) {
switch(C){
case 'A':
return 1;
break;
case 'C':
return 2;
break;
case 'G':
return 3;
break;
case 'T':
return 4;
break;
default:
return 0;
}
}
int ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246082/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246082/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"
@H = dso_local global [1000... |
#include<stdio.h>
#include<string.h>
#define M 1000000
#define L 14
char H[M][L]; /* Hash Table */
int getChar(char ch){
if ( ch == 'A') return 1;
else if ( ch == 'C') return 2;
else if ( ch == 'G') return 3;
else if ( ch == 'T') return 4;
}
/* convert a string into an integer value */
long long getKey(char... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246125/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246125/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"
@H = dso_local global [1000... |
#include<stdio.h>
#include<string.h>
char H[1050000][14];
int getChar(char ch){
if ( ch == 'A') return 1;
else if ( ch == 'C') return 2;
else if ( ch == 'G') return 3;
else if ( ch == 'T') return 4;
}
long long getKey(char str[]){
long long sum = 0, p = 1, i;
for ( i = 0; i < strlen(str); i++ ){
sum +... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246169/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246169/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"
@H = dso_local global [1050... |
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#define N 1000003
int getChar(char);
int getKey(char*);
int Insert(char*);
int Find(char*);
int H1(int key){return key%N;}
int H2(int key){return 1+(key%(N-1));}
int H0(int key,int i){return (H1(key)+i*H2(key))%N;}
char dic[N][14];
int main(void){
int ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246211/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246211/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"
@dic = dso_local global [10... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAX_COMMAND_NUM 1000000
#define MAX_STR_LEN 12
#define OFF 0
#define ON 1
#define STR_TYPE_A 1
#define STR_TYPE_C 2
#define STR_TYPE_G 3
#define STR_TYPE_T 4
typedef struct ST_DICTIONARY_TREE Diction... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246262/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246262/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.ST_DICTIONARY_TREE ... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#define LEN 13
#define N 1000001
char arr[N][LEN];
int maxi=0;//max value of i (for double hashing)
void init(void);
void insert(char*);
void find(char*);
int hash1(int);
int hash2(int);
int toNumber(char*);
int main(void)
{
int i;//counter
int n;//the number ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246305/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246305/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"
@maxi = dso_local local_unn... |
#include <stdio.h>
#include <string.h>
#define M 1000003
#define NIL (-1)
#define L 14
char H[M][L];
int getChar(char ch){
if(ch == 'A') return 1;
else if(ch == 'C') return 2;
else if(ch == 'G') return 3;
else if(ch == 'T') return 4;
}
/*convert a string into an integer value*/
long long getKey(char str[]){... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246378/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246378/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"
@H = dso_local global [1000... |
#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<string.h>
#define M 1133331
#define NIL (-1)
#define L 14
char H[M][L]; /* Hash Table */
int getChar(char ch){
if (ch == 'A') return 1;
else if (ch == 'C') return 2;
else if (ch == 'G') return 3;
else if (ch == 'T') return 4;
}
/... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246420/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246420/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"
@H = dso_local global [1133... |
#include <stdio.h>
#include <string.h>
#define M 2000003
#define L 14
char H[M][L]; /* Hash Table */
int getChar(char ch){
if ( ch == 'A') return 1;
else if ( ch == 'C') return 2;
else if ( ch == 'G') return 3;
else if ( ch == 'T') return 4;
}
/* convert a string into an integer value */
long long getKey(ch... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246464/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246464/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"
@H = dso_local global [2000... |
#include <stdio.h>
#include <string.h>
#define M 1000010
#define L 12
char H[M][L];
int getC(char c){
if ( c == 'A') {
return 1;
}
else if ( c == 'C'){
return 2;
}
else if ( c == 'G'){
return 3;
}
else if ( c == 'T') {
return 4;
}
}
long long getKey(char str[]){
long long s... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246507/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246507/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"
@H = dso_local global [1000... |
#include<stdio.h>
#include<string.h>
#define L 1000000
char dic[L][12];
int getChar(char);
long long getnum(char*);
int A(int);
int B(int);
int finditem(char*);
int insert(char*);
int getChar(char x)
{
if(x == 'A') {
return 1;
}else if(x == 'C') {
return 2;
}else if(x == 'G') {
return 3;
}else ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246550/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246550/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"
@dic = dso_local global [10... |
#include <stdio.h>
#include <string.h>
#define M 1046527
#define L 14
char H[M][L]; /* Hash Table */
int getChar(char ch){
if ( ch == 'A') return 1;
else if ( ch == 'C') return 2;
else if ( ch == 'G') return 3;
else if ( ch == 'T') return 4;
else return 0;
}
/* convert a string into an integer value */
lo... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246608/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246608/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"
@H = dso_local global [1046... |
#include <stdio.h>
#include <string.h>
#define M 1046527
#define NIL (-1)
#define L 14
char H[M][L];
int getChar(char ch)
{
if(ch=='A') {return 1;}
else if(ch=='C') {return 2;}
else if(ch=='G') {return 3;}
else if(ch=='T') {return 4;}
}
long long getKey(char str[]){
long long sum=0, p= 1, i;
for(i=0;i<strlen(s... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246651/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246651/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"
@H = dso_local global [1046... |
#include<stdio.h>
#include<string.h>
#define M 1046527
#define NIL (-1)
#define L 14
char H[M][L];/*dictionary*/
/*char to int*/
int getChar(char ch){
if (ch=='A') return 1;
else if (ch=='C') return 2;
else if (ch=='G') return 3;
else if (ch=='T') return 4;
else return 0;
}
/*str to int 5進法表記で復元... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246695/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246695/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"
@H = dso_local global [1046... |
#include <stdio.h>
#include <string.h>
#define M 1046257
#define NIL (-1)
#define L 14
char H[M][L];
// 文字から数値に変換
int getChar(char ch) {
if ( ch == 'A' ) return 1;
else if ( ch == 'C' ) return 2;
else if ( ch == 'G' ) return 3;
else if ( ch == 'T' ) return 4;
return 0;
}
// 文字列から数値へ変換して key を生成する
long lon... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246738/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246738/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"
@H = dso_local global [1046... |
#include <stdio.h>
#include <string.h>
#define NIL (-1)
#define M 1046527
#define L 14
char H[M][L];
int getChar(char ch)
{
if (ch == 'A') return 1;
else if (ch == 'C') return 2;
else if (ch == 'G') return 3;
else if (ch == 'T') return 4;
else return 0;
}
long long getKey(char str[])
{
long long sum = 0, p = ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246789/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246789/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"
@H = dso_local global [1046... |
#include <stdio.h>
#include <string.h>
#define M 1000001
#define L 14
char H[M][L]; /* Hash Table */
int getChar(char ch){
if ( ch == 'A') return 1;
else if ( ch == 'C') return 2;
else if ( ch == 'G') return 3;
else if ( ch == 'T') return 4;
return 0;
}
/* convert a string into an integer value */
long lo... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246839/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246839/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"
@H = dso_local global [1000... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int hash(const char *word)
{
int code = 0;
while(*word)
{
code <<= 2;
switch(*word)
{
case 'A': code |= 0; break;
case 'C': code |= 1; break;
case 'G': code |= 2; break;
case 'T': code |= 3; break;
}
++word;
}
return code;
}
int ma... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246882/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246882/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 M 1000000/* your task*/
#define L 14
char H[M][L]; /* Hash Table */
int getChar(char ch)
{
if ( ch == 'A') return 1;
else if ( ch == 'C') return 2;
else if ( ch == 'G') return 3;
else if ( ch == 'T') return 4;
}
/* convert a string into an integer value */
long l... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246925/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246925/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"
@H = dso_local global [1000... |
#include <stdio.h>
int main(void)
{
int i, n, y, num[7];
while (scanf("%d", &n), n != 0){
for (i = 0; i < 7; i++){
num[i] = 0;
}
for (i = 0; i < n; i++){
scanf("%d\n", &y);
if (y >= 70){
num[6]++;
}
else {
num[y / 10]++;
}
}
for (i = 0; i < 7; i++){
printf("%d\n", n... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246976/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246976/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 0184: Tsuruga Castle
// 2017.8.2 bal4u@uu
// 2017.11.12
#include <stdio.h>
#include <string.h>
//#define getchar_unlocked() getchar()
int in()
{
int n, c;
while ((c = getchar_unlocked()) < '0');
n = 0;
do n = (n<<3)+(n<<1) + (c & 0xf), c = getchar_unlocked();
while (c >= '0');
return n;
}
int main()
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247018/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247018/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._IO_FILE = type { i... |
#include <stdio.h>
int main() {
int n, a;
int x[7];
while(scanf("%d", &n)) {
if (n == 0) break;
for(int i=0; i<7; i++) x[i] = 0;
while(n--) {
scanf("%d", &a);
x[(a/10 > 6) ? 6 : a/10]++;
}
for(int i=0; i<7; i++)
printf("%d\n", x[i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247076/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247076/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<math.h>
#define PI 3.141592653589793
#define MOD 1000000007
long int combination(long int n, long int r);
//qsort用、昇順
int compare_int(const void *a, const void *b)
{
return *(int*)a-*(int*)b;
}
//qsort(data, 10, sizeof(int), compare_int)
long int comb... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247119/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247119/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 compare(const void *a, const void *b){
int *A = (int *)a;
int *B = (int *)b;
if (*A > *B) return 1;
if (*A < *B) return -1;
return 0;
}
int main(){
int N;
scanf("%d",&N);
int A[N];
for(int i=0;i<N;i++)scanf("%d",&A[i]);
qsort(A,N,sizeof(int),compare);
int ans=0;
int... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247162/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247162/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, hit, sum;
int i;
while (1){
sum = 0;
scanf("%d", &n);
if (n == 0)return (0);
for (i = 0; i < n / 4; i++){
scanf("%d", &hit);
sum += hit;
}
printf("%d\n", sum);
}
return (0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247212/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247212/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=0;
int x=0;
int sum=0;
while( scanf("%d",&n),n!=0){
int i=0;
sum=0;
for(i=0;i<n/4;++i){
scanf("%d",&x);
sum=sum+x;
}
printf("%d\n",sum); }
// your code goes here
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247256/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247256/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 ll long long
int upll(const void*a, const void*b){return*(ll*)a<*(ll*)b?-1:*(ll*)a>*(ll*)b?1:0;}
void sortup(ll*a,int n){qsort(a,n,sizeof(ll),upll);}
ll a[200010];
int main(){
int n;
scanf("%d",&n);
for(int i=0;i<n;i++)scanf("%lld",a+i);
sortup(a,n);
for(int i=1;i<n;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247335/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247335/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>
struct number{
int n;
struct number *up;
struct number *down;
};
int insert(struct number**,struct number*);
int main(){
char *q;
char *buf = (char *)malloc(sizeof(char)*2200000);
int N,temp,flag=1;
fgets(buf,10,stdin);
q = strtok(buf," ");
N = atoi... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247393/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247393/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.number = type { i32... |
#include<stdio.h>
void sort (int n,int array[],int left,int right) {
int i, j, k, mid;
int work[n];
if (left < right) {
mid = (left + right)/2;
sort(n,array, left, mid);
sort(n,array, mid+1, right);
for (i = mid; i >= left; i--) { work[i] = array[i]; }
for (j = mid+1; j <= right; j++) {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247436/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247436/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 MAXN 200005
long long buf[MAXN];
void merge_sort(long long *a, long long size)
{
static long long i, j, k;
if(size <= 1)
return;
merge_sort(a, size >> 1);
merge_sort(a + (size >> 1), size - (size >> 1));
for(i = 0, j = (size >> 1), k = 0; i < (size >> 1) && j < ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247487/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247487/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"
@buf = dso_local local_unna... |
#include<stdio.h>
int main()
{
int m,n,t,i,k,j;
char a[2005],b[2005],c[1005];
while(~scanf("%d",&t))
{
scanf("%s",a);
if(t%2==0)
{
for(i=t-1;i>=0;i--)
{
if(i%2==0)printf("%c",a[i]);
}
for(k=0;k<t;k++)
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24753/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24753/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>
int isprime(long L){
long i=3;
long Ls = (long)sqrt(L);
if (!(L%2)) return 0;
while (i<=Ls) {
if(!(L%i))return 0;
i+=2;
}
return 1;
}
int main(void) {
int N,n,t=0;
long L;
scanf("%d\n",&N);
for(n=0;n<N;n++) {
scanf("%ld\n",&L);
if (L==2) t++... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247588/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247588/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,j,k,a,b,cnt=0,flag;
scanf("%d",&a);
for(i=0;i<a;i++){
scanf("%d",&b);
flag=0;
for(j=2;j*j<=b;j++){
if(b%j==0){
flag=1;
break;
}
}
if(!flag)cnt++;
}
printf("%d\n",cnt);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247652/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247652/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 leng, be, en, temp;
char encode[2001];
char decode[2001];
scanf("%d", &leng);
scanf("%s", encode);
be = 0;
en = leng - 1;
temp = leng;
for (leng--; leng > -1; leng--, be++, en--)
{
decode[en] = encode[leng];
if (leng > 0)
decode[be] = encode[--leng];
}
for (be = 0; be < temp; be+... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24771/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24771/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>
#define T 1
#define F 0
int isprime(int x);
int main(){
int n,i,count=0;
int *a;
scanf("%d",&n);
a=(int *)malloc(sizeof(int)*n);
for(i=0;i<n;i++)scanf("%d",&a[i]);
for(i=0;i<n;i++)if(isprime(a[i])==T)count++;
printf("%d\n",count);
return 0;
}
int isprime(int ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247760/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247760/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 judge(int);
int main(){
int n,i,cnt=0,*a;
scanf("%d",&n);
a=(int *)malloc(sizeof(int)*n);
for(i=0;i<n;i++){
scanf("%d",&a[i]);
if(judge(a[i])==1) cnt++;
}
free(a);
printf("%d\n",cnt);
return 0;
}
int judge(int a){
int i;
if((a==... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247810/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247810/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 prime_check(int num)
{
int i;
if(num < 2) return 0;
if(num == 2) return 1;
if(!(num%2)) return 0;
for(i=3;i*i<=num;i+=2){
if(!(num%i)) return 0;
}
return 1;
}
int main(){
int N;
long long int input_number;
int i;
int number_of_prime = 0;
scanf("%d",&N);
for(i=1;i<=N;i++){
sca... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247861/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247861/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 isprime(int);
int main()
{
int a, c=0, i, n, buf[10000];
scanf("%d",&n);
for(i = 0 ; i < n ; i++){
scanf("%d",&buf[i]);
}
for(i = 0 ; i < n ; i++){
a = isprime(buf[i]);
if(a == 1){
c++;
}
}
printf("%d\n",c);
return 0;
}
int ispr... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247904/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247904/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(){
int i,j,N,num,A[10000];
scanf("%d",&N);
for(i=0;i<N;i++){
scanf("%d",&A[i]);
}
num=0;
for(i=0;i<N;i++){
if(A[i]==2){
num++;
continue;
}
else if(A[i]<2 || A[i]%2==0) continue;
j=3;
while(j<=(int)sqrt(A[i])){
if(A[i]%... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247948/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247948/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, i, j, c=0;
int A[10000];
scanf("%d",&n);
if( n<1 || 100000<n ) exit(1);
for( i=0 ; i<n ; i++ ){
scanf("%d",&A[i]);
if( A[i]<2 || 100000000<A[i] ) exit(2);
}
for( i=0 ; i<n ; i++ ){
if( A[i] == 2 ){
c++;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247999/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247999/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 isprime(int);
int main(){
int n,x,i,c=0;
scanf("%d",&n);
for(i = 0;i < n;i++){
scanf("%d",&x);
if(isprime(x)){
c++;
}
}
printf("%d\n",c);
return 0;
}
int isprime(int x){
int i;
if(x<2){
return 0;
}
else if(x == 2){
return 1;//2 is prime number
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248040/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248040/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 isPrime(int x)
{
int i;
if(x < 2) return 0;
else if(x == 2) return 1;
if(x % 2 == 0) return 0;
for(i=3; i*i<=x; i+=2){
if(x%i==0) return 0;
}
return 1;
}
int main(){
int n, x, i;
int ans = 0;
scanf("%d", &n);
for(i=0; i<n; i++){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248084/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248084/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, j, n,d = 0, v;
int sosuu = 0;
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%d", &j);
d = 0;
for (v = 2; v <= 10000; v++){
if ((j % v) == 0) {
if (j != 1)
d++;
}
}
if(j >= 0 && j <= 10000) {
if (d == 1) {
sosuu++;
}
}
else {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248149/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248149/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... |
//
// Created by imjalpreet on 22/8/15.
//
#include<stdio.h>
typedef struct order {
int price, volume;
char direction;
}order;
int main() {
int n, s, i, price, volume, sell = 0, buy = 0, count = 0;
char direction;
order buyOrders[100005], sellOrders[100005];
for (i = 0; i < 100005; ++i) {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_2482/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_2482/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.order = type { i32, i32... |
#include<stdio.h>
#include<math.h>
int main(){
int num = 0;
int data;
int i;
int k;
int count = 0;
int finalans = 0;
while(1){
scanf("%d",&num);
if(1 <= num && num <=10000){
break;
}
}
for(i = 0;i < num;i++){
scanf("%d",&data);
if(data > 2 && data % 2 == 0){
continue;
}
for(k = 2;k <= sqrt(data);k++... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248257/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248257/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>
//input definitions
#define sd(x) scanf("%d",&x);
#define slld(x) scanf("%lld",&x);
#define ss(x) scanf("%s",x);
#define sf(x) scanf("%f",&x);
#define slf(x) scanf("%lf",&x);
//output definitions
#define pd(x) printf("%d",x);
#define plld(x) pri... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24830/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24830/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"
@isPrime = dso_local local_un... |
#include<stdio.h>
#include<math.h>
#include<stdlib.h>
#define NMAX 10000
#define NMIN 1
#define MAX 100000000
#define MIN 2
int main(){
int i,n,j,num[NMAX],count=0;
scanf("%d",&n);
if(n>NMAX||n<NMIN) exit(1);
for(i=n;i>0;i--){
scanf("%d",&num[i]);
if(num[i]>=MIN&&num[i]<=MAX){
if(num[i]!=2&&num[i]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248343/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248343/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 isPrimeNum( int x )
{
int i;
for( i = 2; i <= sqrt((double)x); i++ )
if( x % i == 0 ) return 0;
return 1;
}
int main(){
int num;
int i,j;
int *array;
int count = 0;
do{
scanf("%d",&num);
}while(num < 1 || num > 10000);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248394/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248394/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 main(void) {
register long i, j;
long d, n, c = 0;
scanf("%ld", &n);
i = n;
while (i--) {
scanf("%ld", &d);
if (d & 1) {
for (j = 3; j * j < d; j += 2) {
if (0 == d % j) {
break;
}
}
if (j * j > d) {
c++;
}
} else if (d == 2) {
c... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248451/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248451/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()
{
int n,p,flag=0,a=0,k,j;
double q;
scanf("%d",&n);
for(int i=0; i<n; i++){
flag=0;
scanf("%d",&p);
if(p==2||p==3||p==5||p==7)//値が2の時
flag=1;
else if(p<2||p%2==0)//値が2以下もしくは偶数のとき
flag=2;
if(flag==0){
q=sqrt(p);
for... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248538/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248538/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 isPrime(int);
int main()
{
int n, i, itg, num = 0;
scanf("%d", &n);
for (i = 0; i < n; i++)
{
scanf("%d", &itg);
if (isPrime(itg)) ++num;
}
printf("%d\n", num);
return 0;
}
int isPrime(int itg)
{
int i;
if (itg < 2) return 0;
for (i = 2... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248581/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248581/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()
{
int n, num;
int count, flag;
int i, j;
scanf("%d", &n);
count = 0;
for(i = 0; i < n; i++){
scanf("%d", &num);
if(num == 2){
count++;
continue;
}else if(num < 2 || num % 2 == 0)
continue;
j = 3;
flag = 1;
while(j <= sqrt(num)){
if(num... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248631/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248631/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(){
int i, j, n, a;
int count=0, flag;
scanf("%d",&n);
for(i = 0;i < n; i++){
flag=0;
scanf("%d",&a);
for(j = 2;j <= sqrt(a); j++){
if(a%j == 0) {//素数じゃなかったらブレイク
flag=1;
break;
}
}
if(flag == 0){
count++;
}
}
printf("%d\n", count);
retu... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248675/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248675/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 isPrime(int);
int main(){
int n, num, a, count=0;
scanf("%d",&n);
for(a = 0; a < n; a++){
scanf("%d",&num);
if(isPrime(num) == 1) count++;
}
printf("%d\n",count);
return 0;
}
int isPrime(int num){
int a;
if(num == 2) return 1;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248718/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248718/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(){
int i,j,k,n,count = 0,flag = 0;
scanf("%d",&i);
for(j = 0;j < i;j++){
scanf("%d",&n);
if((n%2) == 0){
if(n == 2) {
count++;
}
continue;
}
flag = 0;
for(k = 1;(2*k+1) <=... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248761/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248761/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){
int b = 0,i,j = 0,n,c = 0;
scanf("%d",&n);
int a[n];
for(i = 0;i < n;i++){
scanf("%d",&a[i]);
}
for(i = 1;i < n;i++){
b = sqrt(a[i]);
for(j =2;j <=b;j++){
if(a[i]%j ==0){
c++;
break;
}
}
}
printf("%d\n",n-c);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248811/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248811/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 prime_number(int num) {
if (num == 2)
return 1;
else if ((num % 2 == 0) || num == 1)
return 0;
else {
for (int i = 3; i <= sqrt(num); i++) {
if (num % i == 0)
return 0;
}
}
return 1;
}
int main(void) {
int n;
int i;
int num;
int count =... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248862/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248862/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 isPrime(int);
int main(){
int n,i,count=0,k;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&k);
if(isPrime(k)==1) count++;
}
printf("%d\n",count);
return 0;
}
int isPrime(int x){
int i;
if(x==2) return 1;
if(x<2 || x%2==0) ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248905/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248905/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 func(int);
int main(){
int i,cnt = 0,n;
int *in;
scanf("%d",&n);
if(n < 1 || n > 10000){
exit(4);
}
in = (int *)malloc(sizeof(int)*n);
for(i=0;i<n;i++){
scanf("%d",&in[i]);
if(in[i] < 2 || in[i] > 100000000) exit(3);
}
for(i=0;i<n;i++){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248949/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248949/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[100], n, k, b[100];
scanf("%d", &n);
for(k=1;k<=n;k++)
scanf("%d", &a[k]);
for(k=1;k<=n;k++){
if(a[k]%7!=0)
b[k]=a[k]/7+1;
else
b[k]=a[k]/7;
printf("%d\n", b[k]);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_249/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_249/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 cons... |
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#define Max 10000
int main(){
int n,y,i,l,cnt=0;
int a[Max];
scanf("%d",&n);
if(n<1 || n>Max){
exit(1);
}
for(i=0;i<n;i++){
scanf("%d",&a[i]);
}
for(i=0;i<n;i++){
y=sqrt(a[i]);
//printf("y:%d\n",y);
for(l=2;l<=y;l++){
i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_249041/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_249041/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 faulse 0
#define true 1
int isPrime(int x){
int i;
if(x == 2) return true;
if(x < 2 || x % 2 == 0) return faulse;
i = 3;
while(i <= sqrt(x)){
if(x % i == 0) return faulse;
i += 2;
}
return true;
}
int main(){
int i,n,N,a[10000];
int count = 0;
sca... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_249085/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_249085/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>
void f(int w[],int k[],int b[],int a[],int c,int n,int e,int g){
int i,j;
int bb[10];
if(c==n){
if(a[10]==0||a[10]>g){
a[10]=g;
memcpy(a,b,sizeof(bb));
}
}else{
for(i=0;i<n;i++){
if(k[i]>=e){
for(j=0;j<c;j++){
if(i==b[j])
break;
}
if(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_249128/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_249128/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 get_radian(double x1, double y1, double x2, double y2) {
if(fabs(x1-x2) < 0.00000001f) {
if(y1 >= y2) {
return 3 * M_PI / 2;
}
return M_PI / 2;
} else if(fabs(y1-y2) < 0.00000001f) {
if(x1 >= x2) {
return M_PI;
}
return 0.0;
}
if(x2 >= x1) {
if(y2 >... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_249179/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_249179/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[100001];
scanf("%s",s);
int len,i;
len=strlen(s);
int pos[len+1],lr[len+1],rl[len+1],lrlen=0,rllen=0;
for(i=0;i<len;i++)
pos[i]=0;
for(i=0;i<len-1;i++){
if(s[i]=='R' && s[i+1]=='L')
rl[rllen++]=i;
else if(s[i]=='L' && s[i+1]=='R')
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_249221/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_249221/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[100000];
scanf("%s",S);
int N = strlen(S);
int k[N],i;
for(i = 0; i < N; i++)
{
k[i] = 0;
}
int r,l,j;
int c = 0;
int r_w,l_w,esp;
r = 0; l = 0;i = 0;
while(i != N){
r = 0; l = 0;
while(S[i+r]!= 'L')
{
r++;
}
r_w = i+r-1; l_w = i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_249265/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_249265/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 <float.h>
#include <limits.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
// 内部定数
#define D_SIZE_MAX 1005 // 最大サイズ
#define D_HEAP_MAX D_SIZE_MAX * D_SIZE_MAX * 2 // 最大ヒープ数
// 内部構造体 - ヒープ情報
typedef struct Heap {
int miWCnt; // ワープ数
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_249315/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_249315/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.Heap = type { i32, ... |
#include <stdio.h> // printf(), fgets()
#include <string.h> // strstr()
#include <ctype.h> // islower()
static const int NUL = '\0';
int
main(int argc, char** argv)
{
char line[81];
char output[81];
const char* key[3] = {"the", "this", "that"};
while (fgets(line, sizeof(line), stdin) !=... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_249388/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_249388/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 str[1024];
int i,j;
int len;
int flag=0;
memset(str,'\0',sizeof(str));
while(fgets(str,sizeof(str),stdin)!=NULL){
flag=0;
len=strlen(str);
while(1){
for(i=0;i<len;i++){
if(str[i]=='t'&&str[i+1]=='h'){
if(str[i+2]=='e'){
flag=... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_249481/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_249481/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 x[1010][110];
int main(void)
{
const int H=1000;
int n, m, a;
while (scanf("%d%d%d", &n, &m, &a), n) {
int i, j;
for(i=0;i<=n;++i) for(j=0;j<=H;++j) x[j][i]=i;
for(i=0;i<m;++i) {
int h, p, q;
scanf("%d%d%d", &h, &p, &q);
h=... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_249539/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_249539/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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.