Source_Code
stringlengths
69
484k
IR_Original
stringlengths
2.05k
17.9M
#include<stdio.h> #include<stdlib.h> #include<math.h> #include<string.h> int W_Length(char *str){ int length = 0; while(*str++ != '\0') length++; return length; } void swap(int *a, int *b){ int temp; temp=*a; *a=*b; *b=temp; } //swap(&a, &b) double deg(double theta){//deg to theta return theta*(2*3.1415...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250683/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250683/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; int a[30000]; scanf("%d", &n); for(int x = 1;x <= 98; x++){ for(int y = 1;y<=x && y <= 140 -x;y++){ for(int z = 1;z<=y;z++){ a[(x+y+z)*(x+y+z) - x*y - x*z - y*z - 1] += 6; if(x == y || x == z || y == z){ a[(x+y+z)*(x+y+z) - x*y - x*z ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250726/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250726/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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"); else printf("1"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25077/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25077/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include<stdio.h> #include<string.h> int main() { int i,j,k,l,n,t,d,x; scanf("%d",&x); if(x==2) { printf("2"); } else { printf("1"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25082/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25082/source.c" target datalayout = "e-m:e-p270:32:32-p271: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; while(scanf("%d %d", &a, &b) != -1){ if(a+b < 10){ printf("1\n"); } else if(a+b < 100){ printf("2\n"); } else if(a+b < 1000){ printf("3\n"); } else if(a+b < 10000){ printf("4\n"); } else if(a+b < 100000){ printf("5\n"); } else if(a+b < 1000000){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250863/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250863/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
/* 非負整数 n について、n>1 のときに n/10 を行う回数が求めるそれ */ #include <stdio.h> int main() { int a, b, k; double c; while(scanf("%d%d", &a, &b) != EOF) { k=0; c = a+b; while(c >= 1.0) { c = c/10.0; k++; } printf("%d\n", k); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250906/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250906/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, v, n; scanf("%d", &v); if(v!=2){ v=1; } printf("%d\n", v); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25095/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25095/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> int main(void){ int a,b; while(scanf("%d %d",&a,&b)!=EOF){ int s = a + b; int j; for(j=0;s>0;j++)s/=10; printf("%d\n",j); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_250993/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_250993/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,temp; int i,num; while(scanf("%d%d",&a,&b)!=EOF){ temp=a+b; num=0; while(temp!=0){ temp=temp/10; num++; } printf("%d\n",num); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251035/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251035/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; while (scanf("%d %d", &a, &b) != EOF){ a = a + b; b = 0; do{ b++; a /= 10; }while (a != 0); printf("%d\n", b); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251079/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251079/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, n; int i; int total; while (scanf("%d %d", &a, &b) != EOF){ n = a + b; total = 1; while (1){ if (n < 10)break; else { n = n / 10; total++; } } printf("%d\n", total); } return (0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251121/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251121/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, sum, count; while (scanf("%d %d",&a,&b)!=EOF){ if (0 <= a, b <= 1000000){ count = 1; sum = a + b; while (sum/10 >= 1){ sum /= 10; count++; } printf("%d\n",count); } } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251172/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251172/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { int a, b, c, ct; while (scanf("%d %d", &a, &b) != EOF) { ct = 0; c = a + b; while (c != 0) { c /= 10; ct++; } printf("%d\n", ct); } return (0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251215/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251215/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void){ int a,b,c,i; while(scanf("%d%d",&a,&b)!=EOF) { i=0; c = a+b; while(c!=0) { c = c/10; i++; } printf("%d\n",i); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251259/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251259/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void){ int a, b, c, n; while(scanf("%d %d", &a, &b) != EOF){ c=a+b; n=0; do{ n++; c /= 10; }while(c); printf("%d\n", n); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251301/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251301/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<stdlib.h> #include<string.h> int i,j,a,b,c,ans=0; int main(){ while(scanf("%d %d",&a,&b)!=EOF){ c=a+b; while(c!=0)c=c/10,ans++; printf("%d\n",ans);ans=0; } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251367/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251367/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @ans = dso_local local_unna...
#include <stdio.h> int main() { int a,b; while((scanf("%d%d", &a,&b)) != EOF){ int s = a+b,w=1; while(s>=10){ s /= 10; w++; } printf("%d\n",w); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251424/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251424/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { int a,b,c,i,j; int n; for(i=0;scanf("%d",&a)!=EOF;i++){ scanf("%d",&b); c=a+b; n=1; while(1){ if(c<10){ break; } c=c/10; n++; } printf("%d\n",n); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251475/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251475/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,f=0,n=10,o=1; while(scanf("%d %d",&a,&b) != EOF) { o=1;f=0; a=a+b; while(o==1) { if(a / n) { f++; n=n*10; o=1; } else { printf("%d\n",f+1); o=0;n=10; } } } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251525/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251525/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 keta[10]; int a,b; while(scanf("%d %d",&a,&b)!=EOF) {sprintf(keta,"%d",a+b);printf("%d\n",strlen(keta));} return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251569/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251569/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void){ int a,b,c=0,n; while(scanf("%d %d",&a,&b)!=EOF){ c=a+b; n=1; while(c>=10){ c=c/10; n++; } printf("%d\n",n); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251626/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251626/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> typedef long long (ll); int main() { ll a,b,c,d,e,f,g,h,i,j,k,l,m,n,L,R; scanf("%lli",&a); for(;a;a--) { scanf("%lli%lli%lli",&b,&c,&e); f=g=e;k=1; for(d=1;d<b-1;d++) { scanf("%lli",&h); if(k) { i=f-c+1; if(h>i)i=h; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25167/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25167/source.c" target datalayout = "e-m:e-p270:32:32-p271: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<string.h> #include<math.h> int solve() { int a[101]; int n; int i,i1,i2; int ma=0,temp=0; scanf("%d",&n); for(i=0;i<n;i++) { scanf("%d",&a[i]); temp+=a[i]; if(ma<temp) { ma=temp; } } r...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25172/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25172/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 a, b, c; while(scanf("%lld%lld", &a, &b)!=EOF) { c = a + b; if(c<10) { printf("1\n"); } else if(c>9 && c<100) { printf("2\n"); } else if(c>99 && c<1000) ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251763/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251763/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; int c; int count; while (scanf("%d %d", &a, &b) != EOF){ c = (a + b); count = 0; while (c != 0){ c = c / 10; count++; } printf("%d\n", count); } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251820/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251820/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int a = 0; int b = 0; int d = 0; int d10 = 1; int main(){ while(scanf("%d %d", &a, &b)!=EOF){ if(a ) d = 0; int d10 = 1; while(1){ d++; d10 = d10 * 10; if(d10 > a + b){ break; } } printf("%d\n", d); } r...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251864/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251864/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @a = dso_local global i32 0...
#include <stdio.h> #define len 100005 typedef struct q{ char name[100]; int time; }q; q pro[len]; int head,tail,n; q enqueue(q x){ pro[tail]=x; tail=(tail+1)%len; } q dequeue(void){ q x=pro[head]; head=(head+1)%len; return x; } int main(void){ int n,max,total=0,i; q x; scanf("%d ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251907/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251907/source.c" target datalayout = "e-m:e-p270: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.q = type { [100 x i...
#include <stdio.h> #define MAX 100000 typedef struct { char name[10]; int time; } process; void enqueue(process); process dequeue(void); int head = 0; int tail = 0; process Q[MAX]; int main(){ int i, n, q, total=0; process p; scanf("%d%d", &n, &q); for(i=0; i<n; i++){ scanf("%s%d", p.name,...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_251950/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_251950/source.c" target datalayout = "e-m:e-p270: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.process = type { [1...
#include <stdio.h> int max(int a, int b){ if(a < b) return b; return a; } int main (void){ int T, n, r[100],m, b[100], i, j, sum1, sum2, m1, m2; char s[101]; scanf( "%d", &T ); for( i = 0; i < T; i++ ){ scanf( "%d", &n ); for( j = 0; j < n; j++) scanf( "%d", &r[j]); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25200/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25200/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 name 10 #define N 100005 typedef struct{ char s[name]; int time; }R; R a[N+1]; int head,tail; void Enqueue(R ); R Dequeue(void); int main() { int i,n,q,T=0; R y; scanf("%d%d",&n,&q); for(i=0;i<n;i++){ scanf("%s%d",y.s,&y.time); Enqueue(y); } while(n!=0){ y=Dequeue();...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252043/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252043/source.c" target datalayout = "e-m:e-p270: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.R = type { [10 x i8...
#include<stdio.h> #include<string.h> #define LEN 100005 typedef struct pp{ char name[100]; int t; }P; int initialize(); int isEmpty(); int isFull(); void enqueue(P); P dequeue(); P Q[LEN+1]; int head, tail, n; int main() { int elaps = 0; int i, q; P u; scanf("%d %d", &n, &q); for ( i = 1; i <= n; i+...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252087/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252087/source.c" target datalayout = "e-m:e-p270: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.pp = type { [100 x ...
#include <stdio.h> #include <string.h> int main() { int test, mark, len, count; scanf("%d", &test); getchar(); char sign[110]; for (int i=0; i<test; i++) { scanf("%[^\n]", sign); getchar(); len=strlen(sign); if (len%2) { printf("NO\n"); continue; } else if (sign[0]==')' || sign[len-1]=='(') { print...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25213/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25213/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 MAX 100001 typedef struct { char name[11]; int time; } process; process Q[MAX] = {0}; int head, tail; void initialize(); int isEmpty(); int isFull(); void enqueue(process x); process dequeue(); void showQue(process Que[], int n) { int i; for (i = 0; i < n; ++i) { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252173/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252173/source.c" target datalayout = "e-m:e-p270: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.process = type { [1...
#include <stdio.h> #include <string.h> typedef struct{ char name[10]; int t; } Process; Process Q[100001]; int n,q,head,tail; Process dequeue(){ Process x; x=Q[head]; if((head+1)>n+1) head=1; else head++; return x; } void enqueue(Process x){ Q[tail]=x; if((tail+1)==n+2) tail=1; e...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252216/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252216/source.c" target datalayout = "e-m:e-p270: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.Process = type { [1...
#include <stdio.h> #include <stdlib.h> int max(int a,int b) { if(a<b)return(b); return(a); } int main() { int q;scanf("%d",&q); while(q--) { int n;scanf("%d",&n); int a[n],j; for(j=0;j<n;j++) { scanf("%d",(a+j)); } int m;scanf("%d",&m); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25226/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25226/source.c" target datalayout = "e-m:e-p270:32:32-p271: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<stdint.h> #include<inttypes.h> #define PROCESS_MAX 100001 typedef struct{ char name[11]; uint_fast32_t time ; } s_process; int main(void) { uint_fast32_t n, q, head = 0, tail = 0, process_time = 0; s_process process[PROCESS_MAX]; scanf("%"SCNu32" %"SCNu32...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252360/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252360/source.c" target datalayout = "e-m:e-p270: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.s_process = type { ...
#include <ctype.h> #include <stdio.h> #include <stdlib.h> #include <string.h> typedef struct node *link; typedef struct process proc; typedef proc Item; struct process { char name[11]; int time; }; struct node { Item item; link next; }; static link head, tail; void Queueinit (int maxN) { head = NULL; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252403/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252403/source.c" target datalayout = "e-m:e-p270: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.node = type { %stru...
#include <stdio.h> typedef struct{ char name[11]; int t; int prev; int next; }QUEUE; int main(void){ int i; int n,q; scanf("%d %d",&n,&q); QUEUE Q[n]; for(i=0;i<n;i++){ scanf("%s %d",Q[i].name,&Q[i].t); if(i==0)Q[i].prev=n-1; else Q[i].prev=i-1; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252447/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252447/source.c" target datalayout = "e-m:e-p270: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.QUEUE = type { [11 ...
/* * * queue * */ #include<stdio.h> #define MAX_N 100000 int head=0, tail; struct task{ int time; char name[11]; } que[MAX_N]; void enqueue(struct task); struct task dequeue(void); void enqueue(struct task q){ que[tail] = q; if(tail == MAX_N -1){ tail = 0; }else{ tail+...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252490/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252490/source.c" target datalayout = "e-m:e-p270: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.task = type { i32, ...
#include<stdio.h> #include<string.h> #define NUM 1000000 #define NAME 10 int main(){ int i,q,time,n,j=0,sum=0,count=0; int a[NUM]; char str[NUM][NAME]; scanf("%d%d",&n,&q); for(i=0;i<n;i++){ scanf("%s%d",str[i],&a[i]); } while(count!=n){ time=a[j]-q; a[j]+=sum; if(time<=0){ prin...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252540/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252540/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 L 100005 typedef struct pp{ char name[100]; int t; }A; A deq(); void enq(A x); A Q[L]; int t,h, n; int min(int a,int b){ return a<b ? a : b;} int main(){ int elaps=0, c; int i, q; A u; scanf("%d %d", &n, &q); for(i=1;i<=n;i++){ scanf("%s",Q[i].n...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252591/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252591/source.c" target datalayout = "e-m:e-p270: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.pp = type { [100 x ...
#include<stdio.h> #include<string.h> #define LEN 100005 typedef struct pp{ char name[100]; int t; }P; P Q[LEN+1]; int head, tail, n; /*int isEmpty(){ if(head == tail) return 0; else return 1; }*/ /*int isFull(){ if(head == (tail + 1) % n) return 1; else return 0; }*/ void enqueue(P x){ //if(isFull())...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252634/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252634/source.c" target datalayout = "e-m:e-p270: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.pp = type { [100 x ...
#include<string.h> #include<stdio.h> struct Process { char name[100]; int r; }; struct Process Q[1000]; int seisuu; void enqueue(struct Process x) { int i; for(i = 1; i < seisuu; i++) Q[i]=Q[i+1]; Q[seisuu]=x; } struct Process dequeue(){ seisuu--;} int main(){ int i,q,time=0; scanf("%d %d",...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252692/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252692/source.c" target datalayout = "e-m:e-p270: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.Process = type { [1...
#include<stdio.h> #include<string.h> #define LEN 100005 typedef struct pp{ char name[100]; int t; }P; P Q[LEN]; int head=0, tail, n; void enqueue(P x){ strcpy(Q[tail].name,x.name); Q[tail].t = x.t; tail++; if(tail == LEN){ tail = 0; } } int main(){ int elaps = 0; int i, q; scanf("%d %d", &n, &q)...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252742/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252742/source.c" target datalayout = "e-m:e-p270: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.pp = type { [100 x ...
#include <stdio.h> #include <string.h> #define LEN 100005 typedef struct pp { char name[100]; int t; } P; P Q[LEN]; int head, tail, n; void enqueue(P x) { Q[tail] = x; tail = (tail + 1) % LEN; } P dequeue() { P x = Q[head]; head = (head + 1) % LEN; return x; } int min(int a,int b) { return a <...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252786/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252786/source.c" target datalayout = "e-m:e-p270: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.pp = type { [100 x ...
#include <stdio.h> #include <string.h> #define LEN 100005 typedef struct pp { char name[100]; int t; } P; P Q[LEN+1]; int head, tail, n; void enqueue(P x){ Q[tail] = x; tail = (tail + 1) % LEN; } P dequeue() { P x = Q[head]; head = (head + 1) % LEN; return x; } int min(int a, int b) { r...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252829/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252829/source.c" target datalayout = "e-m:e-p270: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.pp = type { [100 x ...
#include <stdio.h> typedef struct { char name[16]; int time; } proc; #define QUEUE_SIZE (200000) proc queue[QUEUE_SIZE]; int main(void) { int n, q; proc tmp; int front, rear; int current; int i; scanf("%d %d", &n, &q); for (i = 0; i < n; i++){ if(i < n)break; } for (i = 0; i < n; i++){...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252872/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252872/source.c" target datalayout = "e-m:e-p270: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.proc = type { [16 x...
#include<stdio.h> int head=0,tail=0; typedef struct{ char name[11]; int time; }Q; void inq(Q); Q deq(); Q queue[100000]; int main(){ int n,q,i,sumtime=0; Q queue,comp; scanf("%d%d",&n,&q); for(i=0;i<n;i++){ scanf("%s %d",queue.name,&queue.time); inq(queue); } i=0; while(i<n){ comp=deq();...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252915/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252915/source.c" target datalayout = "e-m:e-p270: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.Q = type { [11 x i8...
#include <stdio.h> #include <string.h> #define LEN 100005 typedef struct pp{ char name[100]; int t; }P; P Q[LEN+1]; int head, tail, n; void enqueue(P x){ Q[tail]=x; tail=(tail+1)%LEN; } P dequeue(){ P x=Q[head]; head=(head+1)%LEN; return x; } int min(int k,int t){ if(k>t)return t; else return k; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_252959/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_252959/source.c" target datalayout = "e-m:e-p270: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.pp = type { [100 x ...
#include<stdio.h> #include<string.h> #define LEN 100005 typedef struct pp{ char name[100]; int t; }P; P Q[LEN+1],x; int head, tail, n; void enqueue(P x){ Q[tail]=x; tail=(tail+1)%LEN; } P dequeue(){ x=Q[head]; head=(head+1)%LEN; return x; } int min(int a,int b){return (a<b)?a:b;} int main()...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253000/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253000/source.c" target datalayout = "e-m:e-p270: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.pp = type { [100 x ...
#include<stdio.h> #include<string.h> #define LEN 100005 int min(int a, int b); typedef struct pp{ char name[100]; int t; }P; P Q[LEN+1]; int head, tail, n; void enqueue(P x); P dequeue(); int main(){ int elaps = 0, c, i, q; P u; scanf("%d %d", &n, &q); for ( i = 1; i <= n; i++){ scanf("%s %d", ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253044/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253044/source.c" target datalayout = "e-m:e-p270: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.pp = type { [100 x ...
#include<stdio.h> #include<string.h> #define LEN 100005 typedef struct pp{ char name[100]; int t; }P; P Q[LEN+1]; int head, tail, n; /* キューに要素xを追加 */ void enqueue(P x){ Q[tail] = x; tail = (tail + 1)% LEN; } /* キューの先から要素を取り出す */ P dequeue(){ P x = Q[head]; head = (head + 1)% LEN; return x; } int main(){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253088/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253088/source.c" target datalayout = "e-m:e-p270: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.pp = type { [100 x ...
#include <stdio.h> #include <string.h> #define LEN 100005 typedef struct pp { char name[100]; int t; } P; P Q[LEN]; int head, tail, n; void enqueue(P x) { Q[tail] = x; tail = (tail + 1) % LEN; } P dequeue() { P x = Q[head]; head = (head + 1) % LEN; return x; } int min(int a,int b) { return a <...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253130/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253130/source.c" target datalayout = "e-m:e-p270: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.pp = type { [100 x ...
#include <stdio.h> #include <string.h> #define LEN 100005 typedef struct pp { char name[100]; int t; } P; P Q[LEN]; int head, tail, n; void enqueue(P x) { Q[tail] = x; tail = (tail + 1) % LEN; } P dequeue() { P x = Q[head]; head = (head + 1) % LEN; return x; } int min(int a,int b) { return a <...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253174/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253174/source.c" target datalayout = "e-m:e-p270: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.pp = type { [100 x ...
#include <stdio.h> #include <stdlib.h> #define LEN 100005 typedef struct pp{ char name[100]; int t; }P; P Q[LEN+1]; int head, tail, n, q; int j=1; void enqueue(P ); void dequeue(void); int main(){ int elaps = 0, c; int i; P u; scanf("%d %d", &n, &q); for ( i = 1; i <= n; i++){ scanf("%s", Q[i].na...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253217/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253217/source.c" target datalayout = "e-m:e-p270: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.pp = type { [100 x ...
#include <stdio.h> #include <string.h> #define LEN 100005 typedef struct pp{ char name[100]; int t; }P; P Q[LEN+1]; int head, tail, n; void enqueue(P x){ Q[tail] = x; if(tail == LEN)tail = 1; else tail++; } P dequeue(){ P x = Q[head]; if(head == LEN)head = 1; else head++; return x; } int main(){...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253268/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253268/source.c" target datalayout = "e-m:e-p270: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.pp = type { [100 x ...
#include <stdio.h> #include <string.h> #define LEN 100005 typedef struct pp{ char name[100]; int t; } P; P Q[LEN]; int head, tail,n; void enqueue(P x){ Q[tail] = x; tail = (tail + 1) % LEN; } P dequeue(){ P x = Q[head]; head = (head + 1) % LEN; return x; } int min(int a, int b){ if(a < b){ retu...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253310/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253310/source.c" target datalayout = "e-m:e-p270: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.pp = type { [100 x ...
#include <stdio.h> #include <stdlib.h> #define LEN 100005 typedef struct pp{ char name[100]; int t; }P; P Q[LEN+1]; int head, tail, n; void enqueue(P x){ Q[tail] = x; tail = (tail+1)%LEN; } P dequeue(){ P x = Q[head]; head=(head+1)%LEN; return x; } int min(int a,int b){return a<b ? a : b;} int main()...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253354/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253354/source.c" target datalayout = "e-m:e-p270: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.pp = type { [100 x ...
#include <stdio.h> int que[1000000],l,r; void push(int x) { que[r]=x; r++; if(r>=1000000) r=0; } int pop() { int d=que[l]; l++; if(l>=1000000) l=0; return d; } int main() { l=r=0; int n,q,i; scanf("%d%d",&n,&q); char ch[n][10]; int c[n]; for(i=0; i<n; i++) { scanf("%s %d",ch[i],&c[i]);...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253398/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253398/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @que = dso_local local_unna...
#include <stdio.h> #include <string.h> int main(void) { int num; char string[10005]; scanf("%d", &num); int temp2 = num; scanf("%s", string); int n = strlen(string); for (int i = 0; i < n; i++) { temp2 = num; if (string[i] + num > 'Z') { int temp = 'Z' - string[i] + 1; temp2 -=...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253455/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253455/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <limits.h> #include <string.h> int main() { int N; scanf("%d",&N); char Text[10001]; scanf("%s",&Text); int ASC[10001]; for (int i=0;i<strlen(Text);i++) { ASC[i]=Text[i]-0; ASC[i]+=N; if (ASC[i]>90)ASC[i]=ASC[i]-90+64; } for (int i=0;i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253512/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253512/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
/* ABC146-B Takatan */ #include<stdio.h> #include<string.h> int main(void){ int number, length, i; char string[10001]; scanf( "%d %s" , &number, string); length = strlen(string); for(i=0; i < length; i++){ if(string[i]+number > 'Z'){ string[i] += number - 'Z' + 'A' - 1; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253556/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253556/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,k,i; scanf("%d%d",&n1,&n2); int a[n1],b[n2]; scanf("%d%d",&m,&k); for(i=0;i<n1;i++) scanf("%d",&a[i]); for(i=0;i<n2;i++) scanf("%d",&b[i]); if(b[n2-k]>a[m-1]) printf("YES\n"); else printf("NO\n"); return 0; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_2536/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_2536/source.c" target datalayout = "e-m:e-p270:32:32-p271: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<stdlib.h> #include<string.h> int main(void) { int N; scanf("%d", &N); char S[10001]; scanf("%s", &S); int i = 0; while (S[i] != NULL) { S[i] += N; if (S[i] > 'Z') S[i] -= 26; printf("%c", S[i]); i++; } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253642/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253642/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<string.h> int main(void){ int n; char alp[27]="ABCDEFGHIJKLMNOPQRSTUVWXYZ"; char s[10000]; char ans[10000]; int len; scanf("%d",&n); scanf("%s",s); len=strlen(s); int i; int j; int checker; for(i=0;i<len;i++){ j=0; while(s[i]!=alp[j]){ j++; } ans[...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253693/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253693/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @__const.main.alp = private...
#include <stdio.h> #include <string.h> int main(void) { int n; char s[10100]; scanf("%d%s", &n, s); for(int i = 0; s[i] != '\0'; i++) { s[i] += n; if(s[i] > 'Z') { s[i] -= 26; } } printf("%s\n", s); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253736/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253736/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<string.h> #include<stdlib.h> int main(){ int n,m,c; scanf("%d %d %d\n",&n,&m,&c); int *b = (int*)calloc(m,sizeof(int)); char buff[1000]; fgets(buff, 1000 ,stdin); b[0] = atoi(strtok(buff, " ")); for(int i = 1; i < m; ++i) b[i] = atoi(strtok(NULL, " ")); int **a = (int...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253800/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253800/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,m,c,a[21][21],b[21],cnt=0,ans=0; scanf("%d%d%d",&n,&m,&c); for(int i=0;i<m;i++){ scanf("%d",&b[i]); } for(int i=0;i<n;i++){ for(int j=0;j<m;j++){ scanf("%d",&a[i][j]); cnt+=a[i][j]*b[j]; } if(cnt+c>0){ ans++; } cnt=0; } pri...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253844/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253844/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, M, C, i, k; int count = 0; int a[20]; int b[20]; int sum = 0; for(i = 0; i < 20; i++){ a[i] = 0; b[i] = 0; } scanf("%d", &N); scanf("%d", &M); scanf("%d", &C); for(i = 0; i < M; i++){ scanf("%d", &b[i]); } for(i = 0; i < N; i++){ for(k = 0; k < M; k++){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253888/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253888/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 N, M, C; int *B; int **A; int i, j, k; int count = 0; long int value = 0; scanf("%d", &N); scanf("%d", &M); scanf("%d", &C); B = (int*)malloc(sizeof(int) * M); for(i = 0;i < M;i++) { scanf("%d", &B[i]); } A = (int**)malloc(sizeof(int*) * N); for(...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253930/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253930/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,m,c,i,j,count; int a[21][201],b[201],A[21]; scanf("%d %d %d",&n,&m,&c); for(j=1;j<=m;j++){ scanf("%d",&b[j]); } for(i=1;i<=n;i++){ for(j=1;j<=m;j++){ scanf("%d",&a[i][j]); } } count=0; for(i=1;i<=n;i++){ for(j=1;j<=m;j++){ A[i]+=a[i][j]*b[j]; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_253981/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_253981/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 m,n,c; scanf("%d",&n); scanf("%d",&m); scanf("%d",&c); int a[n][m],b[m]; int sum=0,ans=0; for(int i=0;i<m;i++){ scanf("%d",&b[i]); } for(int p=0;p<n;p++){ for(int j=0;j<m;j++){ scanf("%d",&a[p][j]); sum+=a[p][j]*b[j]; } // printf("%d\n",sum)...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254023/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254023/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,M,C; scanf("%d %d %d",&N,&M,&C); int B[M]; int A[N][M]; for(int i=0;i<M;i++){ scanf("%d",&B[i]); } for(int i=0;i<N;i++){ for(int j=0;j<M;j++){ scanf("%d",&A[i][j]); } } int count = 0; for(int i=0;i<N;i++...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254067/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254067/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<string.h> #define MAX 100001 /*int temp[MAX]; void mergesort(int Array[],int first,int last) { if(first==last) return; int middle=(first+last)/2; mergesort(Array,first,middle); mergesort(Array,middle+1,last); int i,j,k; for(i=first,j=first,k=middle+1;i<=last;i++) ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25411/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25411/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 ...
// AOJ 1338: Clock Hands // 2017.12.7 bal4u@uu #include <stdio.h> long long gcd(long long a, long long b) { long long r; while (b != 0) r = a % b, a = b, b = r; return a; } int main() { long long H, h, m, s, d, n; long long c3600, ha, ma, sa, a1, a2, g; while (scanf("%lld%lld%lld%lld", &H, &h, &m, &s) &...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254153/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254153/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> int acs(const void *a, const void *b) { return *(int*)a - *(int*)b; } /* 1,2,3,4.. */ int des(const void *a, const void *b) { return *(int*)b - *(int*)a; } /* 8,7,6,5.. */ int cmp_char(const void *a, const void *b) { return *(char*)a -...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254218/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254218/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x; scanf("%d", &x); int a, b; for(a = -118;a < 120;a++) { for(b = -119;b < a;b++) { if(pow(a, 5) - pow(b, 5) == x) goto result; } } result: printf("%d %d\n", a, b); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254261/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254261/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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() { long long int n; scanf("%lld", &n); for (long long int i = -1000; i <= 1000; i++) { for (long long int j = -1000; j <= 1000; j++) { //printf("%lld", i * i * i * i * i - j * j * j * j * j); if (i * i * i * i * i - j * j * j * j * j == n) { printf("%lld %l...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254304/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254304/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 #define rep(i,l,r)for(ll i=(l);i<(r);i++) //block linked list #define Bsize 700 /*2sqrt(n)*/ typedef struct block{ int cnt; ll a[Bsize+1]; struct block*pre; struct block*nxt; }block; void Bpush(block*b,ll x){ //リストにxを追加する if((*b).nxt&&(*(*b).nxt).a[0]<x...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254348/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254348/source.c" target datalayout = "e-m:e-p270: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.block = type { i32,...
#include<stdio.h> #include<math.h> long long int s,i,a,b,a1,b1; int main() { scanf("%lld",&s); while(s!=0) { s=s*2; for(i=1;i<=sqrt(s);i=i+1) { if(s%i==0) { b=i; a=(s/i)-i+1; a=a/2; if((a*2+b-1)*b==s) ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254399/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254399/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x,h,s; while(1){ scanf("%lf %lf",&x,&h); if((x==0)&&(h==0)){ return 0; } s=2*hypot((x/2),h)*x+x*x; printf("%f\n",s); } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254449/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254449/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ar[10000000],er[10000000],a,b,k,m,i,j,tmp; int main(){ scanf("%d %d %d %d",&a,&b,&k,&m); for(i=1 ; i<=a ; i++){ scanf("%d",&ar[i]); } for(i=1 ; i<=b ; i++){ scanf("%d",&er[i]); } if(ar[k]>=er[b-m+1]){ printf("NO"); } else printf("YES"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_2545/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_2545/source.c" target datalayout = "e-m:e-p270:32:32-p271: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> double sikakusui(int x, int h); int main(void) { int x,h; while (1) { scanf("%d", &x); scanf("%d", &h); if (x == 0 && h == 0){ break; } printf("%.6lf\n", sikakusui(x, h)); } return (0); } double sikakusui(in...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254557/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254557/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> // printf(), scanf() #include <stdbool.h> int main(int argc, char **argv) { int d, w, h; double a, b; int r; int n; while (true) { scanf("%d %d %d", &d, &w, &h); if (d == 0 && w == 0 && h == 0) break; if (d < w) { if (d < h) /* d < w ? h */ { a = d / 2; b = ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254614/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254614/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x,y,z,n,i,r; do{ scanf("%d %d %d",&x,&y,&z); if(x==0&&y==0&&z==0) break; x*=x; y*=y; z*=z; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&r); if(sqrt(x+z)/2<r||sqrt(x+y)/2<r||sqrt(y+z)/2<r){ printf("OK\n"); }else{ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254665/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254665/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(){ double x,y; double a,b,c,d,e,f; while(scanf("%lf %lf %lf %lf %lf %lf", &a,&b,&c,&d,&e,&f) != EOF){ if(e == 0 && d*b != 0){ x = (f/d); y = (c/b)-(a*f)/(b*d); }else if(b == 0 && a*e != 0){ x = (c/a); y = (f/e)-(c*d)/(a*e); }else if(a == 0 && b*d != 0){ y = (c/b); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254715/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254715/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(){ double i, k, x, y; double a, b, c, d, e, f; while(scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f) != EOF){ x = (e*c-b*f)/(a*e-b*d); y = (-d*c+a*f)/(a*e-b*d);; if(x == -0) x =0; if(y == -0) y=0; printf("%.3lf %.3lf\n", x, y); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254759/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254759/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,d,e,f; double x,y; while(scanf("%d %d %d %d %d %d",&a,&b,&c,&d,&e,&f)==6){ y = (a*f-d*c)/(double)(a*e-d*b); x = (c-b*y)/(double)a; printf("%.3lf %.3lf\n",x,y); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254801/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254801/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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() { double a, b, c, d, e, f; double det; double x, y; while (scanf("%lf %lf %lf %lf %lf %lf", &a, &b, &c, &d, &e, &f) != EOF) { det = a * e - b * d; if (det != 0) { x = (e * c - b * f) / det; y = (a * f - d * c) / det; // ?????????-0???????????´??????0????...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254845/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254845/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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){ double a,b,c,d,e,f; while(scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f)>0){ f=(f-c/a*d)/(e-b/a*d); c=c/a-f*b/a; printf("%.3f %.3f\n",c,f); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254889/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254889/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 = 0; int count = 0; double x, y; double a[1000], b[1000], c[1000], d[1000], e[1000], f[1000]; while((scanf("%lf%lf%lf%lf%lf%lf",&a[i],&b[i],&c[i],&d[i],&e[i],&f[i])) != EOF){ if((-1000 <= (a[i], b[i], c[i], d[i], e[i], f[i])) && ((a[i], b[i], c...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254931/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254931/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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){ double a, b, c, d, e, f, L, M, N, O, X, Y; while ( scanf("%lf %lf %lf %lf %lf %lf", &a, &b, &c, &d, &e, &f) != EOF ) { L = f - e * c / b; M = d - a * e / b; N = f - d * c / a; O = e - d * b / a; X = L / M; Y = N / O; if ( X > -0.0005 &&...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_254982/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_254982/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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){ double x,y; double X,Y; double a,b,c,d,e,f; while(scanf("%lf",&a)!=EOF){ scanf("%lf %lf %lf %lf %lf",&b,&c,&d,&e,&f); X=(e*c-b*f)/(a*e-b*d); Y=(a*f-d*c)/(a*e-b*d); if(X>=0){ X=(int)(1000*X+0.5); }else{ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_255024/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_255024/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 t; scanf("%d",&t); while(t){ int n; scanf("%d",&n); int a[n]; int i; for(i=0;i<n;i++){ scanf("%d",&a[i]); } int p=1,m; for(i=0;i<n;i++){ m=sqrt(a[i]); if(m*m!=a[i]){ p=0; break; } } if(p==1){ printf("NO\n"); } else...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25509/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25509/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 t; scanf("%d",&t); while(t--) { int n; scanf("%d",&n); int a[n]; int flag=0; for(int i=0;i<n;i++) scanf("%d",&a[i]); for(int i=0;i<n;i++) { int root=sqrt(a[i]); if(...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25514/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25514/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 argc, char *argv[]) { int a, b, c, d, e, f; while (6 == scanf("%d %d %d " "%d %d %d\n", &a, &b, &c, &d, &e, &f)) { double det, x, y; det = a*e - b*d; x = (c*e - b*f) / det; y = (-c*d + a*f) / det; x = (double)((long)(x * 1000)) / 1000; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_255190/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_255190/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include <math.h> #define N 100 int main(){ double a[N]={0},b[N]={0},c[N]={0},d[N]={0},e[N]={0},f[N]={0}; int tmp; for(tmp=0;scanf("%lf %lf %lf %lf %lf %lf",&a[tmp],&b[tmp],&c[tmp],&d[tmp],&e[tmp],&f[tmp])!=EOF;tmp++); int i,divisor=0; double x=0,y=0; for(i=0;i<tmp;i++){ divisor=a[i]*e[i]-b[...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_255240/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_255240/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ) { double a, b, c, d, e, f, x, y; while ( scanf( "%lf %lf %lf %lf %lf %lf", &a, &b, &c, &d, &e, &f ) != EOF ) { //printf( "%.3lf %.3lf\n", ( c * e - b * f ) / ( a * e - b * d), ( c * d - a * f ) / ( b * d - a * e) ); y = ( c * d - a * f ) / ( b * d - e * a ); //x,yについて解くと ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_255291/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_255291/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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) { double a,b,c,d,e,f,x,y; while (scanf("%lf %lf %lf %lf %lf %lf",&a,&b,&c,&d,&e,&f)!=EOF){ y=(d*c-a*f)/(d*b-a*e); printf("%.3f %.3f\n",(c-b*y)/a, y); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_255334/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_255334/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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() { double a,b,c,d,e,f,g,j; while(scanf("%lf",&a) !=EOF){ scanf("%lf",&b); scanf("%lf",&c); scanf("%lf",&d); scanf("%lf",&e); scanf("%lf",&f); g=(e*c-b*f)/(a*e-b*d); j=(a*f-c*d)/(a*e-b*d); g=g+0.00; j=j+0.00...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_255378/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_255378/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...