Source_Code
stringlengths
69
484k
IR_Original
stringlengths
2.05k
17.9M
#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_245643/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245643/source.c" target datalayout = "e-m:e-p270: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...
// 2つの整数 a, b を読み込んで、a と b の大小関係を出力するプログラムを作成して下さい。 // 【入力】 // 入力は空白で区切られた2つの整数 a, b から構成されています。 // 【出力】 // a より b の方が大きければ // a < b // a より b の方が小さければ、 // a > b // a と b が等しければ、 // a == b // と出力して下さい。 // 【制約】 // -1,000 ≤ a, b ≤ 1,000 // 【例】 // 入力:1 2、出力:a < b // 入力:4 3、出力:a > b // 入力:5 5、出力:a == b #include<stdio...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_245700/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245700/source.c" target datalayout = "e-m:e-p270: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_245744/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245744/source.c" target datalayout = "e-m:e-p270: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_245788/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245788/source.c" target datalayout = "e-m:e-p270: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_245830/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245830/source.c" target datalayout = "e-m:e-p270: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> /* 整数を入れ替える */ void swap(int *a, int *b){ int c; c = *b; *b = *a; *a = c; } /* 配列を複製する */ /* void copy(int *d, const int *s, int length){ int i; for (i = 0; i < length; i++){ d[i] = s[i]; } } */ /* 与えられた配列を逆順にして複製する */ void copyRverse(int *d, const int *s, int length){ int i; for (i = 0...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_245881/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245881/source.c" target datalayout = "e-m:e-p270: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 100000000 int a(void); int b(char); void insert(void); int find(void); char C[14]; int X[N]; int n; int main() { char str[7]; int i; scanf("%d",&n); for(i = 0; i<n; i++) { scanf("%s%s",str,C); if(str[0] == 'i') { insert(); } else if(str[0] == 'f') { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_245931/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245931/source.c" target datalayout = "e-m:e-p270: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> char dict[30600000]; long encode(const char *key){ int n=strlen(key),i; long sum=0; long keta=1; for(i=0;i<n;i++){ if (key[i]=='A') sum = sum + keta * 1; else if (key[i]=='C') sum = sum + keta * 2; else if (key[i]=='G') sum = sum + keta * 3; else if ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_245975/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245975/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @dict = dso_local local_unn...
#include<stdio.h> #include<string.h> #define M 16777216 #define FOUND 1 char H[M]; 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; } int getKey( char str[] ) { int i; int key = 0, bas...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246017/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246017/source.c" target datalayout = "e-m:e-p270: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 local_unname...
#include <stdio.h> #include <string.h> #define S 1000000 #define H 12 #define len 14 int find(char *); int insert(char *); long long change1(char *); int change2(char); int h1(int); int h2(int); char array[S][H]; int main() { int n,i; char c[len],ord[7]; for(i=0;i<S;i++){ array[i][0]='\0'; } scanf("%...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246060/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246060/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @array = dso_local global [...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include <math.h> //============================================================================ #define pred(x) ((x)-1) #define succ(x) ((x)+1) //============================================================================ struct List{ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246103/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246103/source.c" target datalayout = "e-m:e-p270: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.List = type { ptr, ...
#include<stdio.h> #include<string.h> #define M 10000000/* 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; else return 0; } long long getKey(char str[]){ long...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246147/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246147/source.c" target datalayout = "e-m:e-p270: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 MAX 100000000 char str[14]; char H[MAX]; int find(void); void insert(void); int getChar(char); int getkey(void); int main(){ int i,j,n; char a[7]; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%s%s",a,str); if(a[0]=='i'){ insert(); } else if(a...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246190/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246190/source.c" target datalayout = "e-m:e-p270: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 1046527/* 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 lo...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246233/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246233/source.c" target datalayout = "e-m:e-p270: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> #include<stdlib.h> #define SIZE 10000 struct WORD { char value[13]; struct WORD *next; }; struct WORD* HashTable[SIZE]; //default: all NULL int HashFunc(char s[]) { long long hash = 0; for (int i = 0; s[i] != '\0'; i++) { hash += s[i] * (i + 1); } return (int)(hash * 13 ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246284/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246284/source.c" target datalayout = "e-m:e-p270: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.WORD = type { [13 x...
#include <stdio.h> #include <string.h> #define M 1000003/* 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 ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246327/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246327/source.c" target datalayout = "e-m:e-p270: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) { long long int a, b, k, m, na[100001], nb[100001], i, maxa, minb; scanf("%lld %lld", &a, &b); scanf("%lld %lld", &k, &m); for (i = 0; i < a; i++) { scanf("%lld", &na[i]); } for (i = 0; i < b; i++) { scanf("%lld", &nb[i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_2464/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_2464/source.c" target datalayout = "e-m:e-p270: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> #include <string.h> #define M 1000003 #define L 14 char array[M][L]; int getChar(char c){ if(c == 'A') return 1; if(c == 'C') return 2; if(c == 'G') return 3; if(c == 'T') return 4; } long long getKey(char c[]){ long long sum = 0, p = 1, i; for( i = 0; i < strlen(c); i++){ sum += ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246442/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246442/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @array = dso_local global [...
#include <stdio.h> #include <string.h> char HA[1<<21], T[256]; int main() { unsigned int n, s, t; char c; T['A'] = 4; T['C'] = 3; T['G'] = 2; T['T'] = 1; scanf("%d", &n); getchar(); while (n--) { s = 0; t = 1; int flag = ( c = getchar() ) == 'i'; wh...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246486/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246486/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @T = dso_local local_unname...
//Dictionary #include<stdio.h> #include<string.h> #define N 1000000 #define M 14 char arr[N][M]; int a2c(char word) { if(word == 'A') return 1; else if(word == 'C') return 2; else if(word == 'G') return 3; else if(word == 'T') return 4; else return 0; } int makeK(char word[]) { int sum = 0,i,x = 1; f...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246529/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246529/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @arr = dso_local global [10...
#include<stdio.h> int main() { int t1,t2,p,s,x1,x2,d; scanf("%d%d%d%d%d%d%d",&s,&x1,&x2,&t1,&t2,&p,&d); if(x1==x2) printf("0\n"); else { if(x1<x2 && d==1 && x1>=p) { if((x2-x1)*t2<=(x2-p)*t1) printf("%d\n",(x2-x1)*t2); else ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24658/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24658/source.c" target datalayout = "e-m:e-p270: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,now,flg,mid,bef,aft; char input[2048],str[2048]=""; scanf("%d%*c",&n); scanf("%s%*c",input); if(n%2){ str[mid=n/2]=input[0]; for(bef=-1,aft=1,now=1;now<n;now++){ if(now%2){ str[mid+bef]=input[now]; bef--; }else{ str[mid+aft]=input[now]; aft++; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24663/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24663/source.c" target datalayout = "e-m:e-p270: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/* 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 ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246673/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246673/source.c" target datalayout = "e-m:e-p270: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 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; } long long getKey(char str[]) { long long sum ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246716/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246716/source.c" target datalayout = "e-m:e-p270: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; else return 0;//use A C G T ' ' as 5 jinzhi data. } long long getKey(char...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246767/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246767/source.c" target datalayout = "e-m:e-p270: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 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; else return 0; } int getKey(char str[]){ int sum = ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246817/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246817/source.c" target datalayout = "e-m:e-p270: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 1046527 char H[M][14]; int h1(int key) { return key % M; } int h2(int key) { return 1 + key % (M - 1); } 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...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246860/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246860/source.c" target datalayout = "e-m:e-p270: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; else return 0; } long long getKey(char str[]){ long long sum=0,p=1,i; for(i=0;i<strlen(str);...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246903/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246903/source.c" target datalayout = "e-m:e-p270: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 MAX 244140625 int Hash[MAX]; char s[13]; int getChar(char); int getKey(); int find(); void insert(); int main(){ int n; char com[7]; scanf("%d" ,&n); while(n--){ scanf("%s %s" ,com ,s); if(com[0] == 'i'){ insert(); }else{ if(find...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246954/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246954/source.c" target datalayout = "e-m:e-p270: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, y, i; int a, b, c, d, e, f, g; while (scanf("%d", &n), n != 0){ a = b = c = d = e = f = g = 0; for (i = 0; i < n; i++){ scanf("%d", &y); if (y <= 9){ a++; } else if (10 <= y && y <= 19){ b++; } else if (20 <= y && y <= 29){ c++; } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246998/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246998/source.c" target datalayout = "e-m:e-p270: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,i,n,h[1000010],y[6]={0}; while(1){ for(i=0;i<7;i++){ y[i]=0; } scanf("%d",&n); if(n==0){ break; } for(i=0;i<n;i++){ scanf("%d",&h[i]); a=h[i]/10; if(a>=6){ a=6; } y[a]++; } for(i=0;i<7;i++){ printf("...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247047/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247047/source.c" target datalayout = "e-m:e-p270: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 cmpfunc (const void * a, const void * b) { return ( *(int*)a - *(int*)b ); } int main(void){ int n,i,c=0,k=0,j,m[100100]={0}; long long int a[100090]; scanf("%ld",&n); for(i=0;i<n;i++){ scanf("%lld",&a[i]); } qsort(a, n, sizeof(long long i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247098/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247098/source.c" target datalayout = "e-m:e-p270: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){ return *(int*)a - *(int*)b; } int main(void){ 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 tmp = a[0]; int count = 0;...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247140/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247140/source.c" target datalayout = "e-m:e-p270: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, j, ans; int a[16666670*2] = {}; long int k; scanf("%d", &n); for (int i = 0; i < n; i++) { scanf("%ld", &k); long int s = k / 30, t = k % 30; if ((a[s] & (0b1 << t)) == 0) { a[s] = a[s] | (0b1 << t); ans++; } else { a[s] = a[s] & ~(0b1 << t); ans...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247184/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247184/source.c" target datalayout = "e-m:e-p270: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,i,sum; scanf("%d",&n); while(n){ sum=0; n/=4; for(i=0;i<n;i++){ scanf("%d",&a); sum += a; } printf("%d\n",sum); scanf("%d",&n); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247234/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247234/source.c" target datalayout = "e-m:e-p270: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 cmp(const void * n1, const void * n2) { if (*(long *)n1 > *(long *)n2) { return 1; } else if (*(long *)n1 < *(long *)n2) { return -1; } else { return 0; } } int main(void){ long n; scanf("%ld", &n); long a[n]; for (long i = 0; i < n; i++) { scanf(...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247357/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247357/source.c" target datalayout = "e-m:e-p270: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 asc(const void* a, const void* b) { return *(int*)a - *(int*)b; } int main(void) { int n; int a[200000]; scanf("%d", &n); for (int i = 0; i < n; i++) scanf("%d", &a[i]); qsort(a, n, sizeof(int), asc); for (int i = 0; i < n - 1; i++) { if (a[i] == a[i + 1]) { pr...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247414/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247414/source.c" target datalayout = "e-m:e-p270: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 asc(const void *a, const void *b) { return *(int *)a - *(int *)b; } int main(void) { int N; int A[200000]; int i; int j; i = -1; scanf("%d", &N); while (++i < N) scanf("%d", &A[i]); qsort(A, N, sizeof(int), asc); i = -1; j = 0; while (j < N) { if (A[i] ==...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247458/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247458/source.c" target datalayout = "e-m:e-p270: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> #ifdef TEST struct test { int ans; } td[] = { {}, }; #endif int cmp(const void *a, const void *b) { return *(long *)a - *(long *)b; } void solver(long n, long *a) { long i; long p; qsort(a, n, sizeof(long), cmp); p = a[0]; for(i = 1; i < n; i++...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247508/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247508/source.c" target datalayout = "e-m:e-p270: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.2 = private unnamed_a...
#include <stdio.h> #include <math.h> int main () { int i, j, n, x, c; double m; c = 0; scanf("%d", &n); for (i = 1; i <= n; i++) { scanf("%d", &x); m = sqrt(x); if (x == 2 || x == 3) c += 1; for (j = 2; j <= m + 1; j++) { if (x % 2 == ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247559/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247559/source.c" target datalayout = "e-m:e-p270: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 i, count=0, n, x; scanf("%d", &n); for(i = 0; i < n; i++){ scanf("%d", &x); if(isprime(x) == 0) count++; else continue; } printf("%d\n", count); return 0; } int isprime(int x){ int i=3; if(x == 2) return 0; if(x < ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247609/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247609/source.c" target datalayout = "e-m:e-p270: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> #define anD && #define oR || #define max(a,b) (((a)>(b))?(a):(b)) #define min(a,b) (((a)<(b))?(a):(b)) #define rep(i,n) for((i)=0;(i)<(n);(i)++) int is_prime( long long p) { int hantei,i; if (p == 1) { return 0; } else if (p == 2) { return 1; } else { f...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247681/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247681/source.c" target datalayout = "e-m:e-p270: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 i,j,k,l,num,count=0,number[10000],flag=0; scanf("%d",&num); for(l=0;l<num;l++) { scanf("%d",&number[l]); } for(i=0;i<num;i++) { flag=0; if(number[i]==2) flag=0; else if(number[i]%2==0) flag=1; else{ for(j=3;j...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247739/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247739/source.c" target datalayout = "e-m:e-p270: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 i, count=0, n, x; scanf("%d", &n); for(i = 0; i < n; i++){ scanf("%d", &x); if(isprime(x) == 0) count++; else continue; } printf("%d\n", count); return 0; } int isprime(int x){ int i=3; if(x == 2) return 0; if(x...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247782/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247782/source.c" target datalayout = "e-m:e-p270: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,data[100000],i,c=0; scanf("%d",&n); for(i=0 ; i<n ; i++){ scanf("%d",&data[i]); if(isPrime(data[i])==0) c++; } printf("%d\n",c); return 0; } int isPrime(int x){ int i,sq; sq=(int)sqrt(x); if(x==2) return 0; els...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247832/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247832/source.c" target datalayout = "e-m:e-p270: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 is_prime(int n) { int i; if (n == 2) return 1; if (n % 2 == 0) return 0; for (i = 3; i * i <= n; i += 2) { if (n % i == 0) return 0; } return 1; } int main(void) { int N; scanf("%d", &N); int i, n; int cnt = 0; for (i = 0; i ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247883/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247883/source.c" target datalayout = "e-m:e-p270: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,count=0; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&x); if(isPrime(x)) count++; } printf("%d\n",count); return 0; } int isPrime(int x) { int i; if(x<2) return 0; if(x==2) return 1; if(x%2==0) return 0; for(i=3;i*i<=x;i+=2...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247926/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247926/source.c" target datalayout = "e-m:e-p270: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(int); int main() { int n,x,i,cnt=0; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&x); if(Prime(x) == 1) cnt++; } printf("%d\n",cnt); return 0; } int Prime(int x) { int i; if(x<2) return 777; if(x==2) return 1; if(x%2==0) return ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247977/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247977/source.c" target datalayout = "e-m:e-p270: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(int); int main(){ int A[10000]; int i,n; int count=0; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&A[i]); } for(i=0;i<n;i++){ if(prime(A[i]))count++; } printf("%d\n",count); return 0; } int prime(int A){ int j; if(A<2)return 0; if(A==2)return 1; if(A%2==0)return 0; for(...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248019/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248019/source.c" target datalayout = "e-m:e-p270: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(int); int main() { int n, i, x; int ans = 0; scanf ("%d", &n); for (i=0; i<n; i++){ scanf ("%d", &x); if (prime(x)) ans++; } printf ("%d\n", ans); return 0; } int prime(int x) { int i = 3; /*1????????§??????????°?????\???°*/ if (x==2...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248062/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248062/source.c" target datalayout = "e-m:e-p270: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,sum=0,min; scanf("%d",&a); scanf("%d",&b); scanf("%d",&c); b=b/2; c=c/4; if(a<=b && a<=c){ min=a; } else if(b<=a && b<=c){ min=b; } else{ min=c; } if(min>0){ sum=min+(min*2)+(min*4); print...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24812/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24812/source.c" target datalayout = "e-m:e-p270: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 isPrime(long n){ if(n==1) return 0; for(long i=2;i*i<=n; i++){ if(n%i==0) return 0; } return 1; } int main(void){ long n,i,count=0; scanf("%ld",&n); for(i=0;i<n;i++){ long p; scanf("%ld",&p); if(isPrime(p)) count++; } printf("%ld\n",count); ret...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248178/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248178/source.c" target datalayout = "e-m:e-p270: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 cls(int); int main() { int n; int p; int i; int num=0; scanf("%d",&n); for(i=0;i<n;i++) { scanf("%d",&p); if(cls(p))num++; } printf("%d\n",num); return 0; } int cls(int n) { int num=(int)sqrt(n); int i; for(i=2;i<=num;i++) { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248228/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248228/source.c" target datalayout = "e-m:e-p270: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 hantei(int a){ int i; if(a<2) return 0; else if(a==2) return 1; if(a%2==0) return 0; for(i=3;i*i<=a;i+=2){ if(a%i==0)return 0; } return 1; } int main(){ int i,n,a,c=0; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&a); if(hantei(a))...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248279/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248279/source.c" target datalayout = "e-m:e-p270: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 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) return 0; for(i=n;i>0;i--){ scanf("%d",&num[i]); if(num[i]>=MIN&&num[i]<=MAX){ if(num[i]!=2&&num[i]%2==0) count++; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248321/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248321/source.c" target datalayout = "e-m:e-p270: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 judge(int x){ int j; if(x<2) return 0; else if(2<=x && x<=3) return 1; else if(x%2==0) return 0; else{ for(j=3;j<=sqrt(x);j+=2){ if(x%j==0) return 0; } return 1; } } int main(){ int n, x, i, j, cont=0; int a[10000]; scanf("%d",&n); for(...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248365/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248365/source.c" target datalayout = "e-m:e-p270: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(int x); int main (){ int i,n,a[10001],count=0; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&a[i]); count+=prime(a[i]); } printf("%d\n",count); return 0; } int prime(int x){ int i; if(x==2)return 1; else if(x%2==0||x==1)return 0; for(i=3;i*i<x+1;i++){ if(x...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248415/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248415/source.c" target datalayout = "e-m:e-p270: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 MAX 100000 int P[MAX],F[MAX]={0},i,j,N,x,p=0,r=0; int main() { for(i=2;i<MAX;i++) if(!F[i]) { P[p++]=i; for(j=i*2;j<MAX;j+=i) F[j]=1; } for(scanf("%d",&N);N--;) { scanf("%d",&x); for(i=0;i<p;i++) if(x!=P[i]&&!(x%P[i]))break; if(i==p)r++; } printf("%d\n",r); ret...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248509/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248509/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @F = dso_local local_unname...
#include<stdio.h> #include<math.h> double a,b; int N; double spd[1009][4]; int main(){ scanf("%lf %lf",&a,&b); scanf("%d",&N); int i,j; for(i = 1 ; i <= N ; i++) scanf("%lf %lf %lf",&spd[i][1],&spd[i][2],&spd[i][3]); double min = 9999999; for(i = 1 ; i <= N ; i++){ double dist = pow((spd[i][1]-a),2) + pow((s...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24856/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24856/source.c" target datalayout = "e-m:e-p270: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 num,i,j,n,count = 0; scanf("%d",&num); for(i=0;i<num;i++){ scanf("%d",&n); for(j=2;j*j<=n;j++){ if(n%j==0)break; } if(j*j>n) count++; } printf("%d\n",count); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248602/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248602/source.c" target datalayout = "e-m:e-p270: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,i,j,flag,count = 0; scanf("%d",&n); for(i = 0 ; i < n ; i++){ flag = 0; scanf("%d",&num); if(num == 2){ count++; continue; } for(j = 2 ; j <= sqrt(num) ; j++){ if(num%j == 0){ flag = 1; break; } } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248653/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248653/source.c" target datalayout = "e-m:e-p270: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 iP(int); int main(){ int n,a,b,i,count=0; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&a); b=iP(a); if(b==1)count++; } printf("%d\n",count); } int iP(int a){ int i; if(a<2)return 0; for(i=2;i*i<=a;i++){ if(a%i==0)return 0; } return 1; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248697/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248697/source.c" target datalayout = "e-m:e-p270: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 <time.h> #include <limits.h> #define PI 3.141592653589793 #define max(a,b) (a < b) ? (b) : (a) #define min(a,b) (a > b) ? (b) : (a) #define FOR(i,a,b) for(i = a ; i <= b ; i++) #define ROF(i,a,b) for(i = a ; i >= b ; i--) #define RAD...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24874/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24874/source.c" target datalayout = "e-m:e-p270: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 n, i, s, c1, c2; scanf( "%d", &n ); int a[n]; for( i = 0; i < n; i++ ){ scanf( "%d", &a[i] ); } c1 = 0; c2 = 0; for( i = 0; i < n; i++ ){ for( s = 2; s <= sqrt(a[i]); s++ ){ if( a[i] % s == 0 ){ c1 = 1; break; } } if( c1 == 0 ){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248790/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248790/source.c" target datalayout = "e-m:e-p270: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 count(int); int main(void) { int c=0, i, n, N; scanf("%d", &n); for(i=0; i<n; i++){ scanf("%d", &N); c+=count(N); } printf("%d\n", n-c); return 0; } int count(int N) { int j; if(N>100){ for(j=3; j<=sqrt(N); j+=2){ if(N%j==0){ return 1; } else if(N%...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248833/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248833/source.c" target datalayout = "e-m:e-p270: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(int); int main(){ int n, x, i; int cnt=0; scanf("%d", &n); for(i=0; i<n; i++) { scanf("%d", &x); if(Prime(x))cnt++; } printf("%d\n", cnt); return 0; } int Prime(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<=...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248884/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248884/source.c" target datalayout = "e-m:e-p270: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 i,n,integer,count=0; scanf("%d",&n); for(i=1;i<=n;i++){ scanf("%d",&integer); if(isPrime(integer) == 1){ count++; } } printf("%d\n",count); return 0; } int isPrime(int x){ int i; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248927/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248927/source.c" target datalayout = "e-m:e-p270: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> static const int N = 10000; int isprime(int x); int main(){ int n, i, count = 0; int A[N]; scanf("%d", &n); for ( i = 0; i < n; i++ ){ scanf("%d", &A[i]); if(isprime(A[i]) > 0) count++; } printf("%d\n",count); return 0; } int isprime(int x){ int i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248978/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248978/source.c" target datalayout = "e-m:e-p270: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> #define max 10000 typedef long long ll; int main(){ ll i,a,b,n,x[max],y[max],v[max]; double min,cur; scanf("%I64d%*c%I64d",&a,&b); scanf("%I64d",&n); for(i=0;i<n;i++){ scanf("%I64d%*c%I64d%*c%I64d",&x[i],&y[i],&v[i]); } min=-1; for(i=0;i<n;i++){ cur=sqrt...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24902/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24902/source.c" target datalayout = "e-m:e-p270: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> #define T 1 #define F 0 int isPrime(int a) { int i; if(a < 2) return F; else if(a == 2) return T; if (a%2 == 0) return F; for(i=3; i*i<=a; i+=2){ if (a%i == 0) return F; } return 1; } int main() { int n,a,i; int c = 0; scanf("%d",&n); for (i=0; i<n; i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_249106/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_249106/source.c" target datalayout = "e-m:e-p270: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 a,b, n, i, x, y, v; double t, min; scanf("%d %d",&a,&b); scanf("%d",&n); scanf("%d %d %d",&x,&y,&v); if (v!= 0) min = sqrt((x-a)*(x-a) + (y-b)*(y-b))/v; for(i=1;i<n;i++) { scanf("%d %d %d",&x,&y,&v); if (v != 0) t = sqrt((x-a)*(x-a) + (y...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24915/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24915/source.c" target datalayout = "e-m:e-p270: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() { int a,b,x[1000],y[1000],v[1000]; int n,i; double min; scanf("%d %d",&a,&b); scanf("%d",&n); for(i=0;i<n;i++) { scanf("%d %d %d",&x[i],&y[i],&v[i]); } min=sqrt((a-x[0])*(a-x[0])+(b-y[0])*(b-y[0]))/v[0]; for(i=0;i<n;i++) {...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24920/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24920/source.c" target datalayout = "e-m:e-p270: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(){ char s[100010]={}; int i,d[100010]={}; int c[2]={}; scanf("%s",s); for(i=0;s[i];i++){ if(s[i]=='R'){ c[i%2]++; if(s[i+1]=='L'){ d[i ]+=c[ i%2]; d[i+1]+=c[1-i%2]; c[0]=c[1]=0; } } } while(i--){ if(s[i]=='L'){ c[i%2]++; if(i&&s[i-1...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_249294/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_249294/source.c" target datalayout = "e-m:e-p270: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 c(char *p,int d){return ((26+*p-*(p+1))%26==d);} int a(char *p){return((*p<'a')||(*p>'z'));} char *decode (char *inbuf, int s) { int p = 0; while (inbuf[p] != 0) { if ((inbuf[p] >= 'a')&&(inbuf[p]<='z')) { int t = inbuf[p] + s; //inbuf[p] = inbuf[p] + (cha...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_249344/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_249344/source.c" target datalayout = "e-m:e-p270: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> #include<math.h> int main( ) { int a,b,x[1001]={0},y[1001]={0},v[1001]={0},t[1001]={0},i,j,k,n; float min,l,p=999999999; scanf("%d %d",&a,&b); scanf("%d",&n); for(i=0;i<n;i++) { scanf("%d %d %d",&x[i],&y[i],&v[i]); l=(sqrt(((x[i]-a)*(x[i]-a))+((y[i]-b)*(y[i]-b))))/v[i]; if(p>l) { p=l;...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24946/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24946/source.c" target datalayout = "e-m:e-p270: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> #include <math.h> #include <limits.h> double dist(int a,int b,int x, int y); int main() { int a,b,x,i,y,v,n; double t,min=99999; scanf("%d%d%d",&a,&b,&n); for(i=0;i<n;i++){ scanf("%d%d%d",&x,&y,&v); t=dist(a,b,x,y)/v; if(t<min) min=t; } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24951/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24951/source.c" target datalayout = "e-m:e-p270: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> typedef struct aml{ int height; int a; int b; struct aml *next; struct aml *yoko; struct aml *yl; }aml; aml *top; void add(int h,int a,int b){ aml *i,*j,*n; if(top){ for(i=top,j=i;i&&i->height>h;i=i->next) j=i; if(i&&i->height==h){ if(i->yoko){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_249568/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_249568/source.c" target datalayout = "e-m:e-p270: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.aml = type { i32, i...
/* cat <<EOF >mistaken-paste */ #pragma GCC diagnostic ignored "-Wincompatible-pointer-types" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #include <math.h> #define BIG 2000000007 #define MOD 1000000007 typedef unsigned long long ull; typedef signed long long sll; #define N_MAX...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_249618/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_249618/source.c" target datalayout = "e-m:e-p270: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.hw = type { i32, i3...
#include <stdio.h> int main(void) { int N; int i, a; scanf("%d", &N); a = 1; for (i = 0; a < N + 2; i++){ a *= 2; } printf("%d\n", i - 1); return (0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_249661/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_249661/source.c" target datalayout = "e-m:e-p270: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 MAX_STONES 100000 #define MAX_COST 1000000000 #define min(a, b) ( (a) < (b) ? (a) : (b) ) #define SANITY 0 #define DEBUG 0 int min_frog_tabulation(int heights[], int n, int dp[]); int min_frog_tabulation_with_k(int heights[], int n, ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_249704/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_249704/source.c" target datalayout = "e-m:e-p270: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 compare(const void *a,const void *b){ return *(int*)a-*(int*)b; } int minsiumai(int n, int a[n]){ qsort(a,n,sizeof(a[n]),compare); return a[0]; } int main(void){ int n,i,k,j; scanf("%d",&n); scanf("%d",&k); int h[n],c[n],a[k]; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_249748/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_249748/source.c" target datalayout = "e-m:e-p270: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 max(a,b) (((a)>(b)) ? (a):(b)) #define min(a,b) (((a)<(b)) ? (a):(b)) #define rep(i,s,n) for(int i=(int)s;i<(int)(n);i++) #define MAX 1000000000 #define MIN -1000000000 void swap(int *a,int *b){ int tmp=*b; *b=*a; *a=tmp; } int cp_min(const int *a,const int *b) { return *a-...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_249805/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_249805/source.c" target datalayout = "e-m:e-p270: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> long abso(long x){ if(x>=0){ return x; }else{ return -x; } } long main(void){ long N; int K; scanf("%ld%d",&N,&K); long point[N]; long dp[N]; for(long i = 0;i<N;i++){ scanf("%ld",&point[i]); dp[i] = 0; } for(long i = 1;i<N;i++){ for(int j = 1;j<=K;j++){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_249849/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_249849/source.c" target datalayout = "e-m:e-p270: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 n1,n2,m,i,k; scanf("%d%d%d%d",&n1,&n2,&k,&m); int a[n1],b[n2]; for(i=0;i<n1;i++) scanf("%d",&a[i]); for(i=0;i<n2;i++) scanf("%d",&b[i]); if(a[k-1]<b[n2-m]) printf("YES\n"); else printf("NO\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_2499/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_2499/source.c" target datalayout = "e-m:e-p270: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> #include <math.h> int main() { double x1, y1, x2, y2; scanf("%lf%lf%lf%lf", &x1, &y1, &x2, &y2); printf("%lf\n", (double)hypot(x1-x2, y1-y2)); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_249942/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_249942/source.c" target datalayout = "e-m:e-p270: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) { double x1, y1, x2, y2, d; scanf("%lf %lf %lf %lf",&x1, &y1, &x2, &y2); d = sqrt( (x2-x1)*(x2-x1) + (y2-y1)*(y2-y1) ); printf("%f\n",d); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_249986/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_249986/source.c" target datalayout = "e-m:e-p270: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){ double x1,y1,x2,y2; scanf("%lf %lf %lf %lf",&x1,&y1,&x2,&y2); printf("%0.8lf\n",sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2))); return(0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250027/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250027/source.c" target datalayout = "e-m:e-p270: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<ctype.h> #include<string.h> #include <math.h> int main(void){ double x1,x2,y1,y2,z,i,j,k,m; scanf("%lf %lf %lf %lf",&x1,&x2,&y1,&y2 ); printf("%f\n",sqrt(pow(y1-x1,2)+pow(y2-x2,2)) ); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250070/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250070/source.c" target datalayout = "e-m:e-p270: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){ double x1,x2,y1,y2,X,Y; scanf("%lf %lf %lf %lf",&x1,&y1,&x2,&y2); X=x2-x1; Y=y2-y1; printf("%lf\n",hypot(X, Y)); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250120/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250120/source.c" target datalayout = "e-m:e-p270: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) { double x1, x2, y1, y2; scanf("%lf %lf %lf %lf", &x1, &y1, &x2, &y2); printf("%lf\n", sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2))); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250164/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250164/source.c" target datalayout = "e-m:e-p270: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){ double x1, y1, x2, y2; double X, Y; scanf("%lf %lf %lf %lf", &x1, &y1, &x2, &y2); X = pow((x2 - x1), 2); Y = pow((y2 - y1), 2); printf("%.8f\n", sqrt(X + Y)); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250207/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250207/source.c" target datalayout = "e-m:e-p270: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 SQ(X) \ ( (X) * (X) ) int main ( int argc, char *argv[ ] ) { double x1, y1, x2, y2; scanf ( "%lf%lf%lf%lf", &x1, &y1, &x2, &y2 ); printf ( "%.4f\n", sqrt ( SQ( x2 - x1 ) + SQ( y2 - y1 ) ) ); return ( 0 ); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250250/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250250/source.c" target datalayout = "e-m:e-p270: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() { #ifdef TEST freopen("input", "r", stdin); #endif double x1, x2, y1, y2; scanf("%lf", &x1); scanf("%lf", &y1); scanf("%lf", &x2); scanf("%lf", &y2); printf("%f", sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2))); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250294/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250294/source.c" target datalayout = "e-m:e-p270: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){ double x1,x2,y1,y2; scanf("%lf %lf %lf %lf", &x1, &y1, &x2, &y2); printf("%lf\n", sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2))); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250337/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250337/source.c" target datalayout = "e-m:e-p270: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() { double p1[2], p2[2]; scanf("%lf %lf %lf %lf", &p1[0], &p1[1], &p2[0], &p2[1]); double diff = (p1[0]-p2[0])*(p1[0]-p2[0]) + (p1[1]-p2[1])*(p1[1]-p2[1]); printf("%lf\n", sqrt(diff)); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250380/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250380/source.c" target datalayout = "e-m:e-p270: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) { double x1, x2, y1, y2; scanf("%lf %lf %lf %lf", &x1, &y1, &x2, &y2); /*2点間の距離を求めて表示*/ printf("%f\n", sqrt((x2 - x1)*(x2 - x1) + (y2 - y1)*(y2 - y1))); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250423/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250423/source.c" target datalayout = "e-m:e-p270: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> char lower(char c); int main(){ double x1,y1,x2,y2; double X,Y; scanf("%lf %lf %lf %lf", &x1,&y1,&x2,&y2); X = x1-x2; Y = y1-y2; printf("%f\n",sqrt(X*X+Y*Y)); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250467/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250467/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { int n; scanf("%d",&n); if(n==2) { printf("2\n"); return 0; } printf("1\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25051/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25051/source.c" target datalayout = "e-m:e-p270: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 i, l[10], v1, v2; double x, k; while(scanf("%d", &l[0]) != EOF){ k = l[0]; for(i = 1; i < 10; i++){ scanf(",%d", &l[i]); k += l[i]; } scanf(",%d,%d", &v1, &v2); x = k*v1 / (v1+v2); k = 0; for(i = 0; i < 10; i++){ k += l[i]; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250553/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250553/source.c" target datalayout = "e-m:e-p270: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 tr[10],v1,v2,i; while(scanf("%d" ,&tr[0])!=EOF){ double a = 0; int sum = tr[0]; for(i = 1 ; i < 10 ; i++){ scanf(",%d" ,&tr[i]); sum += tr[i]; } scanf(",%d,%d" ,&v1 ,&v2); a = v1*((double)su...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250632/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250632/source.c" target datalayout = "e-m:e-p270: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...