Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include <stdio.h>
int main(void){
int a, b, c;
scanf("%d%d%d", &a, &b, &c);
if(a == b && a == c){
printf("%s\n", "Yes");
return 0;
}
else printf("%s\n", "No");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205568/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205568/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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)
{
char string[15];
scanf("%s", string);
string[3] += 1;
printf("%s\n", string);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205618/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205618/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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)
{
char s[15];
fgets(s, sizeof(s), stdin);
s[3] = '8';
printf("%s", s);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205661/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205661/source.c"
target datalayout = "e-m:e-p270: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){
char S[10];
scanf("%s",S);
S[3]++;
printf("%s\n",S);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205777/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205777/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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)
{
char S[10];
scanf("%s",S);
int d1=S[8]-'0';
int d2=S[9]-'0';
printf("2018/01/%d%d\n",d1,d2);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205885/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205885/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,n,i,j,c=0;
scanf("%d",&t);
char s[301];
for(i=0;i<t;i++)
{
scanf("%d",&n);
scanf("%s",s);
if(n>2){
{printf("YES\n2\n");
printf("%c ",s[0]);
for(j=1;j<n;j++)
printf("%c",s[j]);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20605/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20605/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
#include<stdlib.h>
int main(void)
{
int i,j,c;
int a,d,n;
char *p;
p = (char *)malloc(sizeof(char)*1000000);
p[0]=0;
p[1]=0;
for(i=2;i<1000000;i++)
{
p[i]=1;
}
c = 2;
while(1)
{
if(p[c])
{
for(i=2*c;i<1000000;i+=c)
{
p[i]=0;
}
}
while(p[++c]==0);
if(c>1000... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206093/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206093/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 int a,b,c,d,i,ii;
scanf("%lld",&d);
while(d--){
scanf("%lld%lld",&a,&b);
c=((a-1)*9)+b;
printf("%lld\n",c);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20618/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20618/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#define M 100000
int main() {
static long long aa[M];
long long n, a, k;
int m, i, j, r;
scanf("%lld%d%lld", &n, &m, &k);
for (i = 0; i < m; i++)
scanf("%lld", &aa[i]), aa[i]--;
r = 0;
for (i = 0; i < m; ) {
r++;
a = (aa[i] - i) / k;
j = i + 1;
while (j < m && (aa[j] - i) / k == a... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20623/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20623/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@main.aa = internal global [1... |
#include<stdio.h>
int main()
{
int l;
scanf("%d", &l);
printf("%f", (float)(l * l * l) / 27);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206273/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206273/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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("%f",(l/3)*(l/3)*(l/3));
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206316/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206316/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <sys/time.h>
#define N 100000
#define K 100001
#define INF 0x3f3f3f3f3f3f3f3fLL
long long min(long long a, long long b) { return a < b ? a : b; }
unsigned int X;
void srand_() {
struct timeval tv;
gettimeofday(&tv, NULL);
X = tv.tv_sec ^ tv.tv_usec | 1;
}
int ran... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20636/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20636/source.c"
target datalayout = "e-m:e-p270: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.timeval = type { i64,... |
#include<stdio.h>
int main(void)
{
double a;
scanf("%lf",&a);
a=a/3;
a=a*a*a;
printf("%lf",a);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206402/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206402/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(void)
{
double l;
scanf("%lf",&l);
double three=3;
double ans=pow(l/three,3.0);
printf("%lf",ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206446/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206446/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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()
{float L,temp;scanf("%f",&L);
temp=L/3;
temp=temp*temp*temp;
printf("%0.12f\n",temp);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206503/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206503/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 L = 0;
double d_L = 0.0;
scanf("%d", &L);
d_L = (double)L / 3.0;
d_L = d_L * d_L * d_L;
printf("%lf\n", d_L);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206547/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206547/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
typedef struct node {
int value;
struct node* parent;
struct node* left;
struct node* right;
} Node;
typedef Node* NodePointer;
NodePointer serialize(int val) {
NodePointer newNode = malloc(sizeof(Node));
newNode->value = val;
new... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206590/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206590/source.c"
target datalayout = "e-m:e-p270: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 MAX 100
typedef struct node
{
struct node *right;
struct node *left;
struct node *parent;
int key;
} Node;
Node *root, *NIL;
void insert(int);
Node *find(int, Node *);
void inorder(Node *);
void preorder(Node *);
void delete(Node *);
Node *successor(Node... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206633/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206633/source.c"
target datalayout = "e-m:e-p270: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){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206677/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206677/source.c"
target datalayout = "e-m:e-p270: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>
int main()
{
int n,a[3][5001],i,j,c1=0,c2=0,c3=0;
scanf("%d",&n);
for(i=1;i<=n;i++)
{
scanf("%d",&j);
if(j==1){
a[j-1][c1]=i;
c1++;
}
else if(j==2)
{
a[j-1][c2]=i;
c2++;
}
else ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20672/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20672/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 x, int k){
while(x!=NIL && k... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206778/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206778/source.c"
target datalayout = "e-m:e-p270: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>
#define Max 500000
typedef struct
{
int key;
int p;
int l[2];
}Node;
Node T[Max];
void insert( int );
void find( int, int );
int successor( int );
void delete( int );
void Preorder( int );
void Inorder( int );
int main()
{
int i, n, k;
char ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206835/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206835/source.c"
target datalayout = "e-m:e-p270: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>
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 ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206879/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206879/source.c"
target datalayout = "e-m:e-p270: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_206921/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206921/source.c"
target datalayout = "e-m:e-p270: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>
#define MAX 5002
int main(){
int n,a[MAX],i,x[MAX],y[MAX],z[MAX],arr[4]={0};
int p=0,q=0,t=0;
scanf("%d",&n);
for(i=1;i<=n;i++){
scanf("%d",&a[i]);
}
for(i=1;i<=n;i++){
if(a[i]==1){
arr[1]=arr[1]+1;
x[p++]=i;
}
else if(a[i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20698/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20698/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct Node {
int key;
struct Node *right, *left, *parent;
};
typedef struct Node 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_207029/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207029/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.Node = type { i32, ... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
typedef struct Node{
int key;
struct Node *right,*left,*parent;
}Node;
Node *root,*NIL;
Node *find(Node *,int);
Node *treeMinimum(Node *);
Node *treeSuccessor(Node *);
void treeDelete(Node *);
void insert(int);
void inorder(Node *);
void preorder(Node *);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207072/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207072/source.c"
target datalayout = "e-m:e-p270: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, ... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: main.c
* Author: kundaikwangwari
*
* Created on August 5, 2019, 1:10 AM
*/
#include<stdio.h>
#include<string.h>
#... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207122/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207122/source.c"
target datalayout = "e-m:e-p270: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{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
Node root;
Node treeMinimum(Node x){
while(x->left != NIL){
x = x->left;
}
return x;
}
Node treeMaximum(Node x){
while(x->ri... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207166/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207166/source.c"
target datalayout = "e-m:e-p270: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>
#include<string.h>
struct Node{
int key;
struct Node *r,*l,*p;
};
struct Node *root,*NIL;
void insert(int);
void inorder(struct Node *);
void preorder(struct Node *);
struct Node * find(struct Node *,int);
struct Node * treeMinmum(struct Node *);
struct Node * treeSuccessor(st... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207209/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207209/source.c"
target datalayout = "e-m:e-p270: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, ... |
// AOJ 2207: Consistet Unit System
// 2017.12.3 bal4u@uu
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#define HASHSIZ 607
typedef struct { char *s; int id; } HASH;
HASH hash[HASHSIZ+2], *hashend = hash + HASHSIZ; // Hash table
int lookup(char *s, int w, int id)
{
HASH *tp = hash +... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207267/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207267/source.c"
target datalayout = "e-m:e-p270: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.HASH = type { ptr, ... |
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
int main()
{
int n,i,j;
scanf("%d",&n);
int count[100][3]={0};
int tk[n],mt=0,mp=0,md=0,f;
char spis[n][100][10],name[n][21];
for(i=0;i<n;i++)
{
scanf("%d%s",&tk[i],name[i]);
for(j=0;j<tk[i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20731/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20731/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
#include<string.h>
int main()
{
int l,i,flag=1;
char s[11],t[11];
scanf("%s",s);
scanf("%s",t);
l=strlen(s);
for(i=0;i<l;i++)
{
if(s[i]!=t[i])
{
flag=0;
break;
}
}
if(flag==0)
{
printf("No");
}
else... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207353/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207353/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[10];
char T[11];
scanf("%s", S);
scanf("%s", T);
int diff_one_flag = 0; //一文字違いフラグ
if(strlen(T) == (strlen(S) + 1)){
for(int i=0; i<strlen(S); i++){
if(S[i] != T[i]){
diff_one_flag = 1;
}
}
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207410/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207410/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[11],T[12]; //Char型宣言
int i;
scanf("%s %s",S,T); //標準入力の取得
for (i = 0;S[i] != '\0';i++){
if (S[i] != T[i]){
printf("No\n");
return 0;
}
}
printf("Yes\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207461/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207461/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(){
char S[11];
char T[12];
int i, f = 0;
scanf("%s", S);
scanf("%s", T);
for(i=0; i<strlen(S); i++){
if(S[i] != T[i])f = 1;
}
if(f == 1){
printf("No\n");
}else{
printf("Yes\n");
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207504/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207504/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
// AtCoder165 C
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <math.h>
#include <assert.h>
#include <string.h>
#include <memory.h>
#include <malloc.h>
#include <stdlib.h>
// qsortで用いる比較用関数.*a<*bならaが先になる.
int compare(const void* a, const void* b) {
return *(int*)a - *(int*)b;
}
int revcompare(const ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207555/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207555/source.c"
target datalayout = "e-m:e-p270: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_t = type { i32... |
#include<stdio.h>
#include<string.h>
int main(void){
const char *S[10];
const char *T[10];
int len;
scanf("%s",&S);
scanf("%s",&T);
len = strlen(S);
if(strncmp(S,T,len)==0){
printf("Yes");
}
else{
printf("No");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207605/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207605/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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], t[12];
scanf("%s\n", s);
scanf("%s", t);
if (strlen(t) == strlen(s) + 1) {
t[strlen(s)] = 0;
if (strcmp(t, s) == 0) {
printf("Yes");
return 0;
}
printf("No");
return 0;
}
printf("No");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207649/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207649/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[12],t[15];
scanf("%s %s",s,t);
int a=strlen(s);
int b=strlen(t),flag=0;
if(a+1==b)
{
for(int i=0;i<a;i++)
{
if(s[i]!=t[i])
{
flag=1;
break;
}
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207692/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207692/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(){
int num=0;
char s[11]={},t[11]={};
scanf("%s%s",s,t);
while (s[num]!='\0') num++;
if (strncmp(s, t, num)==0) printf("Yes");
else printf("No");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207735/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207735/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 bubble(int a[5]){
int i,j,tmp;
for(i=0;i<4;i++){
for(j=0;j<4-i;j++){
if(a[j]>a[j+1]){
tmp=a[j];
a[j]=a[j+1];
a[j+1]=tmp;
}
}
}
}
int CheckFour(const int a[5]){
if(a[0]==a[3] || a[1]==a[... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207779/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207779/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int tr[5],p;
int i,j,min,sum,sum2;
while(scanf("%d,%d,%d,%d,%d",tr,tr+1,tr+2,tr+3,tr+4)!= EOF)
{
p=0;
min=13;
sum=0;
for(i=0;i<4;i++)
{
for(j=i+1;j<5;j++)
{
if(tr[i]==tr[j])
p++;
}
}
for(i=0;i<5;i++)
{
if(min>tr[i])
{
min=tr[i];
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207829/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207829/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
//Created by Pratik Paras Mandlecha
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
int main()
{
int a,b,m,c,d,z[100],i,j,p=-1;
scanf("%d%d%d%d",&a,&b,&c,&d);
for(i=0,j=b;i<100;i++,j+=a)
z[i]=j;
//printf("%d ",z[i]);
for(i=0,j=d;(i<100);j+=c,i++)
{
for(m=0;z[m]<=j;m++)
{
if(z[m]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20788/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20788/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 key=0;
int n,m;
scanf("%d%d",&n,&m);
int i,p,j,k;
for(i=0;i<m;i++)
{
scanf("%d",&p);
if(p==1){
key=1;
}
int a[p];
for(j=0;j<p;j++)
scanf("%d",&a[j]);
int flag=p;
for(j=0;j<p;j++){
for(k=0;k<p;k++){
if(a[j]==-a[k]){
flag-=1;
continue;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20793/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20793/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 k;
scanf("%d", &k);
int i;
int c = 7;
for (i = 0; i < k; i++)
{
c %= k;
if (c == 0)
{
printf("%d\n", i + 1);
return 0;
}
c = 10 * c + 7;
}
printf("-1\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207973/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207973/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
int cmp(const void *a, const void *b)
{
return *(int *)a - *(int *)b;
}
int main()
{
int n, k;
int h[200000];
size_t i;
unsigned long long s = 0;
scanf("%d%d", &n, &k);
if (n <= k)
{
printf("0\n");
return 0;
}
for (i = 0; i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208022/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208022/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <ctype.h>
#include <limits.h>
#include <math.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
static int cmp(const void *a, const void *b)
{
return *(int *) b - *(int *) a;
}
int main(int argc, char **argv)
{
int n, k;
scanf("%d %d", &n, &k);
if (n <= k) {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208073/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208073/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 *a, const void *b)
{
return *(int*)a - *(int*)b;
}
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);
/*一回小さい順にソート*/
lo... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208123/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208123/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
int acs(const void *a, const void *b) {
return *(int*)a - *(int*)b;
} /* 1,2,3,4.. */
int des(const void *a, const void *b) {
return *(int*)b - *(int*)a;
} /* 8,7,6,5.. */
int cmp_char(const void *a, const void *b) {
return *(char*)a -... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208167/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208167/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[100][101];
int Fun(int i, int j, int N)
{
int Sum = 0;
if(i-1 >= 0)
{
if(Str[i-1][j] == 'o')
{
++Sum;
}
}
if(i+1 < N)
{
if(Str[i+1][j] == 'o')
{
++Sum;
}
}
if(j-1 >= 0)
{
if(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20821/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20821/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@Str = dso_local global [100 ... |
#include<stdio.h>
int main()
{
int a,b,c,t;
scanf("%d%d%d",&a,&b,&c);
if(a < b)
{
t = a;
a = b;
b = t;
}
if(b < c)
{
t = b;;
b = c;
c = t;
}
if(a < b)
{
t = a;
a = b;
b = t;
}
if(a==b && a... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208253/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208253/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 A,B,C;
scanf("%d %d %d",&A,&B,&C);
if(A==B){
printf("%d",C);
}else if(A==C){
printf("%d",B);
}else{
printf("%d",A);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208297/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208297/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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){
printf("%d\n",c);
}
else if(b==c){
printf("%d\n",a);
}
else{
printf("%d\n",b);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208354/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208354/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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)==0)
printf("%d\n",c);
else
if((a-c)==0)
printf("%d\n",b);
else
printf("%d\n",a);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208398/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208398/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a,b,c;
scanf("%d %d %d", &a, &b, &c);
if(a == b) printf("%d\n", c);
else if(a == c) printf("%d\n", b);
else printf("%d\n", a);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208440/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208440/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[200001];
scanf("%s",s);
char t[200001];
scanf("%s",t);
int l=strlen(s);
int a[26],b[26];
for(int i=0;i<26;i++){
a[i]=-1;
b[i]=-1;
}
for(int i=0;i<l;i++){
if(a[s[i]-'a']>0||b[t[i]-'a']>0){
i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208484/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208484/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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){
//文字列SとTに値を代入する
char S[200001];
char T[200001];
memset(&S,'\0',sizeof(S));
memset(&T,'\0',sizeof(T));
scanf("%s",S);
scanf("%s",T);
//文字列Sの長さをsizeに代入する
int size = strlen(S);
//アルファベットの箱を用意し、初期化する
char alpha[26];
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208534/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208534/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 d;
scanf("%d", &d);
int c[30];
int i;
for (i = 0; i < 26; i++)
scanf("%d", &c[i]);
int j;
int s[400][30];
for (i = 0; i < d; i++)
for (j = 0; j < 26; j++)
scanf("%d", &s[i][j]);
int l[400][30];
for (i = 0; i < 26; i++)
l[0][i] = 0;
int t[400];
for (i = 0; i < d; i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208578/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208578/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int a, b, c, d, p, sumx = 0, sumy = 0;
scanf("%d %d %d %d %d", &a, &b, &c, &d, &p);
sumx = a * p;
if(c < p) sumy = b + d * (p - c);
else sumy = b;
if(sumx > sumy) printf("%d\n", sumy);
else printf("%d\n", sumx);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208628/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208628/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,s,d,f,g,z,x,c,v;
scanf("%d%d%d%d%d",&a,&s,&d,&f,&g);
z=a*g;
if(d>=g)
{
x=s;
}
else
{
x=s+(g-d)*f;
}
if(z>=x)
{
printf("%d\n",x);
}
if(z<x)
{
printf("%d\n",z);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208679/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208679/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, P, amount_X, amount_Y;
scanf("%d", &A);
scanf("%d", &B);
scanf("%d", &C);
scanf("%d", &D);
scanf("%d", &P);
amount_X = A * P;
amount_Y = B;
if(P > C){ // Y社の水道料金に追加料金がかかる場合
amount_Y += D * (P - C);
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208729/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208729/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 100001
#define NMAX 10001
void Union(int A[],int x,int y,int i,int n){
int tempX,tempY,j;
if(A[x]!=-1&&A[y]!=-1){
tempX=A[x];
tempY=A[y];
for(j=0;j<n;j++){if(A[j]==tempX||A[j]==tempY)A[j]=i;}
}
else if(A[x]==-1&&A[y]==-1){
A[x]=i;
A[y]=i;
}
else{
if(A[x]==-1){A[x]=A[y];}
else{A[y... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208772/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208772/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <stdint.h> // uint64_t
#define max(a,b) ((a) > (b) ? (a) : (b))
#define min(a,b) ((a) > (b) ? (b) : (a))
#define NUM_MAX 2000
#define LEN_MAX 1000
#define NUM2_MAX (NUM_MAX*(NUM_MAX-1)/2)
#define BUF_SIZE (NUM_MAX*5+100)
int get_int(void) {
int num... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208815/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208815/source.c"
target datalayout = "e-m:e-p270: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... |
/*2019/10/19 */
/*template*/
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
#define MOD 1000000007
#define MIN 999999999
#define MAX -999999999
typedef long long int ll;
typedef unsigned long long int ull;
void llswap(ll *x,ll *y){ll tmp;tmp=*x;*x=*y;*y=tmp;}
void swap(int *x,int *y){int tmp;t... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208866/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208866/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 cmp(const void *a, const void *b){
return *(int*)a - *(int*)b;
}
int searchl(int a, int *ary, int n){
int l = 0, r = n - 1;
while(1){
if(r <= l)return r;
int tmp = (l + r) / 2;
if(ary[tmp] == a){
while(ary[tmp] == a && tmp > 0)tmp--;
return... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208923/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208923/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#include <limits.h>
#define swap(type,a,b) do{type t=a;a=b;b=t;}while(0);
#define MAX(a,b) (((a)>(b))?(a):(b))
#define MIN(a,b) (((a)<(b))?(a):(b))
#define ll long long
#define INF 100000000
#define FOR(i,a,n) for(i=(a);i<(n);i++)
int comp(con... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208981/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208981/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 r,l,N,q[20005],H,S,M,T,R,i;
int I()
{
scanf("%d:%d:%d",&H,&M,&S);
return H*3600+M*60+S;
}
int c(const void *a,const void *b)
{
if(abs(*(int*)a)==abs(*(int*)b))
return *(int*)a-*(int*)b;
return abs(*(int*)a)-abs(*(int*)b);
}
int main()
{
for(;scanf("%d",... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209030/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209030/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 "unistd.h"
#include "string.h"
#include <math.h>
int ans;
int main(int argc, char* argv[]){
long int a=0,b=0,c=0,d=0;
scanf("%d %d",&a,&b);
scanf("%d %d",&c,&d);
printf("%d\n",a*b-(c*b)-(d*a)+(c*d));
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209074/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209074/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d%d",&H,&W);
scanf("%d%d",&h,&w);
printf("%d",(W-w)*(H-h));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209124/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209124/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int siro;
int kuro;
int daburi;
int num;
scanf("%d %d %d %d", &H, &W, &h, &w);
siro = H * W;
kuro = (h * W) + (w * H);
daburi = h * w;
num = siro - (kuro - daburi);
printf("%d\n", num);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209168/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209168/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int lh, lw;
scanf("%d %d", &lh, &lw);
scanf("%d %d", &h, &w);
printf("%d", lh*lw - (h*lw + w*lh - (h*w)));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209210/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209210/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include <ctype.h>
#include <stdint.h>
#include <string.h>
#include <wchar.h>
#define N_MAX (100)
#define P_MAX (100)
#define DP_ARRAY_SIZE (N_MAX * P_MAX / 32 + 1)
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX(a, b) ((a) > (b) ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209254/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209254/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
//set many funcs template
//Ver.20181228
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<stdbool.h>
#include<time.h>
#define inf 1072114514
#define llinf 4154118101919364364
#define mod 1000000007
#define pi 3.1415926535897932384
int max(int a,int b){if(a>b){return a;}return b;}
int min(int a,int b){i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209304/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209304/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
int main() {
int i, j, k, f = 0, n, s, t;
int a, b, c, d, e, x, y, z;
scanf("%d %d", &a, &b);
scanf("%d %d", &c, &d);
x = (a - c)*(b - d);
printf("%d", x);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209348/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209348/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d%d", &H, &W);
int 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_209399/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209399/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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 2027: Reading a Chord
// 2017.12.11 bal4u@uu
#include <stdio.h>
#include <string.h>
char tones[12][3] = {"C","C#","D","D#","E","F","F#","G","G#","A","A#","B"};
char base[5][3] = {"","7","M7","m","m7"};
char tension[12][4] = {"","-9","9","+9","-11","11","+11","","-13","13","+13"};
char tr['G'+1]['#'+1];
char f[... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209449/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209449/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@tones = dso_local global [... |
#include <stdio.h>
int min(int a, int b) { return a < b ? a : b; }
int main() {
int t;
scanf("%d", &t);
while (t--) {
int n, l, k, h;
scanf("%d", &n);
l = 0;
while (1 << (l + 1) <= n)
l++;
printf("%d\n", l);
k = 1;
for (h = 0; h < l; h++) {
int k_;
n -= k;
k_ = min(n / (l - h), k * 2);... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_2095/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_2095/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr co... |
#include<stdio.h>
#include<string.h>
int main(void) {
char s[200001];
scanf("%s", s);
long int k = 0, ans = 0;
int i;
for (i = 0; i < strlen(s); i++) {
if (s[i] == 'A')
k++;
else if (s[i] == 'B' && s[i + 1] == 'C') {
ans += k;
i++;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209564/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209564/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[202];
scanf("%s",s);
int i,j,len=strlen(s);
for(i=2;i<len;i+=2){
int check=0;
for(j=0;j<(len-i)/2;j++)
if(s[j]!=s[j+(len-i)/2])
check=1;
if(check==0)
break;
}
printf("%d\n",len-i);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209607/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209607/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#define ll long long
#define rep(i,n) for(ll i=0;i<(n);i++)
#define max(p,q) ((p)>(q)?(p):(q))
#define min(p,q) ((p)<(q)?(p):(q))
#define chmax(a,b) ((a)=(a)>(b)?(a):(b))
#define chmin(a,b) ((a)=(a)<(b)?(a):(b))
#define abs(p) ((p)>=(0)?(p):(-... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209650/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209650/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a[200];
int flag, end = 0;
scanf("%s", a);
int l = strlen(a);
while((l >= 2) && (end == 0)){
l -= 2;
flag = 0;
for(int i = 0; i < l/2; i++){
if(a[i] == a[l/2 + i]) flag++;
}
if(flag == l/2){
printf("%d\n", 2 * flag);... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209708/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209708/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 str[210]={};
int len;
int i,j,k;
while (scanf("%s",str)!=EOF)
{
len=strlen(str);
len--;
if (len%2!=0)
len--;
for (i=len/2;i!=0;len=len-2,i=len/2)
{
for (j=0,k... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209751/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209751/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 argc,char* argv[]){
double xa,ya,xb,yb,xc,yc,xd,yd;
double rab,rbc,rcd,rda,rac,rbd;
double sa,sb,sc,sd;
while(scanf("%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf",&xa,&ya,&xb,&yb,&xc,&yc,&xd,&yd) != EOF){
rab = sqrt((xa - xb)*(xa - xb) + (ya - yb)*(ya - yb));
rbc... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209801/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209801/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
typedef int32_t i32;
typedef struct RMQandRAQ {
i32 *add;
i32 *min;
i32 bit;
i32 size;
} RMQandRAQ;
RMQandRAQ* new_RMQandRAQ (const i32 n) {
i32 k = 0;
while ((1 << k) < n) ++k;
RMQandRAQ *s = (RMQandRAQ *) calloc (1, sizeof (... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209852/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209852/source.c"
target datalayout = "e-m:e-p270: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.RMQandRAQ = type { ... |
// AOJ 1615 Gift Exchange Party
// 2018.3.31 bal4u
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/*******************************************/
/* Dinic's Max Flow Algorithm
/*******************************************/
#define INF 0x01010101
#define VMAX 5100
typedef struct { int to; int cap; int rev... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209939/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209939/source.c"
target datalayout = "e-m:e-p270: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.EDGE = type { i32, ... |
#include <stdio.h>
#include <ctype.h>
int main(void){
int n,k,i;
char s[50];
scanf("%d %d",&n,&k);
scanf("%s",s);
s[k - 1] = tolower(s[k - 1]);
for (i = 0;i < n;i++){
printf("%c",s[i]);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209982/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209982/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n,s;
scanf("%d%d",&n,&s);
char a[n];
scanf("%s",a);
a[s-1]=tolower(a[s-1]);
printf("%s",a);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210023/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210023/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a;
scanf("%d",&a);
char b[a];
int k;
scanf("%d",&k);
int i;
/*for(i=0;i<a;i++){
scanf("%c",&b[i]);
}
for(i=0;i<a;i++){
printf("%c",b[i]);
}*/
scanf("%s",b);
//tolower(b[k-1]);
for(i=0;i<a;i++){
if(i==k-1){
putchar(tolower(b[i]));
}
else{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210067/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210067/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, cur = 0, h, last = 0, ans = 0, i;
scanf("%d", &n);
for(i=0; i<n; i++){
scanf("%d", &h);
if(h-last-cur > 0){
ans += h-last-cur;
cur = 0;
}else{
cur -= (h-last);
}
last = h;
}
printf("%d\... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21011/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21011/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
#include<string.h>
int main(){
int N,K;
char s[55];
scanf("%d %d",&N,&K);
scanf("%s",s);
K-=1;
s[K]+=32;
printf("%s\n",s);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210153/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210153/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_210203/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210203/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(){
int N, K;
char s[51];
scanf("%d %d", &N, &K);
getchar();//改行読み捨て
scanf("%s",s);
if(s[K-1] == 'A'){
s[K-1] = 'a';
}else if(s[K-1] == 'B'){
s[K-1] = 'b';
}else if(s[K-1] == 'C'){
s[K-1] = 'c';
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210247/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210247/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,k;
scanf("%d%d",&n,&k);
char s[n+1];
scanf("%s",s);
s[k-1] = s[k-1] + 32;
printf("%s",s);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210290/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210290/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
//set many funcs template
//Ver.20181228
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<stdbool.h>
#include<time.h>
#define inf 1072114514
#define llinf 4154118101919364364
#define mod 1000000007
#define pi 3.1415926535897932384
int max(int a,int b){if(a>b){return a;}return b;}
int min(int a,int b){i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210333/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210333/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
int main(void)
{
int n,k;
char s[50];
scanf("%d%d", &n, &k);
scanf("%s", s);
if(strncmp("A", &s[k-1], 1)==0) strncpy(&s[k-1], "a", 1);
else if(strncmp("B", &s[k-1], 1)==0) strncpy(&s[k-1], "b", 1);
else if(strncmp("C", &s[k-1], 1)==0) strncpy(&s[k-1], ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210377/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210377/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
long long a[100000 + 10];
int main()
{
long long n, i, money, energy;
scanf("%lld", &n);
for (i = 0; i < n; i++)
scanf("%lld", &a[i]);
int diff = 0 - a[0];
if (diff == 0)
{energy = 0; money = 0;}
else
{energy = 0; money = -1 * diff;}
for (i = 0; i < n - 1; i++)
{
if (energy + a[... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21042/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21042/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#define REP(i,n,m) for(i=n;i<m;i++)
#define rep(i,n) REP(i,0,n)
int n,m;
double t[100][100],dp[100][100];
double solve(int rem,int idx){
int i;
double tmp,res = 0;
if(rem == 0) return 1;
if(dp[rem][idx] != -1) return dp[rem][idx];
rep(i,n){
tmp = t[idx][i] * solve(rem-1,i);
if(res < tmp... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210506/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210506/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@dp = dso_local local_unnam... |
#include<stdio.h>
#include<string.h>
void run(void){
int h,w;
scanf("%d%d",&h,&w);
int i,j;
for(i=0;i<h;i++){
for(j=0;j<w;j++){
char s[10];
scanf("%s",s);
if(strcmp(s,"snuke")==0){
printf("%c%d\n",'A'+j,1+i);
}
}
}
}
int main(void){
run();
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210557/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210557/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/* ex5_4 "ATCoder"
dada__ */
#include<stdio.h>
#include<string.h>
int main(void){
char *ptr, *ptr2, sequence1[11], part_seq[11]="",longest_seq[11]="";
scanf("%s", sequence1);//文字列の入力
ptr=sequence1; //ptrに入力文字列の先頭アドレスを代入
ptr2=part_seq; //ptr2に部分文字列の先頭アドレスを代入
while(*ptr){
while(*p... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210607/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210607/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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.