Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include <stdio.h>
#include <stdlib.h>
typedef struct _node{
int key;
struct _node *left;
struct _node *right;
}NODE;
NODE* makeNode(int x){
NODE *n=(NODE*)malloc(sizeof(NODE));
n->key=x;
n->left=NULL;
n->right=NULL;
return n;
}
NODE* insert(NODE *t,int x){
if(t==NULL)return ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_220423/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_220423/source.c"
target datalayout = "e-m:e-p270: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){
//}
Node treeSearch(Node u, int k){
while(u != NULL){
if(k == u->key) return u;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_220467/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_220467/source.c"
target datalayout = "e-m:e-p270: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<math.h>
int main()
{
long long int n,x1,l,ans;
scanf("%lld",&n);
x1=(-1+sqrt(1+8*n))/2;
l=n-(x1*(x1+1))/2;
if(l>0)
ans=l;
else
ans=x1;
printf("%lld\n",ans);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22051/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22051/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
#include<stdlib.h>
#define NIL NULL
struct node{
int key;
struct node *r;
struct node *l;
struct node *p;
};
typedef struct node * Node;
Node root;
void insert(int v){
Node y=NIL;
Node x=root;
Node z;
z=malloc(sizeof(struct node));
z->key=v;
z->l=NIL;
z->r=NIL;
while(x!=N... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_220553/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_220553/source.c"
target datalayout = "e-m:e-p270: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>
struct node {
struct node *parent;
struct node *child[2];
int key;
};
void Insert(struct node **root, struct node *p){
struct node *y = NULL;
struct node *x = *root;
while(x!=NULL){
y = x;
if(p->key<x->key){
x = x->child[0];
}else{
x = x->ch... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_220618/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_220618/source.c"
target datalayout = "e-m:e-p270: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 find(Node u,int k){
if(u==NIL||u->key==k)
return u;
if(u->key > k)
return find(u->left,k);
else
return find(u-... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_220669/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_220669/source.c"
target datalayout = "e-m:e-p270: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;
void insert(int k){
Node y = NIL;
Node x = root;
Node z;
z = malloc(sizeof(struct node));
z->key ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_220711/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_220711/source.c"
target datalayout = "e-m:e-p270: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>
int get_int() {
int n = 0;
int sign = 1;
int c = getchar_unlocked();
if(c == 45) sign = -1, c = getchar_unlocked();
else if(c < 48 || 57 < c) return c;
while(47 < c && c < 58) {
n = 10 * n + (c & 0xf);
c = getchar_unlocked();
}
retu... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_220762/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_220762/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct._IO_FILE = type { i... |
#include<stdio.h>
#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 = NIL;
Node treeMinimum(Node x){
}
Node treeSearch(Node u, int k){
Node i=u;
while(i!=NIL){
if(i->key==k)return i;
el... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_220805/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_220805/source.c"
target datalayout = "e-m:e-p270: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{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
struct node *root, *NIL;
struct node *find(struct node *u, int k){
while(u != NIL && k != u->key){
if(k < u->key) u = u->left;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_220856/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_220856/source.c"
target datalayout = "e-m:e-p270: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<math.h>
int main()
{
int t;
scanf("%d",&t);
int n,a,b,d;
while(t>0)
{
scanf("%d",&n);
a=pow(2,n/2)+pow(2,n)-2;
b=pow(2,n+1)-2-a;
d=a-b;
printf("%d\n",d);
t--;
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_2209/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_2209/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr co... |
#include<stdio.h>
#include<stdlib.h>
struct node{
int key;
struct node *parent;
struct node *right;
struct node *left;
};
typedef struct node *Node;
Node T;
#define NIL NULL;
void Insert(int);
int Find(int);
void Preorder(Node);
void Inorder(Node);
int main()
{
int n,i,key;
char S[7];
scanf("%d",&n);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_220942/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_220942/source.c"
target datalayout = "e-m:e-p270: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{
int key;
struct Node *right, *left ,*parent;
};
struct Node *root, *NIL;
struct Node * find(struct Node *u, int k){
while(u != NIL && k != u->key){
if(k < u->key) u = u->left;
else u = u->right;
}
return u;
}
void insert(int k){
struct Node *y = ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_220986/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_220986/source.c"
target datalayout = "e-m:e-p270: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{
int key;
struct Node *p;
struct Node *l;
struct Node *r;
};
typedef struct Node * Nodepointer;
Nodepointer root,nil;
void insert(int i){
Nodepointer x = root;
Nodepointer y = nil; /*parent*/
Nodepointer z;
z = (struct Node *)malloc(sizeof(struct Node... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221035/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221035/source.c"
target datalayout = "e-m:e-p270: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 *left;
struct node *right;
} Tree;
Tree *root = NULL;
Tree *make1node(int key) {
Tree *tree = malloc(sizeof(struct node));
tree->key = key;
tree->left = NULL;
tree->right = NULL;
ret... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221079/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221079/source.c"
target datalayout = "e-m:e-p270: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(1){
if(x->left == NIL)break;
x = x->left;
}
return x;
}
Node treeMaximum(Node x){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221136/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221136/source.c"
target datalayout = "e-m:e-p270: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>
int main()
{
int t,j,i;
long long int n,s;
scanf("%d",&t);
for(j=0;j<t;j++){
scanf("%lld",&n);
s=1;
n=n*2;
for(i=3;i<=n;i++){
s=(s*i)%1000000007;
}
printf("%lld\n",s);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22118/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22118/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 *left;
struct node *right;
struct node *parent;
};
typedef struct node *NodePointer;
void insert(int);
int Search(NodePointer, int);
void Preorder(NodePointer);
void Inorder(NodePointer);
NodePointer root = NULL;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221222/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221222/source.c"
target datalayout = "e-m:e-p270: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<string.h>
#include<stdlib.h>
typedef struct node *link;
struct node
{
int key;
link parent,left,right;
};
link root;
link in;
void insert(link z)
{
link p=NULL;
link x=root;
while(x!=NULL)
{
p=x;
if(z->key<x->key)
{
x=x->left;
}
else
{
x=x->right;
}
z->parent=p... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221266/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221266/source.c"
target datalayout = "e-m:e-p270: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 n, k;
scanf("%d %d", &n, &k);
n=n-k;
if(k==1)
{
n=0;
printf("%d", n);
}
else
printf("%d", n);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221316/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221316/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 test;
scanf("%d",&test);
while(test--){
int num;
scanf("%d",&num);
long long int fact=1;
for(int i=3;i<=2*num;i++){
fact=(fact*i)%1000000007;
}
printf("%lld\n",fact);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22136/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22136/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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;
scanf("%d%d", &N,&K);
if(K!=1)printf("%d",N - K);
if (K == 1)printf("0");
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221402/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221402/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
n-=k;
if(k==1)puts("0");
else printf("%d\n",n);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221446/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221446/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
struct vertex {
int k;
int dis;
int definite;
int **vlist;
};
int main(int argc, char *argv[])
{
int n, i, j, id;
struct vertex *adj;
int minv, op, cost, mind;
scanf("%d", &n);
adj = (struct vertex *)malloc(sizeof(struct vertex) * n);
fo... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221503/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221503/source.c"
target datalayout = "e-m:e-p270: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.vertex = type { i32... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#define NODE_NUM 100
int wght[NODE_NUM];
int visited[NODE_NUM];
typedef struct VERTEX{
int idx;
int w;
}VERTEX;
void search(int node_idx, int w, VERTEX ** A, int* num, int n){
int i, weight, next;
if (visited[nod... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221554/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221554/source.c"
target datalayout = "e-m:e-p270: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.VERTEX = type { i32... |
#include<stdio.h>
#define NUM 10000000
#define N 100
void def(int,int);
int n;
int arraysi[N],arrayc[N][N];
int arrayd[N],arrayt[N][N];
int main(int argc,char *argv[]){
int i,j,m;
scanf("%d",&n);
for(i = 0;i < n;i++){
scanf("%d",&m);
scanf("%d",&arraysi[m]);
for(j = 0;j < arraysi[m];j++)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221604/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221604/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 N 100
#define MAX 100000000
void dijks();
int n,G[N][N];
int main(){
int i,j,u,k,c,v;
scanf("%d",&n);
for(i = 0; i< n; i++){
for(j = 0; j < n; j++){
G[i][j] = MAX;
}
}
for(i = 0; i< n; i++){
scanf("%d %d",&u,&k);
for(j = 0; j < k; j++){
scanf("%d %... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221648/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221648/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 N 100
#define WHITE 0
#define BLACK 2
#define GRAY 1
#define INFTY 100000000
void dijkstra(void);
int n,G[N][N];
int main(){
int i,j,u,v,k,c;
scanf("%d",&n);
for(i=0;i<n;i++){
for(j=0;j<n;j++){
G[i][j]=INFTY;
}
}
for(i = 0;i < n;i++){
scanf("%d%d",&u,&k);
for... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221699/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221699/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 100
#define inf 10000000
int main(){
int n, u, k,v, c, i, j, min;
int d[max],node[max][max],jud[max];
scanf("%d",&n);
for(i = 0; i < n;i++){
for(j = 0;j <n;j++){
node[i][j] = -1;
}
}
for(i = 0;i < n ;i++){
scanf("%d %d",&u,&k);
for(j = 0;j < k;j++){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221756/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221756/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 100
#define INFTY 800000
#define WHITE 0
#define GRAY 1
#define BLACK 2
int n,M[MAX][MAX];
void DIJKSTRA(void);
void DIJKSTRA()
{
int minv,v,i;
int d[MAX],color[MAX];
for(i=0;i<n;i++)
{
d[i]=INFTY;
color[i]=WHITE;
}
d[0]=0;
color[0]=GRAY;
while(1){
minv=INFTY;
int u=-1;
for(i=0;i<n;i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221820/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221820/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@n = dso_local global i32 0... |
#include<stdio.h>
int inf=(1<<21);
int main()
{
int i,j;
int n;
int k,c,u,o,l;
int A[100][100],d[100],v[100];
scanf("%d",&n);
for(i=0;i<n;i++)
{
if(i==0) d[i]=0;
else d[i]=inf;
v[i]=0;
for(j=0;j<n;j++)
{
A[i][j]=inf;
}
}
for(i=0;i<n;i++)
{
scanf("%d%d... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221864/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221864/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@inf = dso_local local_unna... |
#include <stdio.h>
#define N 100
#define INFTY 1000000
#define NO 0
#define DISCOVERY 1
#define FINISHING 2
int n,ans[N][N];
void daikusutora() {
int minv;
int discover[N],check[N];
for(int i=0;i<n;i++){
discover[i]=INFTY;
check[i]=NO;
}
discover[0]=0;
check[0]=DISCOVERY;
while(1){
minv=INFTY;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221907/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221907/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@n = dso_local global i32 0... |
#include <stdio.h>
#define N 100
#define INF 10000000
#define WHITE 0
#define GRAY 1
#define BLACK 2
int color[N];
int M[N][N];
int d[N];
int p[N];
int n;
void dijkstra(void);
int main()
{
int i,j,u,k,v,c;
scanf("%d",&n);
for(i = 0;i < n;i++){
for(j = 0;j < n;j++){
M[i][j] = INF;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221950/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221950/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 100
#define INFTY (1<<21)
#define WHITE 0
#define GRAY 1
#define BLACK 2
int n , M[MAX][MAX];
void dijkstra(){
int minv;
int d[MAX] , color[MAX];
for( int i = 0; i < n; i++ ){
d[i] = INFTY;
color[i] = WHITE;
}
d[0] = 0;
color[0] = GRAY;
while(1){
minv = INFTY;
int u... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221994/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221994/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@n = dso_local global i32 0... |
#include<stdio.h>
#define INFINITY (1<<21)
#define MAX 100
#define WHITE 0
#define GRAY 1
#define BLACK 2
int n,M[MAX][MAX];
void dijkstra(){
int minv,i,j,v,u;
int d[MAX],color[MAX];
for(i=0;i<n;i++){
d[i]=INFINITY;
color[i]=WHITE;
}
d[0]=0;
color[0]=GRAY;
while (1) {
minv=INFINITY;
u=-... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222043/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222043/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@n = dso_local global i32 0... |
#include <stdio.h>
#define MAX 100
#define INF 1000000
#define DISCONNECT -1
#define BLACK -2
void initializeSingleSource(int);
void dijkstra(int G[MAX][MAX], int);
int d[MAX], pi[MAX];
int main(){
int G[MAX][MAX], n, u, v, k, i, j;
for(i = 0; i < MAX; i++){
for(j = 0; j < MAX; j++) G[i][j] = DISCONNECT;
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222087/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222087/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
void f(long long t,long long n,long long k)
{
if(n==1)printf("1\n");
else{
if(k==t/2+1)printf("%I64d\n",n);
else if(k<t/2+1) f(t/2,n-1,k);
else if(k>t/2+1) f(t/2,n-1,t+1-k);
}
}
int main()
{
long long n,k,t;
scanf("%I64d%I64d",&n,&k);
t=pow(2,n)-1;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22213/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22213/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str.1 = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
#define MAX 100
#define INFTY INT_MAX
#define WHITE 0
#define GRAY 1
#define BLACK 2
int n, M[MAX][MAX];
void dijkstra();
int main(){
int i, j, k;
int c, u, v;
scanf("%d",&n);
if(n < 1 || n > 100)
exit(1);
//printf("test\n");
for(i = 0; i ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222180/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222180/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 INFTY 100000000;
int a[100][100],d[100],n;
int main(){
int i,j,k,u,c,v;
scanf("%d",&n);
for(i=0;i<100;i++){
for(j=0;j<100;j++){
a[i][j]=INFTY;
}
a[i][i]=0;
}
for(i=0;i<n;i++){
scanf("%d %d",&u,&k);
for(j=0;j<k;j++){
scanf("%d %d",&v,&c);
a[u][v]=c;
}
}
for(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222223/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222223/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#define NIL_VERTEX -1
#define DENOTE_INF_COST -1
#define COMP_INF_COST 100008
// translate 1-origin into 0-origin
int i0O(int index1Origin) {
return index1Origin-1;
}
#include <stdio.h>
#include <stdlib.h>
#define MAX_NUM_STACK_VALUES 100
#define STR_MAX_LENGTH 100
type... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222267/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222267/source.c"
target datalayout = "e-m:e-p270: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.Vtx = type { i32, i... |
#include <stdio.h>
int main(void)
{
long long int a,b,n;
char s[1000000];
scanf("%lld%lld%lld",&n,&a,&b);
scanf("%s",s);
if(s[a-1]!=s[b-1])
{
printf("1");
}
else
{
printf("0");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22231/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22231/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 A,B;
char S[15],T[15],U[15];
scanf ("%s %s",S,T);
getchar();
scanf ("%d %d",&A,&B);
getchar();
scanf ("%s",U);
getchar();
if (strcmp(S,U)==0){
printf("%d %d",A-1,B);
}
else if (strcmp(T,U)==0){
printf("%d %d",A,B-1);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222360/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222360/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 (void){
char S[11],T[11],U[11];
int A,B;
scanf("%s%s",S,T);
scanf("%d%d",&A,&B);
scanf("%s",U);
if(strcmp(U,S) == 0) A--;
else if(strcmp(U,T) == 0) B--;
printf("%d %d\n",A,B);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222410/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222410/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[10], T[10], U[10];
int a, b;
scanf("%s %s", S, T);
scanf("%d %d", &a, &b);
scanf("%s", U);
if(*S==*U){ printf("%d %d", a-1, b); }
else if(*T==*U){ printf("%d %d", a, b-1); }
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222461/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222461/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <math.h>
#include <stdlib.h>
#define BUFSIZE 10000
int A,B;
int main(void){
char hoge[BUFSIZE];
char hogehoge[BUFSIZE];
char hogehogehoge[BUFSIZE];
scanf("%s",hoge);
scanf("%s",hogehoge);
scanf("%d %d",&A,&B);
scanf("%s",hogehogehoge);
if(hoge[0]==hogehog... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222519/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222519/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
char a[20],b[20];
int c, d;
char e[20];
int main()
{
scanf("%s", a);
scanf("%s", b);
scanf("%d %d", &c, &d);
scanf("%s", e);
int flag=0,i;
for (i = 0;i<=strlen(b); i++)
{
if (b[i] != e[i])
break;
}
if (i == strlen(b) + 1)
flag = 1;
if (flag == 0)
{
printf("%d %d... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222591/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222591/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
char s[10],t[10],u[10];
scanf("%s%s",s,t);
scanf("%d%d",&a,&b);
scanf("%s",u);
if(strcmp(s,u)==0){
printf("%d\t%d",a-1,b);
}
else if(strcmp(t,u)==0){
printf("%d\t%d",a,b-1);
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222634/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222634/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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], T[10], U[10];
int A,B;
scanf("%s",&S);
scanf("%s",&T);
scanf("%d",&A);
scanf("%d",&B);
scanf("%s",&U);
if(strcmp(S,U) == 0){
printf("%d %d",A-1, B);
}
else{
printf("%d %d",A, B-1);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222685/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222685/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,sum,i;
sum = 0;
while(1){
scanf("%d",&n);
if(n == 0) break;
for(i=1;i*i <= n;i++){
if(n % i == 0){
if(i == 1) sum = 1;
else if(n == i * i) sum += i;
else sum += (i+(n / i));
}
}
if(n == 1) sum = 0;
if(n == sum) prin... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222771/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222771/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[1000][999], N, days = 0, impo = 0;
int count[1000] = {}, endsum = 0;
scanf("%d\n",&N);
for(int i = 0; i < N; i++)
{
for(int j = 0; j < N-1; j++)
{
scanf("%d",&A[i][j]);
}
}
while(impo == 0 && endsum < N)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222836/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222836/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<math.h>
int main()
{
long long int n,sum=0,odd=0,val,min=pow(10,10),i;
scanf("%lld",&n);
for(i=0;i<n;i++)
{
scanf("%lld",&val);
sum+=val;
if(val%2==1)
{
odd++;
if(val<min)
{
min=val;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22288/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22288/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
#include <math.h>
#include <stdlib.h>
#include <ctype.h>
#define OUTPUT freopen("myfile.txt","w",stdout);
#define INPUT freopen("input.txt","r",stdin);
#define pi acos(-1.0)
#define MAX 100005
#define MOD ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22293/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22293/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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;
scanf("%d", &n);
while(n >0){
n = n - 1000;
}
printf("%d\n", n * -1);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222973/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222973/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d", &N);
if (!(1 <= N && N <= 10000)) {
fprintf(stderr, "ERROR\n");
return 1;
}
if (N%1000 == 0) printf("%d\n", N%1000);
else printf("%d", 1000-(N%1000));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223015/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223015/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/* AUTHOR: AKASH JAIN
* EMAIL: akash19jain@gmail.com
* ID: akash19jain
* DATE: 13-07-2020 17:46:27
*/
// #include<algorithm>
// #include <bits/stdc++.h>
// using namespace std;
#include<stdio.h>
#include<math.h>
#include<string.h>
#include<stdlib.h>
#include<stdbool.h>
#include<ctype.h>
#define SC1(x) ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223059/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223059/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@INF = dso_local local_unna... |
#include <stdio.h>
int main(){
int N,r;
if (scanf("%d", &N)==1);
r = (1000-N % 1000) % 1000;
printf("%d\n",r);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223101/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223101/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 calc(int n){
int diff;
int c=1;
while (1) {
diff=(1000*c)-n;
if(0<=diff){
return diff;
}
c++;
}
}
int main(void){
int N;
scanf("%d",&N);
int result = calc(N);
printf("%d\n",result);
return 0 ;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223145/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223145/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, ans;
scanf("%d", &n);
ans = (1000 - n % 1000) % 1000;
printf("%d", ans);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223189/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223189/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main() {
int n;
scanf("%d", &n);
n = n % 1000;
if (n) {
printf("%d", 1000 - n);
}
else
printf("0");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223239/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223239/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#define prime 1000000007
int main()
{
long long i,num,temp,lol,x[200005],y[200005];
long long count=0,sum[200005],diff[200005];
scanf("%d",&num);
for(i=0;i<num;i++)
{
scanf("%d %d",&x[i],&y[i]);
sum[x[i]+y[i]]=sum[x[i]+y[i]]+1;
diff[x[i]-y[i] + 1000]= dif... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22329/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22329/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 N 200000
#define NLARGE 1000
int cross[NLARGE * 2][2];
int main(void) {
int x, y;
int n, i;
long long result = 0;
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%d%d", &x, &y);
cross[x + y][0]++;
cross[(NLARGE - x) + y][1]++;
}
for (i ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22334/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22334/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
void main(){
int n=0;
scanf("%d",&n);
if(n%1000==0){
printf("0");
}else{
printf("%d",1000-n%1000);
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223383/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223383/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
int i, x, y, a[10000], ans = 0;
scanf("%d", &i);
i %= 1000;
i = 1000 - i;
if (i == 1000)
i = 0;
printf("%d", i);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223426/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223426/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int a[2000],b[2000];
int main ()
{
int i,j,n,count=0;
scanf("%d",&n);
for(i=0;i<n;i++)
{
int x,y;
scanf("%d%d",&x,&y);
a[x-y+1000]++;
b[x+y]++;
}
for(i=1;i<2000;i++)
{
if(a[i]<=1)
continue;
count+=a[i]*(a[i]-1)/2;
}
for(i=1;i<2000;i++)
{
if(b[i]<=1)
continue;
count+=b[... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22347/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22347/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
// left -> 1, right -> 0
int is_left(char c, char left[]){
int i;
for(i=0;left[i]!=0;i++){
if(c==left[i])return 1;
}
return 0;
}
int main(void){
char s[100];
char left[] = "qwertasdfgzxcvb";
int i,ans;
int current_hand,next_hand;
while(1){
scanf("%s", s);
if(s[0]=='#')b... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223512/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223512/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int a, b, c, d, e, f;
scanf("%d %d %d %d %d %d", &a, &b, &c, &d, &e, &f);
printf("%d\n", (a + b * 5 + c * 10 + d * 50 + e * 100 + f * 500) >= 1000);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223556/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223556/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n;
scanf("%d",&n);
int a[n],b[n];
for(int i=0;i<n;i++)
{
scanf("%d",&a[i]);
}
for(int i=0;i<n;i++)
{
int sum=0,sum1=0,sum2=0;
if(a[i]>2)
{
int p=a[i]/2;
for(int j=0;j<a[i];j++)
{
sum=sum+pow(2,j+1);
}
for(int j=0;j<p-1;j++)
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_2236/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_2236/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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(void){
int c[6]={}, val[]={1, 5, 10, 50, 100, 500};
int sum=0, i;
for( i=0 ; i<6 ; i++ ){
scanf("%d", &c[i]);
sum += c[i] * val[i] ;
}
if( sum>=1000 )
puts("1");
else
puts("0");... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223642/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223642/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 sum=0,c[6],i;
for(i=0;i<6;i++)scanf("%d",&c[i]);
sum+=c[0]*1;
sum+=c[1]*5;
sum+=c[2]*10;
sum+=c[3]*50;
sum+=c[4]*100;
sum+=c[5]*500;
if(sum<1000)i=0;
else i=1;
printf("%d\n",i);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223686/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223686/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,m,c;
scanf("%d%d%d",&p,&m,&c);
printf("%d\n",p+m+c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223729/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223729/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 p,m,c;
scanf("%d %d %d",&p,&m,&c);
printf("%d\n",p+m+c);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223772/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223772/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
a=a+b+c;
printf("%d\n",a);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223815/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223815/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n, k;
scanf("%lld %lld", &n, &k);
long long int ans = 0;
long long int b;
for (b = k + 1; b <= n; b++)
{
ans += n / b * (b - k);
if (n % b >= k)
ans += (n % b) - k + 1;
}
if (k == 0)
ans -= n - k;
printf("%lld\n", ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223859/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223859/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 b,r,g,c,s,t;
while(scanf("%d%d%d%d%d%d",&b,&r,&g,&c,&s,&t) , t != 0){
printf("%d\n",b * 95 + r * 63 + g * 7 + c * 2 + s * 3 - t * 3 + 100);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223916/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223916/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 kane,mai,dai,kaz,i;
for(;;){
kaz=0;
scanf("%d",&dai);
if(dai==0)break;
kane=1000-dai;
if(kane>=500){
mai=kane/500;
kane=kane%500;
kaz+=mai;
}if(kane>=100){
mai=kane/100;
kane=kane%100;
kaz+=mai;
}if(kane>=50){
mai=kane/50;
kane=kane%50;
kaz+=mai;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224001/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224001/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int x,y,i,a = 0,b,c,d,e,f;
while(1){
a = 0;
scanf("%d",&x);
if(x == 0)break;
y = 1000 - x;
if(y >= 500){a = y/500;}
b = y%500;
if(b >= 100){a += b/100;}
c = b%100;
if(c >= 50){a += c/50;}
d = c%50;
if(d >= 10){a += d/10;}
e = d%10;
if(e >= 5){a += e/5;}
f ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224045/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224045/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i,cnt,x[]={500,100,50,10,5,1};
while(1){
scanf("%d",&n);
if(n==0) break;
n=1000-n; cnt=0;
for(i=0;i<6;i++){
if(n>=x[i]){
cnt+=n/x[i];
n%=x[i];
}
}
printf("%d\n",cnt);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224089/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224089/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 m,n,x;
1<=m && m<=1000;
scanf("%d",&n);
while(n!=0) {
x=0;
m=1000-n;
while(!(m<500)) {
m=m-500;
x+=1;
}
while(!(m<100)) {
m=m-100;
x+=1;
}
while(!(m<50)) {
m=m-50;
x+=1;
}
while(!(m<10)) {
m=m-10;
x+=1;
}
while(!(m<5)) {
m=m-5;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224139/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224139/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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) {
while(1){
int a;
scanf("%d",&a);
if(a==0) break;
int sa,e500,a500,e100,a100,e50,a50,e10,a10,e5,e1,k;
sa=1000-a;
e500=sa/500;
a500=sa%500;
e100=a500/100;
a100=a500%100;
e50=a100/50;
a50=a100%50;
e10=a50/10;
a10=a50%10;
e5=a10/5;
e1=a10%5;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224182/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224182/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 == C || A+C == B || B+C == A)
printf("Yes\n");
else
printf("No\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224225/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224225/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 == c||b + c == a)||c + a == b) printf("Yes");
else printf("No");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224269/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224269/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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+c)||b==(a+c)||c==(a+b)) printf("Yes");
else printf("No");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224311/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224311/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<math.h>
int main(){
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if(a == b + c || b == c + a || c == a + b){
printf("Yes");
}else{
printf("No");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224355/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224355/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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==(a+b+c)/2.0 || b==(a+b+c)/2.0 ||c==(a+b+c)/2.0)
printf("Yes\n");
else
printf("No\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224399/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224399/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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+c ||b==a+c ||c==a+b)
printf("Yes\n");
else
printf("No\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224441/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224441/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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) == c || (b+c) == a || (c+a) == b){
printf("Yes");
}
else{
printf("No");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224485/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224485/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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)==c||(a+c)==b||a==(b+c)){
printf("Yes\n");
}else{
printf("No\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224528/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224528/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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>
#include <math.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... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224579/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224579/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(int argc, char const *argv[])
{
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if (a>=c)
{
if (c>b)
{
printf("Yes\n");
}else{
printf("No\n");
}
}else{
if (c<b)
{
printf("Yes\n");
}else{
printf("No\n");
}
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224621/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224621/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d %d %d", &x, &y, &z);
if((x <= z)&&(z <= y)){
printf("Yes");
}
else if((y <= z)&&(z <= x)){
printf("Yes");
}
else{
printf("No");
}
return(0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224665/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224665/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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){
if(a<c&&c<b){
printf("Yes\n");
}
else{
printf("No\n");
}
}
else{if(b<c&&c<a){
printf("Yes\n");
}
else{
printf("No\n");
}
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224708/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224708/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
int main(void) {
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
if (a < b) {
if (c < b && c > a)
printf("Yes");
else
printf("No");
} else {
if (c < a && c > b)
printf("Yes");
else
printf("No");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224751/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224751/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/*
cat <<EOF >mistaken-paste
*/
#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
#define VERYBIG 2000000000000007LL
#d... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224801/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224801/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@b = dso_local local_unname... |
#include<stdio.h>
int main(){
long int n,i,j,k,A[300]={},a=0;
char s[11],l[6]="MARCH";
scanf("%ld",&n);
for(i=0;i<n;i++){scanf("%s",s);A[s[0]]++;}
for(i=0;i<5;i++)for(j=i+1;j<5;j++)for(k=j+1;k<5;k++)a+=A[l[i]]*A[l[j]]*A[l[k]];
printf("%ld",a);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224852/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224852/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
int max(int a, int b){
return a >= b ? a : b;
}
int min(int a, int b){
return b >= a ? a : b;
}
int sei(int a){
return a>0 ? a : 0;
}
int factorial(int n) {
if (n > 0) return n*factorial(n - 1);
else return 1;
}
int... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224896/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224896/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
long long int many[5]={0};
int hoge,hogera;
char s[16]={0};
long long int math = 0;
scanf("%d",&hoge);
for(hogera=0;hogera<hoge;hogera++){
scanf("%s",&s);
switch(s[0]){
case 'M':many[0]++;break;
case 'A':many[1]++;break;
case 'R':many[2]++;break;
case 'C':many[3]++;break;
case 'H':m... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224946/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224946/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
#define N 100005
int main(){
int m,n,a[N],b[N];
scanf("%d",&m);
int i,j;
for(i=0;i<m;i++){
memset(a,0,sizeof(a));
memset(b,0,sizeof(b));
scanf("%d",&n);
for(j=0;j<n;j++){
scanf("%d%d",&a[j],&b[j]);
}
int m... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22499/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22499/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 min(int * a, int n) {
int i, k = 0;
for (i = 1; i < n; i++) {
if (a[i] < a[0]) {
a[0] = a[i];
k = i;
}
}
return k;
}
int max(int * a, int n) {
int i, k = 0;
for (i = 1; i < n; i++) {
if (a[i] > a[0]) {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22509/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22509/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 h, w, i, j;
scanf("%d %d",&h, &w);
while(1){
for(i = 0; i < h; i++){
if(i % 2 == 0){
for(j = 0; j < w; j++){
if(j == w - 1){
if(j % 2 == 0){
printf("#\n");
}else{
printf(".\n");
}
}else if(j % 2 == 0){
printf("#");
}else{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225132/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225132/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i,j;
while(1){
scanf("%d %d",&H,&W);
if(H==0 && W==0)
break;
for(i=0; i<H; i++){
for(j=0; j<W; j++)
if((j+i)%2)
printf(".");
else
printf("#");
puts("");
}
puts("");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225176/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225176/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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.