Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include<stdio.h>
int main()
{
int x;
scanf("%d",&x);
int i=1;
int sum=0;
int num;
for(i=1;i<=x;i++)
{
scanf("%d",&num);
sum+=num;
}
printf("%.4f",((float)sum/x));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20533/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20533/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main(void) {
int i;
int n, a = 0, b = 0;
char s[110];
scanf("%d%s", &n, s);
for (i = 0; i < n; i++)
{
if (s[i] == '(') b++;
else if (b > 0) b--;
else a++;
}
for (int j = 0; j < a; j++) printf("(");
printf("%s", s);
for (int j = 0; j < b; j++) printf(")");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205373/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205373/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
if (scanf("%d%d%d", &A, &B, &C) != 3) return 1;
puts(A == B && B == C ? "Yes" : "No");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205416/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205416/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int n;
int i;
int v, sum = 0;
double x;
scanf("%d", &n);
for (i = 0; i < n; i++)
{
scanf("%d", &v);
sum += v;
}
x = ((double) sum) / ((double) n);
printf("%.12f\n", x);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20546/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20546/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,c;
while(~scanf("%d%d%d",&a,&b,&c))
{
if(a==b&&b==c)
{
printf("Yes\n");
}
else
{
printf("No\n");
}
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205502/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205502/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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&&c==a){
printf("Yes");
}else{
printf("No");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205546/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205546/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[15];
scanf("%s", s);
s[3]++;
printf("%s\n", s);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205597/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205597/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <time.h>
#define N 300000
int gg[N];
int compare(const void *a, const void *b) {
int i = *(int *) a;
int j = *(int *) b;
return gg[i] - gg[j];
}
int dsu[N];
long long pp[N], qq[N], sum[N];
int find(int i) {
return dsu[i] < 0 ? i : (dsu[i] = f... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20564/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20564/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@gg = dso_local local_unnamed... |
#include <stdio.h>
int main(void){
char S[10] = {"0"};
scanf("%s", S);
S[3] = '8';
printf("%s\n", S);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205755/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205755/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.S = private u... |
#include<stdio.h>
int main()
{
int n,i,x,y;
char a[10];
scanf("%s",&a);
for(i=0;i<3;i++)
{
printf("%c",a[i]);
}
printf("8/");
for(i=5;i<10;i++)
{
printf("%c",a[i]);
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205856/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205856/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 N 100
/** 砂時計の個数 */
static int n;
/** 理想時間 */
static int t;
/** 許容誤差 */
static int e;
/** 各砂時計の計測時間 */
static int x[ N ];
int
main (
int argc,
char *argv[ ]
)
{
/** 答え */
int res = -1;
int i;
/* 読み込み */
scanf ( "%d%d%d", &n, &t, &e );
for ( i = 0; i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205957/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205957/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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) ? (X) : (Y))
#define min(X, Y) ((X) < (Y) ? (X) : (Y))
int q;
int c, a, n;
int main()
{
scanf("%d", &q);
for (int i = 0; i < q; i++) {
int ans = 0;
scanf("%d %d %d", &c, &a, &n);
for (int j = 0; j <= 1000; j++) {
for (int k ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206013/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206013/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<math.h>
int isprime(int);
int main(){
int i;
int a,d,n;
while(1){
i=0;
scanf("%d %d %d",&a,&d,&n);
if(a==0&&d==0&&n==0)break;
while(1){
if(isprime(a)==1) i++;
if(i==n){
printf ("%d\n",a);
break;
}
a+=d;
}
}
return 0;
}
i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206071/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206071/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_N 1000000
int isPrime[ MAX_N + 1 ];
int main( void ) {
int i, j, a, d, n, fig;
isPrime[ 0 ] = isPrime[ 1 ] = 0;
for ( i = 2; i <= MAX_N; i++ )
isPrime[ i ] = 1;
for ( i = 4; i <= MAX_N; i += 2 )
isPrime[ i ] = 0;
for ( i = 3; i * i <= MAX_N; i += 2 )
if ( isPrime[ i ] )
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206114/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206114/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@isPrime = dso_local local_... |
#include <stdio.h>
int main() {
char s[1000001] = {0};
unsigned int g = 0;
unsigned int p = 0;
unsigned int w = 0;
unsigned int l = 0;
scanf("%s", s);
for(int i = 0; s[i] != '\0'; i++) {
if(g == p) {
g++;
if(s[i] == 'p') {
l++;
}
} else if(g > p ) {
p++;
if(s[i] == 'g') {
w++;
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206158/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206158/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h> // printf(), scanf()
#include <math.h> // sqrt()
#define MAX_N 100
#define max(a, b) ((a) > (b) ? (a) : (b))
int dx[MAX_N][MAX_N / 2];
int dp[MAX_N][MAX_N / 2];
int data[2500];
int
main(int argc, char **argv)
{
int n;
int i, j, k;
k = 0;
while (scanf("%d,", &data[k++]) != E... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206200/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206200/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%lf",&a);
double x,y;
x=a/3;
y=x*x*x;
printf("%lf",y);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206251/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206251/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 l;
double ans;
scanf("%d",&l);
ans=(l/3.0)*(l/3.0)*(l/3.0);
printf("%.6lf\n",ans);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206295/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206295/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 L;
double H;
scanf("%d",&L);
H=L/3;
printf("%lf\n",(double)L*L*L/27);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206338/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206338/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 l,a,b,c;
scanf("%lf",&l);
a=l/3;
// printf("%f \n",a);
double vmax=a*a*a;
for(;a<l;a++){
for(b=l/3;b<l;b++){
for(c=l/3;c<l;c++)
if(a+b+c==l && a*b*c>vmax)
vmax=a*b*c;
}
}
printf("%.12f",... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206381/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206381/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 l;
scanf("%lf", &l);
printf("%10f\n", l*l*l/27);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206424/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206424/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
double a;
scanf("%lf",&a);
printf("%f",(a/3)*(a/3)*(a/3));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206475/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206475/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 no;
scanf("%lf",&no);
printf("%.12lf",no*no*no/27);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206525/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206525/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(){
double l;
scanf("%lf", &l);
printf("%lf\n", pow(l/3,3));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206569/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206569/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
#define NIL NULL
Node root;
Node treeMinimum(Node x)
{
while (x->left != NIL) x = x->left;
return x;
}
Node treeMaximum(Node x)
{
while (x->righ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206611/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206611/source.c"
target datalayout = "e-m:e-p270: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 { ptr, ... |
#include<stdio.h>
#include<stdlib.h>
#define NIL NULL
struct node {
int key;
struct node *left;
struct node *right;
struct node *parent;
};
typedef struct node* Node;
Node root;
Node treeSearch(Node x,int k) {
if(x == NIL || k == x-> key)
return x;
if(k < x->key)
return treeSearch(x->left,k);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206655/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206655/source.c"
target datalayout = "e-m:e-p270: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, ... |
/*
I used a template program in C.
*/
#include<stdio.h>
#include<stdlib.h>
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
#define NIL NULL
Node root;
Node treeMinimum(Node x){
/*my code beginning*/
while ( x->left != NIL ){
x = ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206699/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206699/source.c"
target datalayout = "e-m:e-p270: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 { ptr, ... |
# define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<stdlib.h>
typedef struct node {
int key;
struct node *p_left;
struct node *p_right;
struct node *p_parent;
}NODE;
NODE *insert(int value, NODE *p_root); /* ?????\ */
void inorderTreeWalk(NODE *p_node); /* ??????????????? */
void preorderTreeWalk(NODE *p_... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206741/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206741/source.c"
target datalayout = "e-m:e-p270: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>
#define NIL NULL
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
Node root;
Node treeMinimum(Node u){
while(u->left != NIL) {
u = u->left;
}
return u;
}
/*Node treeMaximum(Node u){
}*/
N... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206806/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206806/source.c"
target datalayout = "e-m:e-p270: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 { ptr, ... |
#include <stdio.h>
#include <limits.h>
#include <stdlib.h>
#include <limits.h>
#include <stdbool.h>
#define NIL NULL
#define TREE_VALUE INT_MAX
typedef struct Node* NodePointer;
typedef NodePointer Tree;
typedef struct Node {
int key;
NodePointer p, left, right;
} Node;
NodePointer makeNode(int key) {
NodeP... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206857/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206857/source.c"
target datalayout = "e-m:e-p270: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>
int main(void)
{
int n;
int seat1[5002];
int seat2[5002];
int seat3[5002];
int count1 = 0, count2 = 0, count3 = 0;
int i;
int m;
int p, q, l;//用于记录各能力学生的位置
scanf("%d", &n);
for (i = 1,p=1,q=1,l=1; i <= n; i++)
{
scanf("%d", &m);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20690/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20690/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
#include<stdlib.h>
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
#define NIL NULL
Node root;
Node treeMinimum(Node x){
while(x->left!=NIL){
x=x->left;
}
return x;
}
Node treeSearch(Node u, int k){
if(u==NIL || k=... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206950/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206950/source.c"
target datalayout = "e-m:e-p270: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 { ptr, ... |
#include <stdio.h>
#include <stdlib.h>
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node *Node;
#define NIL NULL
Node root;
Node treeMinimum(Node x){
while (x->left != NIL) x = x->left;
return x;
}
Node treeSearch(Node u, int k){
while (u != NIL && k != ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207007/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207007/source.c"
target datalayout = "e-m:e-p270: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 { ptr, ... |
#include <stdio.h>
#include <stdlib.h>
typedef struct data *node;
struct data{
int key;
node par;
node left;
node right;
};
void insert(int);
node find(int);
node findnext(int);
void delete(int);
node makenode(int);
void Preorder(node);
void Inorder(node);
node successor(node);
node root;
int main ()... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207050/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207050/source.c"
target datalayout = "e-m:e-p270: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.data = type { i32, ... |
#include <stdio.h>
#include <stdlib.h>
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
#define NIL NULL
Node root;
Node treeMinimum(Node x){
while(x->left!=NIL)
x=x->left;
return x;
}
Node treeSearch(Node u, int k){
if(u==NIL || k==... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207100/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207100/source.c"
target datalayout = "e-m:e-p270: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 { ptr, ... |
/*1 insert(T, z)
2 y = NIL // x の親
3 x = 'T の根'
4 while x ≠ NIL
5 y = x // 親を設定
6 if z.key < x.key
7 x = x.left // 左の子へ移動
8 else
9 x = x.right // 右の子へ移動
10 z.p = y
11
12 if y == NIL // T が空の場合
13 'T の根' = z
14 else if z.key < y.key
15 y.... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207144/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207144/source.c"
target datalayout = "e-m:e-p270: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 { ptr, ... |
#include<stdio.h>
#include<stdlib.h>
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
#define NIL NULL
Node root;
Node treeMinimum(Node x){
while(x->left!=NIL)x=x->left;
return x;
}
Node treeMaximum(Node x){
while(x->right!=NIL)x=x->right... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207188/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207188/source.c"
target datalayout = "e-m:e-p270: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 { ptr, ... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
typedef struct Node {
int key;
struct Node *right, *left, *parent;
} Node;
Node *root, *NIL;
Node * treeMinimum(Node *x){
while(x->left != NIL){
x = x->left;
}
return x;
}
Node * find(Node *u, int k){
while(u != NIL && k != u->key){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207230/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207230/source.c"
target datalayout = "e-m:e-p270: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>
int main()
{
int i;
char S[11], T[12];
scanf("%s", S);
scanf("%s", T);
for (i = 0; S[i] != 0; i++) if (S[i] != T[i]) break;
if (S[i] == 0) printf("Yes\n");
else printf("No\n");
fflush(stdout);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207289/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207289/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<string.h>
#include<stdio.h>
int main()
{
char s[11],t[12];
scanf("%s%s",s,t);
int f=1;
int n=strlen(s);
for(int i=0;i<n;++i)
{
if(s[i]!=t[i])
{f=0;break;}
}
if(f)
printf("Yes");
else
printf("No");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207331/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207331/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 min(a,b,c) (a<b)?((a<c)?a:c):((b<c)?b:c)
int main(){
int n,k,l,c,d,p,nl,np;
scanf("%d%d%d%d%d%d%d%d",&n,&k,&l,&c,&d,&p,&nl,&np);
int td,tl,ts;
td=k*l/nl;
tl=c*d;
ts=p/np;
ts=min(td,tl,ts);
ts/=n;
printf("%d",ts);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20739/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20739/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,k,l,c,d,p,nl,np;
scanf("%d %d %d %d %d %d %d %d",&n,&k,&l,&c,&d,&p,&nl,&np);
int drink=k*l/nl;
int lim=c*d;
int salt=p/np;
int re=(drink<lim)?(drink<salt?drink:salt):(lim<salt?lim:salt);
printf("%d\n",re/n);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20744/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20744/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <string.h>
int main()
{
char S[11];
char T[11];
scanf("%s", S);
scanf("%s", T);
char copy[11] = {'\0'};
strncpy(copy, T, strlen(T) - 1);
if (strcmp(copy, S) == 0)
printf("Yes");
else
printf("No");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207483/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207483/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(void){
int i;
char s[13];
char t[13];
char d[13];
int flag=1;
(void)scanf("%s",s);
(void)scanf("%s",t);
for(i=0;i<strlen(s);i++){
d[i]=t[i];
}
if(strlen(t)-strlen(s)){
for(i=0;i<strlen(s);i+... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207526/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207526/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
int main()
{
char s[11];
char t[12];
scanf("%s%s",&s,&t);
int l=strlen(s);
int c=0;
for(int i=0;i<l;i++)
{
if(s[i]==t[i]){c++;}
}
if(c==l){printf("Yes");}
else printf("No");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207584/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207584/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
int main(){
char id[12], idd[12];
scanf("%s %s", id, idd);
int len=strlen(id);
if(strlen(idd)==strlen(id)+1&&strncmp(id, idd, len)==0){
printf("Yes");
}else{
printf("No");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207627/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207627/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <time.h>
#include <string.h>
#include <unistd.h>
#include <math.h>
long long int ans=0;
#define ll long long
//最大公約数
long long int getgcd(long long n, long long m)
{
int r;
if (n > m) {
long long t = m;
m = n;
n = t;
}
while ((r = m % n) != 0) {
m... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207670/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207670/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ans = dso_local local_unna... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <float.h>
#pragma region 定義
#define i_cin(X) scanf("%d", &X)
#define i_cin2(X,Y) scanf("%d %d",&X,&Y)
#define i_cin4(X,Y,Z,W) scanf("%d %d %d %d",&X,&Y,&Z,&W)
#define i_cin3(X,Y,Z) scanf("%d %d %d",&X,&Y,&Z)
#define l_cin(X) scanf("... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207713/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207713/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
void swap();
int data[6]={0};
int main(void)
{
int i,j,n;
while(scanf("%d,%d,%d,%d,%d",&data[1],&data[2],&data[3],&data[4],&data[5])!=EOF){
swap();
if((data[1]==data[2] && data[2]==data[3] && data[3]==data[4])||(data[2]==data[3] && data[3]==data[4] && data[4]==data[5])) puts("four card");
els... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207757/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207757/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@data = dso_local global [6... |
#include<stdio.h>
#define ll long long
ll pom(ll a,ll n,int m){ll x=1;for(a%=m;n;n/=2)n&1?x=x*a%m:0,a=a*a%m;return x;}
#define MOD 998244353
int main(){
int n;
scanf("%d",&n);
ll ans=0;
for(int i=0;i<n;i++){
int x;
scanf("%d",&x);
ans=(ans+pom(2,n-1-i,MOD)*x%MOD*pom(x+1,i,MOD))%MOD;
}
printf("%d\n",ans);
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207850/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207850/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <math.h>
#include <assert.h>
#include <stdlib.h>
int main(void)
{
int k;
scanf("%d",&k);
int a=0;
int i;
if(k%2==0 || k%5==0)
{
printf("-1\n");
}
else
{
for(i=1;i<=k;i++)
{
a=a*10+7;
a=a%k;
if(a==0)
{
break;
}
}
if(i>k)
{
printf("-1\n");
}
els... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207900/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207900/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 k,r,r1,i,ct=1,f=0;
scanf("%d",&k);
r1=7%k;
r=r1;
r*=10;
r+=7;
i=k;
if(r1==0)
{
printf("1");
return 0;
}
while(i--)
{
ct++;
if(r%k==0)
{
f=1;
break;
}
else
{
r%=k;
r*=10;
r+=7;
}
if(r==r1) b... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207951/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207951/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#define ll long long
int downll(const void*a, const void*b){return*(ll*)a<*(ll*)b?1:*(ll*)a>*(ll*)b?-1:0;}
void sortdown(ll*a,int n){qsort(a,n,sizeof(ll),downll);}
ll a[200010];
int main(){
int n,k;
scanf("%d%d",&n,&k);
for(int i=0;i<n;i++)scanf("%lld",a+i);
sortdown(a,n);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208000/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208000/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
int compare_int(const void*,const void*);
int main(){
int N,K;
scanf("%d %d",&N,&K);
int H[N];
for(int i=0;i<N;i++) scanf("%d",&H[i]);
qsort(H,N,sizeof(int),compare_int);
unsigned long count=0;
for(int i=0;i<N-K;i++) count+=H[i];
printf("%lu",count);
return 0;
}
int co... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208044/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208044/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
int compare(const void *a,const void *b){
if(*(int *)a>*(int *)b)return -1;
return 1;
}
int main()
{
int k,n;
scanf("%d%d",&n,&k);
int h[n];
long long ans=0;
for(int i=0;i<n;i++){
scanf("%d",&h[i]);
}
qsort(h,n,sizeof(int),compare);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208101/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208101/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <limits.h>
int N, K;
int H[200200];
int c(const void *a, const void *b) {
return *(int *)b - *(int *)a;
}
int main() {
int i;
long long total = 0;
scanf("%d", &N);
scanf("%d", &K);
for (i = 0; i < N; i++) {
scanf("%d", &(H[i]));
}
qsort(H, N, sizeo... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208145/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208145/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
int x;
if(a==c)
x=b;
if(b==c)
x=a;
if(a==b)
x=c;
int ans=x;
printf("%d\n",ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208189/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208189/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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)
printf("%d",a);
else if(b!=a&&b!=c)
printf("%d",b);
else if(c!=a&&c!=b)
printf("%d",c);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208231/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208231/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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("%d", c);
else if (a != b && b == c) {
printf("%d", a);
}
else if (a == c && c != b) {
printf("%d", b);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208275/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208275/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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("%4i %4i %4i%*[^\n]", &A, &B, &C);
getchar();
if (A == B) printf("%i\n", C);
else if (A == C) printf("%i\n", B);
else printf("%i\n", A);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208318/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208318/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
while((a==b&&b==c)||!((a==b)||(b==c)||(a==c)))
{
scanf("%d%d%d",&a,&b,&c);
}
if(a==b)
{
printf("%d\n",c);
}
else if(b==c)
{
printf("%d\n",a);
}
else
{
printf("%d\n... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208376/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208376/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ans;
scanf("%d%d%d",&a,&b,&c);
if (a == b)
ans = c;
else if (a == c)
ans = b;
else
ans = a;
printf("%d",ans);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208419/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208419/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <stdbool.h>
typedef long long LL;
typedef long double Lf;
#define in (void)scanf
#define Rep(i,a,n)for(int i=(int)(a);i<(int)(n);i++)
//#define Rep(i,a,n)for(LL i=(LL)(a);i<(LL)(n);i++)
#define rep(i,n)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208462/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208462/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <limits.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
// 内部定数
#define D_CHAR_MAX 200005 // 最大文字数
#define D_CHAR_CNT 26 // 文字種類数
// 内部変数
static FILE *szpFpI; // 入力
static char sc1StrFrom[D_CHAR_MAX]; // 文字列 - 元
static char... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208512/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208512/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@siSCnt = internal unnamed_... |
#if 0
cat <<EOF >mistaken-paste
#endif
// thanks for @rsk0315_h4x
#pragma GCC diagnostic ignored "-Wincompatible-pointer-types"
#define _USE_MATH_DEFINES
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <math.h>
#include <time.h>
#define BIG 2000000007
#def... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208556/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208556/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@alp = dso_local local_unna... |
#include<stdio.h>
int main()
{
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
printf("%d",(b*c)+(a-1)*c+(a-1)*(b-1));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_2086/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_2086/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr co... |
#include<stdio.h>
int main()
{
int a,b,c,d,p;
int cost_x, cost_y;
scanf("%d%d%d%d%d", &a, &b, &c, &d, &p);
cost_x = a*p;
cost_y = b + ((p<=c)?(0):(d*(p-c)));
printf("%d\n", (cost_x>cost_y)?cost_y:cost_x);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208657/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208657/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 P,A,B,C,D,X,Y;
scanf("%d\n%d\n%d\n%d\n%d",&A,&B,&C,&D,&P);
X=P*A;
if (P<=C){
Y=B;
} else{
Y=B+(P-C)*D;
}
if (X<=Y){
printf("%d\n",X);
}else{
printf("%d\n",Y);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208707/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208707/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[6],i,b,c;
for(i=0;i<5;i++){
scanf("%d\n",&a[i]);
}
b=a[4]*a[0];
if(a[4]<=a[2]){
c=a[1];
}
else{
c=a[1]+(a[4]-a[2])*a[3];
}
if(b<c){
printf("%d\n",b);
}
else{
printf("%d\n",c);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208750/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208750/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 *BOX;
void Init(int n)
{
int i;
for(i = 0; i < n; i++)
BOX[i] = i;
}
int Find(int x)
{
if(BOX[x] == x)
return x;
else{
BOX[x] = Find(BOX[x]);
return BOX[x];
}
}
int Same(int x, int y)
{
if(Find(x) == Find(y))
return 1;
return 0;
}
void Unite(int x,... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208794/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208794/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@BOX = dso_local local_unna... |
#include<stdio.h>
int main(void){
int N;
scanf("%d",&N);
int L[N];
for(int i = 0;i < N;i++)
scanf("%d",&L[i]);
for(int i = 0;i < N - 1;i++){
for(int j = i + 1;j < N;j++){
if(L[i] > L[j]){
int t = L[i];
L[i] = L[j];
L[j] = t;
}
}
}
int h = 0;
for(int a = 0;a < N - 2;a++){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208844/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208844/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, j, k, cnt = 0;
int tmp = 0;
int l[2000];
scanf("%d", &n);
for (i = 0; i < n; i++)
scanf("%d", &l[i]);
for (i = 0; i < n - 1; i++) {
for (j = i + 1; j < n; j++) {
if (l[i] < l[j]) {
tmp = l[i];
l[i] = l[j];
l[j] = tmp;
}
}
}
for (i = 0; i < n -... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208901/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208901/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ll long long
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k))
#define INF ((1LL<<62)-(1LL<<31))
#define max(p,q)((p)>(q)?(p):(q))
#define min(p,q)((p)<(q)?(p):(q))
#define bit(n,m)(((n)>>(m))&1)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208952/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208952/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@a = dso_local global [2010... |
#include <stdio.h>
#include <string.h>
int main(void)
{
int n;
int i, j;
int depature;
int arrival;
int time[24 * 3600];
int hour, min, sec;
int max;
while (1){
scanf("%d", &n);
if (n == 0){
break;
}
memset(time, 0, sizeof(time));
for (i = 0; i < n; i++){
scanf("%d:%d:%d", &hour, &min, &... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209001/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209001/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 H, W, h, w, ans = 0;
scanf("%d %d %d %d", &H, &W, &h, &w);
ans = (H * W) - ((h * W) + ((w * H) - (w * h)));
printf("%d\n", ans);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209052/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209052/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
// 2019.9.9 bal4u
// Template for Online Contest
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
typedef long long ll;
#define gc() getchar()
#define pc(c) putchar(c)
int in() { // 整数の入力
int n = 0, c = gc();
if (c == '-') { c = gc();
do n = 10*n + (c & 0xf), c = gc(); while (c >= ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209102/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209102/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = external local_unn... |
#include<stdio.h>
int main(void){
int H,W,h,w,black,white;
scanf("%d %d",&H,&W);
scanf("%d %d",&h,&w);
black=h*W+w*(H-h);
white=H*W-black;
printf("%d",white);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209146/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209146/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
char ar[100][100];
int check_horizontal(int a, int b,int n)
{
int counter=0;
if((b-1)>=0 && ar[a][b-1]=='o')
counter++;
if((a-1)>=0 && ar[a-1][b]=='o')
counter++;
if((b+1)<=(n-1) && ar[a][b+1]=='o')
counter++;
if((a+1)<=(n-1) && ar[a+1][b]=='o')
counter++;
return counter;
}
int check_possibl... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20919/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20919/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ar = dso_local local_unnamed... |
#include<stdio.h>
int main(void){
int H,W,h,w;
scanf("%d %d",&H,&W);
scanf("%d %d",&h,&w);
printf("%d\n",(H-h)*(W-w));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209232/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209232/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main() {
int n,m;
scanf("%d %d", &n, &m);
int a,b;
scanf("%d %d", &a, &b);
printf("%d", (n-a) * (m - b));
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209276/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209276/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 tate,yoko;
int t,y;
scanf("%d%d%d%d",&tate,&yoko,&t,&y);
int total = tate*yoko;
total -= (tate*y + yoko*t);
total += t*y;
printf("%d",total);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209326/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209326/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 H,W;
int h,w;
scanf("%d %d",&H,&W);
scanf("%d %d",&h,&w);
printf("%d",H*W-(h*W+w*H)+h*w);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209377/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209377/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
char str[2][200001];
int arr[9000];
int stat[121];
int stat1[121];
int main()
{
int n,cnt=0,tmp,tmp1,a,b,c,d,i;
char flg=0,flg1=0;
scanf("%d",&n);
scanf("%s %s",str[0],str[1]);
for(i=0;i<n;i++)
{
if(str[0][i]!=str[1][i])
{
cnt++;
if(flg==0)
{
tmp=(str[0][i]-64)*100+str[1][... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20942/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20942/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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, y, z, e;
while (1) {
int min = 1000001;
scanf("%d", &e);
if (e == 0)break;
for (z = 0; z*z*z <= e; z++) {
for (y = 0; y*y <= e; y++) {
x = e - y*y - z*z*z;
if (x >= 0 && x + y + z < min) min = x + y + z;
}
}
printf("%d\n", min);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209470/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209470/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, e, m;
while (1) {
scanf("%d", &e);
if (e==0) break;
m=1000000;
for (z=0; z*z*z<=e; z++) {
for (y=0; y*y+z*z*z<=e; y++) {
x=e-y*y-z*z*z;
if (x+y+z<m) m=x+y+z;
}
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209542/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209542/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#include<math.h>
typedef int32_t i32;
typedef int64_t i64;
#define MAX(a,b) ((a) > (b) ? (a) : (b))
#define MIN(a,b) ((a) < (b) ? (a) : (b))
#define ABS(a) ((a) > (0) ? (a) : -(a))
void run (void) {
char *s = (char *)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209586/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209586/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,n;
char s[201];
scanf("%s", s);
n = strlen(s)-1;
for (i=n/2; ;i--) {
if (strncmp(s, s+i, i)==0) {
break;
}
}
printf("%d\n", i*2);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209629/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209629/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
int main() {
char S[210];
int i;
scanf("%s", S);
for(i = strlen(S) - 2; i >= 0; i -= 2) {
int l = 0, r = i/2;
int flag = 0;
while(l < i/2 && r < i) {
if(S[l] != S[r]) {
flag = 1;
break;
}
l++;
r++;
}
if(f... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209687/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209687/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 m, n, i, temp;
scanf("%I64d %I64d", &m, &n);
i = 0;
if(m < n)
{
temp = m;
m = n;
n = temp;
}
while(n != 0)
{
i += m / n;
temp = m % n;
m = n;
n = temp;
}
printf("%I64d\n", i);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20973/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20973/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 x[4],y[4];
double ab[2],bc[2],cd[2],da[2];
double abc,bcd,cda,dab;
while(EOF!=scanf("%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf",
&x[0],&y[0],&x[1],&y[1],&x[2],&y[2],&x[3],&y[3])){
ab[0]=x[1]-x[0];
ab[1]=y[1]-y[0];
bc[0]=x[2]-x[1];
bc[1]=y[2]-y[1];
cd[0]=x[3... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209773/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209773/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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
#define _USE_MATH_DEFINES
#include<stdio.h>
#include<math.h>
#include<string.h>
#include<stdlib.h>
#include<stdarg.h>
#include<malloc.h>
int judge(double x[8]);
void shuffle(double x[8]);
int main()
{
int i;
double x[8];
while(scanf("%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf",&x[0],&x[1],&x... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209830/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209830/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <ctype.h>
#include <string.h>
#define ll long long
int main(void){
int N;
scanf("%d",&N);
int *a=(int*)malloc(sizeof(int)*N);
int i;
for(i=0;i<N;i++) scanf("%d",&a[i]);
int max=0;
for(i=0;i<N;i++)
if(max<a[i]) max=a[i];
for(i=0;i<N;i++)
if(a[i]!=max&&a... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209874/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209874/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
typedef struct vector{
int *a;
int length, size;
}vector;
vector *init(){
vector *v = (vector *)malloc(sizeof(vector));
v->length = v->size = 0;
v->a = (int *)malloc(sizeof(int));
return v;
}
int get(vector *v, int i){
return v->a[i];
}
void set(vec... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209917/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209917/source.c"
target datalayout = "e-m:e-p270: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.vector = type { ptr... |
#include <stdio.h>
int main () {
int sLength, sLetter;
char text[55];
scanf("%d%d", &sLength, &sLetter);
getchar();
scanf("%s", &text);
text [sLetter-1] += 32;
printf("%s\n", text);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209960/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209960/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,K;
char str[100];
scanf("%d %d",&N,&K);
scanf("%s",str);
if( str[K-1] =='A'){
str[K-1] = 'a';
}
if( str[K-1] =='B')
{
str[K-1] = 'b'; }
if( str[K-1] =='C'){
str[K-1] = 'c'; }
printf("%s\n",str);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210001/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210001/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 i=0,n,k;
char s[50];
scanf("%d%d",&n,&k);
//gets(s);
scanf("%s",s);
while(s[i]!='\0')
{
if(i==(k-1))
{
s[i]=s[i]+32;
}
i++;
}
printf("%s",s);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210045/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210045/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d %d", &n, &k);
char s[n];
scanf(" %s", s);
s[k-1]+=32;
printf("%s\n", s);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210089/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210089/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include <ctype.h>
int main(void){
int n,k;
char s[50];
scanf("%d %d",&n,&k);
scanf("%s",&s);
s[k-1] = tolower( s[k-1] );
printf("%s",s);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210131/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210131/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <ctype.h>
int main(int argc, char const *argv[])
{
int n = 0;
int k = 0;
int i = 0;
scanf("%d %d", &n, &k);
char s[n];
scanf("%s", s);
s[k - 1] = tolower(s[k - 1]);
printf("%s\n", s);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210175/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210175/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<ctype.h>
int main(void)
{
int n,k;
scanf("%d%d",&n,&k);
int a=n+1;
char S[a];
scanf("%s",&S);
int i=0;
S[k-1]=tolower(S[k-1]);
printf("%s\n",S);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210225/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210225/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.