Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include <stdio.h>
int main ()
{
double r;
scanf("%lf", &r);
printf("%f", 2*r*3.14);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338992/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338992/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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", 2 * r*3.14);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339034/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339034/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 iR;
float fAns;
scanf("%d", &iR);
fAns = iR * 2 * 3.1412;
printf("%.3f\n", fAns);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339085/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339085/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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){
float r;
scanf("%f", &r);
printf("%f\n", r * 3.1415 * 2);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339142/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339142/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main(){
int N;
while(scanf("%d",&N)<=0);
//計算処理
//最終出力
printf("%f",2*M_PI*N);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339193/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339193/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
float PI = 3.14;
int main(){
double radius, ci;
scanf("%lf", &radius);
ci = 2 * PI * radius;
printf("%lf", ci);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339236/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339236/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PI = dso_local local_unnam... |
#include<stdio.h>
int main()
{
long n,k,i;
scanf("%li%li", &n, &k);
long ans=n;
for(i=0;i<k;i++)
{
if(ans%10!=0) {ans=ans-1;}
else ans=ans/10;
}
printf("%li\n",ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33928/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33928/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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(){
double R=0;
scanf("%lf",&R);
printf("%lf\n",(R*2*M_PI));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339322/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339322/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
long double ldx = 3.141592L;
scanf("%d",&r);
printf("%.7Lf\n", (r*2)*ldx);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339366/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339366/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
printf("%.15f",2*x*M_PI);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339452/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339452/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a;
scanf("%d", &a);
printf("%f",2.0*a*3.1415926);
printf("\n");
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339502/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339502/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 sum,pi=3.1416;
scanf("%d",&r);
sum=2*pi*r;
printf("%.2lf",sum);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339546/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339546/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 cLo;
scanf("%d", &r);
cLo = 3.141 * 2*r;
printf("%.3f",cLo);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339632/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339632/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 r;
scanf("%d", &r);
double ans = 3.141592 * 2 * r;
printf("%lf", ans);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339683/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339683/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 num;
scanf("%d", &num);
printf("%f",2 * M_PI * num);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339726/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339726/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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", (double)(r+r)*3.141592);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339777/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339777/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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("%lf", R*2*3.14159265358979);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339906/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339906/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[300020];
int l[300020];
int main(){
int n;
int all=0,i,j,len=-1;
scanf("%d",&n);
for(i=0;i<n;i++)scanf("%d",&a[i]);
i=0;
while(i<n){
int ll=i-1,rr=i+1;
while(ll>=0){
if(a[ll]%a[i]==0){
ll--;
}
else break;
}
while(rr<n&&a[rr]%a[i]==0)rr++;
rr--;
ll++;
if(rr-ll>len... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33995/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33995/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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()
{
double y=3.141592654;
int t;
scanf("%d",&t);
y=2*y*t;
printf("%lf",y);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339993/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339993/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 NIL NULL
typedef struct node{
int key;
int pri;
struct node *right , *left;
}Node;
Node * Delete(Node **,int);
Node * del(Node **,int);
int find(Node *p,int x)
{
while(p!=NIL)
{
if(p->key==x)return 1;
else if(p->key > x)p = p->left;
else p = p->right;
}
retu... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340034/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340034/source.c"
target datalayout = "e-m:e-p270: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 <math.h>
#include <stdio.h>
const double PI = 3.1415926535897932384626;
int main() {
double a, b, c;
double rad, deg;
double area, perimeter, h;
scanf("%lf %lf %lf", &a, &b, °);
rad = deg * PI / 180.0;
c = sqrt(pow(a, 2) + pow(b, 2) - 2*a*b*cos(rad));
area = a*b*sin(rad) / 2.0;
perimeter = a... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340078/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340078/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PI = dso_local local_unnam... |
#include <stdio.h>
#include <math.h>
int main( void )
{
int a;
int b;
int c;
double rad;
double S;
double len;
double hei;
scanf( "%d %d %d",&a, &b, &c );
rad = 3.1415926535897932384626/180 * c;
S = (1.0/2.0)*a*b*sin(rad);
len = a + b + sqrt( a*a + b*b - 2*a*b*cos(rad) );
hei = 2 * S / a;
printf("%lf\... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340120/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340120/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 PI 3.141592653589793 /* 円周率 */
int main(void)
{
double a, b, c, ang_c;
double s, l, h;
scanf("%lf %lf %lf", &a, &b, &ang_c);
ang_c = ang_c * PI / 180.0; /* 角度からラジアンに変換 */
s = a * b * sin(ang_c) * 0.5; /* 面積を求める */
c = sqrt( (a * a) + (b * b) - (2 * a * b * c... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340171/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340171/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 kouyak... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340221/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340221/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <inttypes.h>
int main(void) {
uint64_t N, M;
uint64_t answer;
if (scanf("%" SCNu64 "%" SCNu64, &N, &M) != 2) return 1;
if (N <= 1 && M <= 1) answer = 1;
else if (N <= 1) answer = M - 2;
else if (M <= 1) answer = N - 2;
else answer = (N - 2) * (M - 2);
printf("%" PRIu64 "\n", answer)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340265/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340265/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#define max(x, y) (x < y ? y : x)
int main()
{
long N, M;
scanf("%ld %ld", &N, &M);
if (N == 1 && M == 1) {
printf("1");
} else if (N == 1 && M != 1) {
printf("%ld", max(N, M) - 2);
} else if (N != 1 && M == 1){
printf("%ld", max(N, M) - 2);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340308/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340308/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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<stdint.h>
#include<inttypes.h>
#include<string.h>
typedef int32_t i32;
int cmp (const void *a, const void *b) {
i32 d = *(i32 *)a - *(i32 *)b;
return d == 0 ? 0 : d < 0 ? -1 : 1;
}
void run (void) {
i32 n, k;
scanf ("%" SCNi32 "%" SCNi32, &n, &k);
i32 *a = (i32... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340351/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340351/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
int main(){
int n,i,flag=0;
char s[110000];
scanf("%s",s);
n=strlen(s);
for(i=0;i<n-2;i++){
if(s[i]==s[i+1]){
flag=1;
break;
}
else if(s[i]==s[i+2]){
flag=2;
break;
}
}
if(s[i]==s[i+1])
flag=1;
if(flag)
printf("%d %d\n... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340395/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340395/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 && y >= r && (H - r) >= y && (W - r) >= x) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340445/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340445/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>w||x-r<0||y+r>h||y-r<0) printf("No\n");
else printf("Yes\n");
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340489/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340489/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int x, y, r;
scanf("%d%d%d%d%d", &W, &H, &x, &y, &r);
W -= r, H -= r;
if (r <= x && x <= W && r <= y && y <= H){
printf("Yes\n");
}
else{
printf("No\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340531/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340531/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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((y-r)>=0&&(y+r)<=H&&(x-r)>=0&&(x+r)<=W)
puts("Yes");
else
puts("No");
return(0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340575/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340575/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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) && (y + r <= H) && (x > 0) && (y > 0)){
printf("Yes\n");
}
else{
printf("No\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340625/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340625/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 && H-x >= r && y >= r && H-y >= r) printf("Yes\n");
else printf("No\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340683/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340683/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 && x<=100 && 0<y && y<=100)
{
if (r<=x && r<=y && r<=h-y && r<=w-x)
{
printf("Yes\n");
}
else
{
printf("No\n");
}
}
else
{
printf("No\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340733/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340733/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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=0;
scanf("%d %d %d %d %d",&w,&h,&x,&y,&r);
if(x>=r){
if(y>=r){
if(w-x>=r){
if(h-y>=r){
f=1;
}
}
}
}
if(f==1){
printf("Yes\n");
}else{
printf("No\n");
}
return 0... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340777/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340777/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,k,a[100001],i;
scanf("%d %d",&n,&k);
int x=k;
for(i=1;i<=n;i++)
a[i]=i;
for(i=1;i<=(n-k);i++)
{
a[i]=i-1;
if(i==1)
a[i]=n-k;
}
// if(x==n-1)
// {
// a[1]=1;
// a[n]=n;
// }
if((n-x))
{... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_34082/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_34082/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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(x-r<0||y-r<0||x+r>w||y+r>h)printf("No\n");
else printf("Yes\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340870/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340870/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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) && (y >= r)) && (((W - r) >= x) && ((H - r) >= y)))) == 1)
printf("Yes\n");
else
printf("No\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340913/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340913/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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("Yes\n");
else printf("No\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340957/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340957/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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("Yes\n");
}else{
printf("No\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341006/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341006/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
int a,b,c,d,e;
scanf("%d%d%d%d%d",&a,&b,&c,&d,&e);
if(c<=0||d<=0) printf("No\n");
else{
if(c<=a-e&&d<=b-e) printf("Yes\n");
else{
printf("No\n");
}
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341057/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341057/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, k, i, j;
scanf("%d %d", &n, &k);
for(j=n;j>0;j--){
for(i=1;i<j;i++){
printf("0 ");
}
printf("%d ", k);
for(;i<n;i++){
printf("0 ");
}
printf("\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_34110/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_34110/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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(W<x+r || x-r<0 || H<y+r || y-r<0){
printf("No\n");
}else{
printf("Yes\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341143/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341143/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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("Yes\n");
}else{
printf("No\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341187/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341187/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 W,H,r;
int x,y;
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_341259/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341259/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_341309/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341309/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
int main()
{
int n,m,i,j,temp,nod1 = 0,nod2 = 0,max1 = 0,max2 = 0,flag = 0;
char c[1000];
scanf("%s",c);
int len = strlen(c);
for(i=0;i<(len/2 + 1);i++)
{
if(c[i] != 'A' && c[i] != 'b' && c[i] != 'd' && c[i] != 'H' && c[i] != 'I'
&& c[i] != 'M' && ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_34136/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_34136/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main()
{
int n,i,x,cnt=0;
scanf("%d",&n);
x=n;
while(x--){
scanf("%d",&i);
if(i==1)
cnt++;
}
if((n==1&&cnt==1)||(n!=1&&n-cnt==1))
printf("YES\n");
else
printf("NO\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_34141/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_34141/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 ((x - r) >= 0 && (y - r) >= 0){
if ((x + r) <= w && (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_341453/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341453/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 || 0>x-r || 0>y-r){
printf("No\n");
}else{
printf("Yes\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341497/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341497/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 rect_w, rect_h, x, y, r;
scanf("%d %d %d %d %d", &rect_w, &rect_h, &x, &y, &r);
if (x >= r && x + r <= rect_w && y >= r && y + r <= rect_h)
{
printf("Yes\n");
}
else{
printf("No\n");
} ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341547/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341547/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 || 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_341590/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341590/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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) {
puts("No");
}
else
puts("Yes");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341640/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341640/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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%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_341691/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341691/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int a,b,c,d,e;
scanf("%d %d %d %d %d",&a,&b,&c,&d,&e);
if(a>=c+e && b>=d+e && c-e>=0 && d-e>=0){
puts("Yes");
}else{
puts("No");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341741/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341741/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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 intput(int *W, int *H, int *x, int *y, int *r);
int judge(int *W, int *H, int *x, int *y, int *r);
int main(void)
{
int W = 0;
int H = 0;
int x = 0;
int y = 0;
int r = 0;
intput(&W, &H, &x, &y, &r);
judge(&W, &H, &x, &y, &r);
return 0;
}
int intput(int... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341785/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341785/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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<-100||100<x){
printf("error\n");
return 0;
}
if(y<-100||100<y){
printf("error\n");
return 0;
}
if(W<=0||100<W){
printf("error\n");
return ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341828/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341828/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
puts(x+r<=w&&x-r>=0&&y+r<=h&&y-r>=0?"Yes":"No");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341871/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341871/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ) || ((y + r) > H) || ((y-r) < 0) || ((x - r)< 0) )
printf("No\n");
else
printf("Yes\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341914/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341914/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_341958/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341958/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int H;
int x;
int y;
int r;
scanf("%d %d %d %d %d",&W,&H,&x,&y,&r);
if(r+x>W){
printf("No\n");
}else if(x-r<0){
printf("No\n");
}else if(r+y>H){
printf("No\n");
}else if(y-r<0){
printf("No\n");
}else{
printf("Yes\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_342043/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_342043/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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)<=W && (y+r)<=H && x>=r && y>=r){
printf("Yes\n");
}
else {
printf("No\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_342087/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_342087/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
// a -> blue, b -> red
#include <stdio.h>
int main(void)
{
long long n, a, b;
scanf("%lld %lld %lld", &n, &a, &b);
if (a < 0 || b < 0)
{
return 0;
}
long long div, mod, ans;
div = n / (a + b);
mod = n % (a + b);
if (mod >= a)
{
ans = div * a + a;
}
else if (mod < a)
{
ans... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_145620/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_145620/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,B,A,div,res,AB,sum;
scanf("%lld %lld %lld",&N,&A,&B);
AB = A+B;
div = N/AB;
res = N%AB;
//青いボールが先に並ぶ
sum = A*div;
if(res < A){
sum += res;
} else {
sum += A;
}
printf("%lld\n",sum);
return 0;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_145664/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_145664/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(int argc, char *argv[])
{
unsigned long a, b, n;
unsigned long count = 0;
scanf("%lu %lu %lu", &n, &a, &b);
long sum = a+b;
long tmp = n/sum;
long amari = n%sum;
count += tmp*a;
if(amari > a){
count += a;
}
else
count += amari;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_145707/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_145707/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 long long N;
unsigned long long A;
unsigned long long B;
int num;
unsigned long long set;
unsigned long long turn;
unsigned long long amari;
unsigned long long ans;
num = scanf("%llu %llu %llu", &N, &A, &B);
if (num != 3)
return (0);
set = A ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_145758/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_145758/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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 0322: Slates
// 2019.2.24 bal4u
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#if 1
#define gc() getchar_unlocked()
#else
#define gc() getchar()
#endif
int in()
{
int n = 0, c = gc();
do n = 10 * n + (c & 0xf), c = gc(); while (c >= '0');
return n;
}
int ins(char *s, char *r)
{
char *ss = s;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_145800/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_145800/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct._IO_FILE = type { i... |
#include<stdio.h>
int main(){
int i,count=0;
char s[5];
scanf("%s",s);
for(i=0;i<4;i++){
if(s[i]=='+')
count++;
else
count--;
}
printf("%d\n",count);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_145851/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_145851/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{ char s;
int sum = 0;
for(int i=0; i<5; i++){
scanf("%c", &s);
if(s == '+')
sum++;
else if(s == '-')
sum--;
}printf("%d\n", sum);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_145916/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_145916/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
int n = 0;
char s[5];
scanf("%s", s);
for(int i = 0; i < 4; i++){
if(s[i] == '+'){n += 1;}
else if(s[i] == '-'){n -= 1;}
}
printf("%d\n", n);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_145974/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_145974/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 loop, n = 0;
char i[4];
scanf("%s", i);
for (loop = 0; loop < 4; loop++)
{
if (i[loop] == '+') n++;
else if (i[loop] == '-') n--;
}
printf ("%d\n", n);
return (0);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_146016/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_146016/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x = 0;
char a[5];
scanf("%s", a);
for(int i = 0; i < 4; i++)
{
if (a[i] == '+')
{
x++;
}
else if (a[i] == '-')
{
x--;
}
}
printf("%d", x);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_146067/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_146067/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ans=0;
for(int i=0;i<4;i++){
if(getchar()=='+')ans++;
else ans--;
}
printf("%d\n",ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_146117/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_146117/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 = 0;
char s[4];
// 文字列の入力
scanf("%s", s);
// 出力
for (int i = 0; i < 4; i++) {
if (s[i] == '+')
n++;
else if (s[i] == '-')
n--;
}
printf("%d\n", n);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_146160/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_146160/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
char c;
int ans = 0;
for (int i = 0; i < 4; i++)
{
scanf("%c", &c);
if (c == '+')
{
ans++;
}
if (c == '-')
{
ans--;
}
}
printf("%d", ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_146203/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_146203/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
// Aizu Vol0 0074: Videotape
// 2017.7.30
#include <stdio.h>
#include <stdlib.h>
int main()
{
int T, H, S;
int t;
while (1) {
scanf("%d%d%d", &T, &H, &S);
if (T < 0) break;
t = 7200 - (3600 * T + 60 * H + S);
printf("%02d:%02d:%02d\n", t / 3600, (t % 3600) / 60, t % 60);
t *= 3;
printf("%02d:%02d:%02... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_146247/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_146247/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 main(void)
{
char cards[1024];
while (fgets(cards, sizeof(cards), stdin), *cards != '0') {
int ones = 0;
int score = 0;
char *card = strtok(cards, " ");
for (; card != NULL; card = strtok(NULL, " ")) {
int num = ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_146333/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_146333/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = external local_unn... |
#include<stdio.h>
#include<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,k) (((i)*5+(j))*2+(k))
int64 calc(int bit,int *f,int *p,int n){
int ans=0;
int i,j,k;
for(i=0;i<n;i++){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_146399/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_146399/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x,y,z;
scanf("%d%d%d",&x,&y,&z);
printf("%d",(x-z)/(y+z));
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_146441/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_146441/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x, y, z;
scanf("%d %d %d",&x,&y,&z);
printf("%d\n", (x-z)/(y+z));
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_146485/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_146485/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,z,ans;
scanf("%d%d%d",&x,&y,&z);
int i=0;
for(int i=0;y*i+z*(i+1)<=x;i++){
ans=i;
}
printf("%d\n",ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_146528/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_146528/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 isu,width,part,ans,y;
scanf("%d %d %d",&isu,&width,&part);
ans=0;
y=part;
while(1){
y+=width+part;
if(y>isu){
break;
}
ans++;
}
printf("%d\n",ans);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_146579/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_146579/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,Z,n,m;
while(scanf("%d %d %d",&X,&Y,&Z)!=EOF)
{
n=X/(Y+Z);
if(X-(Y+Z)*n<Z)
n--;
printf("%d\n",n);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_146621/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_146621/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, z,cnt=0;
scanf("%d %d %d",&x, &y, &z);
x -= z;
while(x>=0){
x -= z;
x -= y;
cnt++;
}
printf("%d\n",cnt-1);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_146665/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_146665/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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 #2808
title:Password
@kankichi573
*/
#include <stdio.h>
char a1[26],a2[26][26],a3[26][26][26],a4[26][26][26][26];
char s[400001];
void solve()
{
int i,j,k,l;
for(i=0;i<26;i++)
if(a1[i]==0)
{
printf("%c\n",i+'a');
return;
}
for(i=0;i<26;i++)
for(j=0;j<26;j++)
if(a2[i][j]==... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_146715/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_146715/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@a1 = dso_local local_unnam... |
#include <stdio.h>
#include <string.h>
int main(void)
{
int a,b[200000],i=0,j,m,n,x,y,z=1;
char c[10100],s[10100];
scanf("%d%d",&n,&m);
while (1)
{
if(m<=z) break;
z=z+n-1;
i++;
}
printf("%d",i);
printf("\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_146759/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_146759/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a,b;
int i;
scanf("%d %d", &a, &b);
i = 0;
while(a*i - i + 1 < b) i++;
printf("%d\n", i);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_146801/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_146801/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
int main() {
int A;
int B;
int i = 0;
int C = 0;
int ans = 0;
scanf("%d %d", &A, &B);
while (ans == 0)
{
if (A * i-(i - 1) >= B) {
ans = i;
break;
}
else {
i += 1;
}
}
printf("%d", ans);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_146845/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_146845/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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){
//input
int A;
scanf("%d", &A);
int B;
scanf("%d", &B);
//calcu
// int Ans=0;
// Ans = B / A + 1;
// if(1<=B && B<=A)
// Ans = 1;
int Ans=0;
int Out=1; //挿し込み口の数
while(Out < B){
Out -= 1;
Out += ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_146889/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_146889/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int A,B;
scanf("%d%d",&A,&B);
int i,cnt=1,num=A;
if(B==1){
printf("0\n");
}
else{
while(num<B){
num += A-1;
cnt++;
}
printf("%d\n",cnt);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_146931/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_146931/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
int n,i,j;
for(i=0; i<t; i++)
{
scanf("%d",&n);
for(j=0; j<2*n; j++)
{
if(j%2!=0)
{
printf("%d ", 1);
}
}
printf("\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_14699/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_14699/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main(){
int a, b;
scanf("%d%d", &a, &b);
int count = 0;
int x = 1;
while(x < b){
x--;
x += a;
count++;
}
printf("%d", count);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_147031/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_147031/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#define MAX 100000000
int Match[MAX] = { 0 };
int main() {
int N, M;
int input_lack, ans = 0;
scanf("%d %d", &N, &M);
for (int i = N; i < N * 2; i++) {
Match[i] = 1;
}
for (int i = 0; i < M; i++) {
scanf("%d", &input_lack);
Match[N + input_lack] = 0;
}
for (int i = 2 * N - 2; i >= ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_147097/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_147097/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@Match = dso_local local_un... |
#include<stdio.h>
int main(){
unsigned long long n,i , ans, m;
while(1){
scanf("%lld",&n);
if(n == 0)
break;
m = 0;
i = 1;
ans = 0;
while(n > 7){
m = n % 8;
if(m > 4)
m+=2;
else if(m == 4)
m++;
ans = ans + m*i;
n /= 8;
i *= 10;
}
if(n > 4)
n+=2;
else if(n == 4)
n+... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_147147/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_147147/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>
#include <math.h>
int main(void){
char S[100001];
scanf("%s", S);
int len = strlen(S);
int ans = 0;
for(int i = 1; i < len; i++){
if(S[i] != S[i-1]){
ans++;
}
}
printf("%d\n", a... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_147204/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_147204/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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=0,ans=0;
char s[100001],tmp;
scanf("%s",s);
tmp=s[0];
while(s[i]!=0){
if(s[i]!=tmp){
ans++;
tmp=s[i];
}
i++;
}
printf("%d\n",ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_147248/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_147248/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(){
char s[100000] = {'\0'};
scanf("%s",s);
int i = 0;
int sum = 0;
char d = s[i];
while(i < strlen(s)){
d = s[i];
i++;
if(s[i] != d) sum++;
}
sum--;
printf("%d\n",sum);
return EXIT_SUCCESS... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_147291/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_147291/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#pragma region kyopuro_templates
#pragma GCC optimize("Ofast")
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
#include<stdbool.h>
#include<assert.h>
#include<time.h>
#include<ctype.h>
typedef long long ll;
typedef long double ld;
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define repp(i,l,r,k)f... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_147334/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_147334/source.c"
target datalayout = "e-m:e-p270: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_AVL_set = type... |
#include <stdio.h>
#include <stdlib.h>
int *G[100000];
int n, m;
int dist[100000];
int q[100000], head, tail;
void bfs(int st) {
for (int i = 0; i < n; i++) {
dist[i] = -1;
}
dist[st] = 0;
head = tail = 0;
q[tail] = st;
tail++;
while (head != tail) {
// q[head] -> no ?
for (int i = 0; G[q[head]][i] != -1; ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_147378/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_147378/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@n = dso_local global i32 0... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.