Source_Code
stringlengths
69
484k
IR_Original
stringlengths
2.05k
17.9M
#include<stdio.h> #define PI 3.14159265358979323846264 int main(void){ float ans=0; int r=0; if(scanf("%d",&r)) ans = 2*PI*r; printf("%lf",ans); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339314/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339314/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 r; scanf("%d",&r); float pi=3.14; float c; c=2*pi*r; printf("%0.4f",c); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339400/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339400/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 R; scanf("%d",&R); printf("%f\n",2*R*3.14); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339444/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339444/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 R; scanf("%lf",&R); printf("%f\n",2*R*3.14159265358979); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339488/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339488/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <stdint.h> #include <inttypes.h> #include <stdlib.h> #include <string.h> typedef unsigned long long int uint64; typedef long long int int64; #define MAX(a,b) ((a)>(b)?(a):(b)) #define MIN(a,b) ((a)<(b)?(a):(b)) #define ABS(a) ((a)>(0)?(a):-(a)) void get_N (int64 *n) { int cnt;...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339530/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339530/source.c" target datalayout = "e-m:e-p270: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._tmp_t = type { i64...
#include <stdio.h> int main(void) { double r; scanf("%lf",&r); printf("%f",2 * r * 3.1415926535897932384); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339617/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339617/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, pi; pi = 3.14159265358979323846; scanf("%lf",&a); printf("%10.10f\n", 2 * a * pi); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339668/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339668/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 r; scanf("%d", &r); printf("%f\n", 2 * r * M_PI); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339718/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339718/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> int main(void){ int R=0; double pi=3.14159, range=0; scanf("%d",&R); range=2*pi*R; printf("%f",range); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339819/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339819/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 R; double ensyu=3.14; scanf("%d", &R); printf("%lf", 2 * R * ensyu); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339862/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339862/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #define MOD1 1000000007 #define MOD2 998244353 #define LIMIT1 200002 #define LIMIT2 500002 typedef long long ll; typedef long double ld; #define rep(i,n) for(i=0;i<n;i++) #define max(a,b) ((a)>(b) ? (a) : (b)) #define min(a,b) ((a)<(b) ? (a) :...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339905/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339905/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @dx = dso_local local_unnam...
#include<stdio.h> int main(void){ float r; scanf("%f",&r); float ans=2*r*3.14; printf("%f",ans); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339949/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339949/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
/* とりあえずソースコード見る前に推し見ていってください。 ` ....J&wZTUUWc `...JZY"!~-._<~~~~_d' ` ..-Z"=~`..._~___::...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339992/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339992/source.c" target datalayout = "e-m:e-p270: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.pair = type { i32, ...
#include<stdio.h> #include<stdlib.h> struct node{ int key; int priority; struct node *right, *left, *parent; }; struct node *root, *NIL; struct node * _delete(struct node*, int); struct node * rightRotate(struct node *t){ struct node *s =t->left; t->left = s->right; s->right = t; return ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340033/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340033/source.c" target datalayout = "e-m:e-p270: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 { i32, ...
#include<stdio.h> #include<stdlib.h> #include<string.h> #include<math.h> #define M_PI 3.14159265358979323846 int main(void) { double a= 0,b = 0, c = 0; double s=0; double l=0; double h=0; double rad = 0; scanf("%lf %lf %lf", &a, &b, &c); s = a*b*sin(c...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340084/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340084/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a,b,c,d,C; scanf("%lf %lf %lf",&a,&b,&c); C = c*M_PI/180; d = sqrt(a*a+b*b-2*a*b*cos(C)); printf("%f %f %f\n",a*b*sin(C)/2,a+b+d,b*sin(C)); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340127/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340127/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,C; scanf("%d %d %d",&a,&b,&C); printf("%f\n",a*b*sin(C*M_PI/180)/2); printf("%f\n",a+b+sqrt(a*a+b*b-2*a*b*cos(C*M_PI/180))); printf("%f\n",b*sin(C*M_PI/180)); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340170/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340170/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 mintwo(int kouyaku1,int kouyaku2); int minthree(int kouyaku1,int kouyaku2,int kouyaku3); void kouyakutwo(); void kouyakuthree(); int main(void){ int n=0; scanf("%d",&n); if(n==2){ kouyakutwo(); }else{ kouyakuthree(); } } void kouyakutwo(){ int kouya...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340220/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340220/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ long long N, M; long long sum, sub; scanf("%lld %lld", &N, &M); sum = N*M; if(N==1 && M==1){ sub=0; }else if(N==1 || M==1){ sub=2; }else{ sub=N*2+M*2-4; } printf("%lld", sum-sub); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340271/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340271/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void){ long long int n,m,c; scanf("%lld %lld",&n,&m); if((n-2)*(m-2) < 0){ printf("%lld", (2-n)*(m-2)); }else{ printf("%lld", (n-2)*(m-2)); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340314/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340314/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> typedef long long int int64; #define MAX(a,b) ((a)>(b)?(a):(b)) #define MIN(a,b) ((a)<(b)?(a):(b)) #define ABS(a) ((a)>(0)?(a):-(a)) #define POS(i,j) ((i)*k+(j)) void run(void){ int n,k; scanf("%d%d",&n,&k); int *a=(int *)malloc(sizeof(int)*n); int i; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340358/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340358/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ASC 97 int main(void){ char s[100009]; scanf("%s",s); //int dist[26][100009]; int i,j,k; int memo[26]; for(i=0;i<26;i++){ memo[i]=-1; //memo[i][0]=-1;//初期 //memo[i][1]=0;// i,jのようなもの //for(j=0;j<100009;j++){ //dist[i][j][0]=-100009;//初期 //dist[i][j][1]=...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340400/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340400/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 w,h,x,y,r; scanf("%d %d %d %d %d",&w,&h,&x,&y,&r); if(x-r<0 || x+r>w || y-r<0 || y+r>h){ printf("No\n"); }else { printf("Yes\n"); } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340451/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340451/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 W,H,x,y,r; scanf("%d %d %d %d %d",&W,&H,&x,&y,&r); if (x-r>=0 && x+r<=W && y-r>=0 && y+r<=H){ printf("Yes\n"); } else{ printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340495/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340495/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 w,h,x,y,r; scanf("%d%d%d%d%d",&w,&h,&x,&y,&r); if(x-r>=0&&x+r<=w&&y-r>=0&&y+r<=h)printf("Yes\n"); else printf("No\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340538/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340538/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 W,H,x,y,r; int flg=0; scanf("%d",&W); scanf("%d",&H); scanf("%d",&x); scanf("%d",&y); scanf("%d",&r); if( r<=x && x<=(W-r)){ if(r<=y && y<=(H-r)){ flg = 1; } } if(flg==1){ printf("Yes\n"); }else{ printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340589/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340589/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> int main(void) { int W,H,x,y,r; scanf("%d %d %d %d %d",&W,&H,&x,&y,&r); if (0<=x-r && x+r<=W && 0<=y-r && y+r<=H) printf("Yes\n"); else printf("No\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340631/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340631/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if ((x <= 0) || (y <= 0) || (x < r) || (y < r)) { printf("No\n"); } else if ((x + r <= W) && (y + r <= H)) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340675/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340675/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main() { int a=0,w,h,x,y,r; scanf("%d %d %d %d %d",&w,&h,&x,&y,&r); if(x-r>=0 && x+r<=w){ if(y-r>=0 && y+r<=h){ printf("Yes\n"); a=1; } } if(a==0)printf("No\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340725/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340725/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 W,H,x,y,r; scanf("%d %d %d %d %d",&W,&H,&x,&y,&r); if(x<r||x>W-r||y<r||y>H-r){ printf("No\n"); } else{ printf("Yes\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340769/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340769/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 w,h,x,y,r; scanf("%d %d %d %d %d",&w,&h,&x,&y,&r); if(x - r < 0 || x + r > w || y - r < 0 || y + r > h)printf("No\n"); else printf("Yes\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340811/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340811/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 W,H,x,y,r; scanf("%d %d %d %d %d",&W,&H,&x,&y,&r); if(W>=(x+r)&&H>=(y+r)&&(x-r)>=0&&(y-r)>=0){ printf("Yes\n"); }else{ printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340855/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340855/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 W,H,x,y,r; scanf("%d%d%d%d%d",&W,&H,&x,&y,&r); if(x-r<0||y-r<0||H<y+r||W<x+r){ printf("No\n"); }else{ printf("Yes\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340899/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340899/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 W; int H; int x; int y; int r; scanf("%d %d %d %d %d",&W,&H,&x,&y,&r); if(W>=2*r && H>=2*r && x>=r && x+r<=W && y>=r && y+r<=H){ puts ("Yes"); } else{ puts ("No"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340941/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340941/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 w,h,x,y,r,f; scanf("%d %d %d %d %d",&w,&h,&x,&y,&r); f=0; if(x+r>w)f=1; if(y+r>h)f=1; if(r>x)f=1; if(r>y)f=1; if(f==0)printf("Yes\n"); else printf("No\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340992/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340992/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 W,H,x,y,r; scanf("%d %d %d %d %d",&W,&H,&x,&y,&r); if((H>=y+r)&&(W>=x+r)&&(y-r>=0)&&(x-r>=0)) printf("Yes\n"); else printf("No\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341034/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341034/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 w,h,x,y,r; scanf("%d%d%d%d%d",&w,&h,&x,&y,&r); if(w<(x+r)||(x-r)<0){ printf("No\n"); }else if(h<(y+r)||(y-r)<0){ printf("No\n"); }else{ printf("Yes\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341078/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341078/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 W = 0, H = 0, x = 0, y = 0, r = 0; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if (x - r < 0 || x + r > W || y - r < 0 || y + r > H) { printf("No\n"); } else { printf("Yes\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341120/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341120/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 W,H,x,y,r; scanf("%d %d %d %d %d",&W,&H,&x,&y,&r); if(0<=x-r && x+r<=W){ if(0<=y-r && y+r<=H){ printf("Yes\n"); } else{ printf("No\n"); } } else{ printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341164/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341164/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(int argc){ int W,H,x,y,r,M,m,R,L; scanf("%d %d %d %d %d",&W,&H,&x,&y,&r); M=y+r; m=y-r; R=x+r; L=x-r; if (M<=H&&m>=0&&R<=W&&L>=0) puts("Yes"); else puts("No"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341207/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341207/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 W, H, x, y, r; scanf("%d", &W); scanf("%d", &H); scanf("%d", &x); scanf("%d", &y); scanf("%d", &r); if (x-r >= 0 && x+r <= W && y-r >= 0 && y+r <= H){ printf("Yes\n"); } else{ printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341258/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341258/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 W,H,x,y,r,f = 1; scanf("%d %d %d %d %d",&W,&H,&x,&y,&r); if((W<(x+r)) || (0>(x-r))){ f = 0; } if((H<(y+r)) || (0>(y-r))){ f = 0; } if(f==1) printf("Yes\n"); else printf("No\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341315/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341315/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 W,H,x,y,r; scanf("%d %d %d %d %d",&W,&H,&x,&y,&r); if(H>=y+r&&W>=x+r&&r<=x&&r<=y) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341359/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341359/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 W , H , x , y , r ; scanf("%d",&W); scanf("%d",&H); scanf("%d",&x); scanf("%d",&y); scanf("%d",&r); /* x+r <= W x-r >= 0 y+r <= H y-r >= 0 */ if((x+r)<= W && (x-r) >= 0 && (y+r) <= H && (y-r) >= 0){ printf("Yes\n"); }else{ printf("No\n"); } return 0; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341409/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341409/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 W,H,x,y,r = 0; scanf("%d %d %d %d %d",&W,&H,&x,&y,&r); if(x - r >= 0 && y - r >= 0 && x + r <= W && y + r <= H){ printf("Yes\n"); }else{ printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341467/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341467/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main() { int n,i,count=0; scanf("%d",&n); int ara[n]; for(i=0; i<n; i++) { scanf("%d",&ara[i]); if(ara[i]==0) count++; } if(n==1 && ara[0]==0) printf("NO\n"); else if(n==1 && ara[0]==1) printf("YES\n"); else if(n>1) ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_34151/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_34151/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 x; int y; int r; int W; int H; int right; int left; int up; int down; scanf("%d %d %d %d %d",&W,&H,&x,&y,&r); right = W - x - r; left = x-r; up = H - y - r; down = y-r; if ((right < 0) || (left < 0) || (up < 0) || (down < 0)) { printf("No\n"); } else { print...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341560/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341560/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 w, h, x, y, r; scanf("%d %d %d %d %d", &w, &h, &x, &y, &r); if ( (x - r) >= 0 && (y - r) >= 0 && (x + r) <= w && (y + r) <= h) { puts("Yes"); } else { puts("No"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341618/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341618/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y ,&r); if(x>W || y>H || y+r>H || x+r>W || x<0 || y<0){ printf("No\n"); } else { printf("Yes\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341661/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341661/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 width, height, x, y, r; scanf("%d", &width); scanf("%d", &height); scanf("%d", &x); scanf("%d", &y); scanf("%d", &r); if ((x - r) >= 0 && (x + r) <= width) { if ((y - r) >= 0 && (y + r) <= height) printf("Yes\n"); else printf("No\n"); } else ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341704/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341704/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 W,H,x,y,r; int temp; scanf("%d %d %d %d %d",&W,&H,&x,&y,&r); if(x-r<0){ printf("No\n"); }else if(x+r>W){ printf("No\n"); }else if(y-r<0){ printf("No\n"); }else if(y+r>H){ printf("No\n"); }else{ printf("...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341748/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341748/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 W,H,x,y,r; scanf("%d",&W); scanf("%d",&H); scanf("%d",&x); scanf("%d",&y); scanf("%d",&r); if(x-r < 0 || x+r > W || y-r < 0 || y+r > H) printf("No\n"); else printf("Yes\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341791/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341791/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 W,H,x,y,r; scanf("%d %d %d %d %d",&W,&H,&x,&y,&r); if(x+r>W||0>x-r||y+r>H||0>y-r){ printf("No\n"); } else { printf("Yes\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341834/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341834/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 W,H,x,y,r; scanf("%d %d %d %d %d",&W,&H,&x,&y,&r); if (W>=x+r && H>=y+r && r<=x && r<=y && x>=0 && y>=0) printf("Yes\n"); else printf("No\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341878/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341878/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 W,H,x,y,r; scanf("%d %d %d %d %d",&W,&H,&x,&y,&r); if(W>=x+r&&H>=y+r&&x-r>=0&&y-r>=0){ printf("Yes\n"); }else{ printf("No\n");} return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341920/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341920/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 W, H, x, y, r; scanf("%d%d%d%d%d", &W, &H, &x, &y, &r); if ( 0 + r <= x && x <= W - r && 0 + r <= y && y <= H - r) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341964/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341964/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
//circle in the rectangle #include <stdio.h> int main(void) { int W, H, x, y, r, a, b, c; scanf("%d%d%d%d%d", &W, &H, &x, &y, &r); if (x <= 0 || y <= 0) printf("No\n"); else { a = (W / 2 >= x) ? x : W - x; b = (H / 2 >= y) ? y : H - y; c = (a >= b) ? b : a; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_342006/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_342006/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 xx[30]={ 00,01,02,05,8,10,11,12,15,18,20,21,22,25,28,50,51,52,55,58,80,81,82,85,88 }; int yy[30]={ 00,10,50,20,80,01,11,51,21,81,05,15,55,25,85,02,12,52,22,82,8,18,58,28,88 }; int find(int a,int b,int h,int m) { int i,t,j; for(i=0;i<=24;i++) { for(j=0;j<=24;j++) { if( a==xx[i] && b==xx[j...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_34205/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_34205/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @xx = dso_local local_unnamed...
#include<stdio.h> int main(void){ int w,h,x,y,r; scanf("%d%d%d%d%d",&w,&h,&x,&y,&r); if((x+r<=w&&x-r>=0)&&(y+r<=h&&y-r>=0)){ printf("Yes\n"); }else{ printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_342093/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_342093/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 W,H,x,y,r; scanf("%d %d %d %d %d",&W,&H,&x,&y,&r); if(x >= r && x <= W-r){ if(y >= r && y <= H-r){ printf("Yes\n"); }else{ printf("No\n"); } }else{ printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_342136/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_342136/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 found; int main() { int T; scanf("%d",&T); for (int i=0; i<T; i++) { found = 0; int n, k; scanf("%d %d",&n,&k); for (int j=k-1; j*2>=k; j--) { found++; } for (int j=k+1; j<=n; j++) { found++; } p...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_34218/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_34218/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 w,h,x,y,r; scanf("%d%d%d%d%d",&w,&h,&x,&y,&r); if((x>=r && x<=w-r) && (y>=r && y<=h-r)) printf("Yes\n"); else printf("No\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_342222/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_342222/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void) { int X,Y,W,H,r; scanf("%d", &W); scanf("%d", &H); scanf("%d", &X); scanf("%d", &Y); scanf("%d", &r); if(X<r){ printf("No\n");} else if(Y<r){ printf("No\n");} else if(r>W-X){ printf("No\n");} else if(r>H-Y){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_342266/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_342266/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 w, h, x, y, r; scanf("%d %d %d %d %d", &w, &h, &x, &y, &r); if ((x >= r) && (x + r <= w) && (y >= r) && (y + r <= h)) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_342316/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_342316/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main() { int t; scanf("%d ",&t); while(t--) { int n,k,i,count=-1; scanf("%d %d",&n,&k); int m=k/2; if(k%2==1) m=m+1; for(i=m;i<=n;i++) { count++; } printf("%d\n",count); if(count!=0) { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_34236/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_34236/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 t,n,k; scanf("%d",&t); for (int i=1;i<=t;i++) { int N=0; scanf("%d%d",&n,&k); /*if (n==k) { printf("0\n"); continue; }*/ N+=(n-k); if (k%2==1) { N+=(k-1)/2; printf("%d\n",N); for (int j=n;j>k;j--) printf("%d ",j); for (int j=k-1;j>(k...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_34241/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_34241/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 w,h,x,y,r; scanf("%d%d%d%d%d",&w,&h,&x,&y,&r); if(0<=x-r && 0<=y-r && x+r<=w && y+r<=h) printf("Yes\n"); else printf("No\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_342453/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_342453/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
/** * 氏名: 阿部寛之 * 学籍番号: 170441004 ***/ #include<stdio.h> int main(void) { int W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if (0 <= x - r && x + r <= W && 0 <= y - r && y + r <= H) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_342503/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_342503/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 W,H;//長方形の幅W,高さH int x,y,r;//円の(x,y)座標,半径r scanf("%d %d %d %d %d",&W,&H,&x,&y,&r); //x=abs(x); //y=abs(y); if(((x+r)>W || (x-r)<0) || ((y+r)>H || (y-r)<0)){//長方形と円の条件式 printf("No\n");//はみ出た }else{ printf("Yes\n");//収まっている } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_342547/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_342547/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void){ int i; int counti,countj; char a[10000]; while(scanf("%s",a)!=EOF){ counti=0; countj=0; for(i=0;a[i]!='\0';i++){ if(a[i+1]=='O'&&a[i+2]=='I'){ if(a[i]=='I')counti++; if(a[i]=='J')countj++; } } printf("%d\n%d\n",countj,counti); } return 0;}
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_342590/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_342590/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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) { unsigned char x[10000]={0}; int i; int joi_ans=0,ioi_ans=0; while(scanf("%s",x)!=EOF){ for(i = 0;x[i] != '\0'; i++){ if(x[i] == 'J' && x[i+1] == 'O' && x[i+2] == 'I')joi_ans += 1; else if(x[i] == 'I' && x[i+1] == 'O' && x[i+2] == 'I')ioi_ans += 1; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_342655/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_342655/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
// AOJ 2842 Taiyaki-Master and Eater // 2018.3.22 bal4u #include <stdio.h> #include <stdlib.h> #include <string.h> //// 高速数値入出力 #if 1 #define gc() getchar_unlocked() #define pc(c) putchar_unlocked(c) #else #define gc() getchar() #define pc(c) putchar(c) #endif // 非負整数の入力 int in() { int n = 0, c = gc(); do n = 10 * ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_342699/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_342699/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.QUE = type { i32, i...
#include<stdio.h> #include<string.h> #include<stdlib.h> int max(int a, int b){ if(a > b) return a; else return b; } long long int min(long long int a, long long int b){ if(a < b) return a; else return b; } int sort(const void *a, const void *b){ return *(int*)a - *(int*)b; } int gcd(int a, int b){ if(a ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_342741/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_342741/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> typedef struct { int a; int b; } ss; ss s[101]; int a[101]; void pp(int i) { if(a[i]==0) a[i]=1; else a[i]=0; } int main() { int n,i,sum=0,num=0,max=0; char c[101]; scanf("%d",&n); scanf("%s",c); for(i=0; i<n; i++) a[i]=c[i]-'0'; for(i=0;...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_3428/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_3428/source.c" target datalayout = "e-m:e-p270: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.ss = type { i32, i32 } ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #include <math.h> #include <limits.h> long long gcd(long long a,long long b){ long long m,n,gcdans; m=fmax(a,b); n=fmin(a,b); if(n==0){ gcdans=m; } else { gcdans=gcd(n,m%n); } return (gcdans) ; }...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_342842/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_342842/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <stdbool.h> #include <math.h> #include <limits.h> long long gcd(long long a,long long b){ long long m,n,gcdans; m=fmax(a,b); n=fmin(a,b); if(n==0){ gcdans=m; } else { gcdans=gcd(n,m%n); } return (gcdans) ; }...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_342893/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_342893/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; int m,s; int sum; scanf("%d %d %d %d",&a,&b,&c,&d); sum = a + b +c + d; m = sum / 60; s = sum % 60; printf("%d\n%d\n",m,s); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_342936/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_342936/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,x,s=0; for(i=0;i<4;i++) {scanf("%d",&x); s+=x;} printf("%d\n%d\n",s/60,s%60); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_342987/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_342987/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> /** Application main entry point. */ int main ( int argc, char * argv[ ] ) { int a, b, c, d; int res; scanf ( "%d%d%d%d", &a, &b, &c, &d ); res = a + b + c + d; printf ( "%d\n%d\n", res / 60, res % 60 ); return ( 0 ); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_343058/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_343058/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(){ int i ,j=0 ,n ,total=0; for( i=0 ; i<4 ; i++ ){ scanf( "%d" ,&n ); total = total + n; } if( total >= 60 ){ while( total >= 60 ){ total = total - 60; j++; } } printf( "%d\n%d\n" ,j ,total ); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_343108/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_343108/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[101]={0}; int i; int max=0; while((scanf("%d",&i))!=EOF){ a[i]++; } for(i=1;i<101;i++){ if(a[i]>max){ max=a[i]; } } for(i=1;i<101;i++){ if(a[i]==max){ printf("%d\n",i); } } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_343151/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_343151/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; int count[101] = {0}; int max_count; int i; while (scanf("%d", &a) != EOF){ count[a]++; } for (i = 1; i <= 100; i++){ if (max_count < count[i]){ max_count = count[i]; } } for (i = 1; i <= 100; i++){ if (count[i] == max_count){ printf("%d\n", i); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_343195/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_343195/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 num[100]={0}; int data=0; int max=0; int i=0; int main(void){ while((scanf("%d", &data))!=EOF){ num[data]++; if(max<num[data]) max=num[data]; } for(i=0;i<100;i++){ if(num[i]==max) printf("%d\n",i); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_343238/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_343238/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @num = dso_local local_unna...
#include <stdio.h> #define MAX (100) int main(void) { int data[MAX + 1] = { 0 }; int most_num = 0; int i; while (scanf("%d", &i) != EOF) data[i]++; for (i = 1; i <= MAX; i++) if (most_num < data[i]) most_num = data[i]; for (i = 1; i <= MAX; i++) if (most_num == data[i]) printf("%d\n", i); return (0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_343296/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_343296/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 count[100] = {0}; int ans[100] = {0}; int n,j,c = 0,i = 0,max = 0; int temp; for(i = 0;scanf("%d",&n) != EOF;i++){ count[n]++; } for(i = 0; i < 100; i++){ if(count[i] > max) max = count[i]; } for(i = 0; i < 100; i++){ if...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_343346/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_343346/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[100],x,i,a; a=0; for(i=0;i<100;i++){ n[i]=0; } while(scanf("%d",&x)!=EOF){ n[x-1]++; if(n[x-1]>a) a=n[x-1]; } for(i=0;i<100;i++){ if(n[i]==a) printf("%d\n",i+1); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_343397/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_343397/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i,j,m,n,s[1000],sum,temp; scanf("%d %d",&n,&m); for(i=0;i<n;i++) scanf("%d",&s[i]); sum=0; for(i=1;i<=m;i++) { scanf("%d%d",&a,&b); temp=0; for(j=a;j<=b;j++) temp+=s[j-1]; if(temp>0) sum=sum+temp; } printf("%d",sum); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_34344/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_34344/source.c" target datalayout = "e-m:e-p270:32:32-p271: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,m,x; scanf("%d %d %d", &n, &m, &x); int a[m]; for (int i = 0; i < m; i++) { scanf("%d", &a[i]); } int left = 0; for (int i = 0; i < m; i++) { if (a[i] < x) { left++; } else { break; } } int right = m-left; int answer = left; if...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_343483/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_343483/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 i,j,cou=0,N,M,X,A[101],cou2=0; scanf("%d %d %d",&N,&M,&X); for(i=0;i<M;i++){ scanf("%d",&A[i]); } for(i=0;i<M;i++){ if(X>A[i]){ cou++; } } for(i=0;i<M;...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_343526/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_343526/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { int i,N,M,X; scanf("%d %d %d",&N,&M,&X); int a[M]; for(i=0;i<M;i++) { scanf ("%d",&a[i]); } int s,t,min; s=0; t=0; for (i=0;i<M;i++) { if(a[i]>X) break; s=++s; } for (i=M-1;i>=0;i--) { if(a[i]<X) break; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_343577/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_343577/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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<stdbool.h> char a[200]; int n, k; int main() { scanf("%i%i%s",&n,&k,a); int g, t; for(int i=0;i<n;i++) if(a[i]=='G') g = i; else if(a[i]=='T') t = i; bool good; if((g-t)%k==0) { if(g<t) { good = true; for(int i=g;i<t;i+=k) if(a[i]=='#') ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_34362/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_34362/source.c" target datalayout = "e-m:e-p270:32:32-p271: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> typedef struct { int key, id; } data; typedef struct { data obj[100001]; int size; } max_heap; void push(data x, max_heap* h) { int i = h->size; data tmp; h->obj[(h->size)++] = x; while (1) { if (i == 0) break; else if (h->obj[i].key > h->obj[(i-1)/2].key) { tmp = h->obj[(i-1)/2]; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_343670/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_343670/source.c" target datalayout = "e-m:e-p270: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.max_heap = type { [...
/* original submission at https://atcoder.jp/contests/abc134/submissions/6473772 code by kayaryou */ #include<stdio.h> int main(void){ int n, a[200001], b[200001], sum=0; scanf("%d", &n); for(int i=1; i<=n; i++){ scanf("%d", &a[i]); } for(int i=n; i>=1; i--){ int m=2*i; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_343713/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_343713/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <limits.h> #include <stdlib.h> #include <math.h> int main(void) { long int i, j; long int n; long int flg; long int count; long int sum; long int a[200001]; long int x[200001] = {0}; scanf("%ld", &n); count = 0; for(i = 1; i <= n; i++) { scanf("%ld", &a[i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_343757/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_343757/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,result=0; scanf("%d %d %d",&a,&b,&c); if(a!=b) result++; if(a!=c) result++; if(b!=c) result++; if(result==0) result++; printf("%d",result); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_343807/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_343807/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ int a,b,c; scanf("%d %d %d",&a,&b,&c); if(a==b || a==c || b==c){ if(a==b && b==c){ printf("1"); } else{ printf("2"); } } else printf("3"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_343850/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_343850/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void) { int a,b,c; int count; scanf("%d %d %d",&a,&b,&c); if(a==b && b==c){ count=1; } else if(a==b||b==c||a==c){ count=2; } else{ count=3; } printf("%d",count); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_343894/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_343894/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d %d %d",&a,&b,&c); if(a==b && b==c){ printf("1\n"); }else if(a==b || b==c || c==a){ printf("2\n"); }else{ printf("3\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_343944/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_343944/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { int a, b, c; scanf("%d %d %d", &a, &b, &c); if (a == b && b == c) printf("%d\n", 1); else if (a != b && b != c && c != a) printf("%d\n", 3); else printf("%d\n", 2); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_343988/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_343988/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; int x; scanf("%d %d %d",&a,&b,&c); if(a==b&&b==c){ x = 1; }else if(a==b||b==c||c==a){ x = 2; }else{ x=3; } printf("%d\n",x); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_344037/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_344037/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...