Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include <stdio.h>
int main(void)
{
int a,b,c,x,y,z,i,t,n;
long k;
scanf("%d %d %d %ld",&a,&b,&c,&k);
y=1;
if(k%2==1)
{
for(i=0;i<(k-1)/2;i++)
y=y*4-1;
x=y-1;
z=y;
}
else if(k%2==0)
{
for(i=0;i<(k-2)/2;i++)
y=y*4+1;
x=y+1;
z=y;
}
t=x*a+y*b+z*c;
n=z... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211493/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211493/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 H;
scanf("%d",&H);
if(H==0)break;
int A[H][5];
for(int i=0;i<H;i++)for(int j=0;j<5;j++)scanf("%d",&A[i][j]);
int ans=0;
while(1){
int flag=0;
for(int i=0;i<H;i++){
if(A[i]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211558/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211558/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
#define rep(i,n) for(int i=0;i<n;i++)
int gcd(int a, int b){
int r=1;
while(r!=0){
r=a%b;
a=b;
b=r;
}
return a;
}
void revStr(char* str){
int size = strlen(str);
int i,j;
char tmp = {0};
for(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211600/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211600/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@tail = dso_local local_unn... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <math.h>
#include <limits.h>
int sort(const void *a, const void *b){
return *(int*)a-*(int*)b ;
}
int main(void){
int n,x,ans=0;
scanf("%d%d",&n,&x);
int a[n];
for (int i=0; i<n; i++){
scanf("%d",&a[i]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211644/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211644/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <math.h>
#include <limits.h>
int sort(const void *a, const void *b){
return *(int*)a-*(int*)b ;
}
int main(void){
int n,x,ans=0;
scanf("%d%d",&n,&x);
int a[n];
for (int i=0; i<n; i++){
scanf("%d",&a[i]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211688/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211688/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_211730/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211730/source.c"
target datalayout = "e-m:e-p270: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 N_MAX 500001
struct node{
int key;
struct node *right;
struct node *left;
struct node *parent;
};
typedef struct node *Node;
Node root = NULL;
void insert(int k){
Node y = NULL;
Node x = root;
Node z;
z = malloc(sizeof(struct node))... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211774/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211774/source.c"
target datalayout = "e-m:e-p270: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 treeMaximum(Node x){
}
Node treeSearch(Node u, int k){
}
Node treeSuccessor(Node x){
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211817/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211817/source.c"
target datalayout = "e-m:e-p270: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 = k;
z->left = NIL;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211868/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211868/source.c"
target datalayout = "e-m:e-p270: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 *right,*left,*parent;
};
struct node *root,*NIL;
void insert(int k){
struct node *y=NIL;
struct node *x=root;
struct node *z;
z=malloc(sizeof(struct node));
z->key = k;
z->left = NIL;
z->right = NIL;
while(x!=NIL){
y=... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211910/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211910/source.c"
target datalayout = "e-m:e-p270: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 bnode{
int key;
struct bnode *parent;
struct bnode *left;
struct bnode *right;
}BinNode;
typedef struct btree{
BinNode *bn;
BinNode *root;
int size;
}BinTree;
BinNode initBinNode(int);
void Insert(BinTree *, BinN... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211976/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211976/source.c"
target datalayout = "e-m:e-p270: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.bnode = type { i32,... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#define NIL NULL
struct node{
int key;
struct node *left;
struct node *right;
struct node *p;
};
typedef struct node * Node;
Node root;
/*宣言*/
void Inorder_tree_walk(Node);
void Preorder_tree_walk(Node);
void insert(int);
void find(Node,int);
/*ma... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212018/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212018/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node = type { i32, ... |
/*
I used a template program in C.
*/
#include<stdio.h>
#include<stdlib.h>
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
#define NIL NULL
Node root;
Node treeMinimum(Node x){
}
Node treeMaximum(Node x){
}
Node treeSearch(Node u, ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212061/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212061/source.c"
target datalayout = "e-m:e-p270: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){
}
Node treeMaximum(Node x){
}
Node treeSearch(Node u, int k){
}
Node treeSuccessor(Node x){
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212111/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212111/source.c"
target datalayout = "e-m:e-p270: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 gcd(int x, int y)
{
int temp;
if(x<y)
{
temp=x;
x=y;
y=temp;
}
while(y!=0)
{
temp=x;
x=y;
y=temp%y;
}
return x;
}
int main()
{
int t, k;
scanf("%d\n", &t);
for(int i=1; i<=t; i++)
{
scanf("%d\n... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21217/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21217/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 gcd(int a,int b){
int t;
while(!(b==0)){
t=a;
a=b;
b=t%b;
}
return a;
}
int main(){
int n,k,r,t;
scanf("%d",&n);
while(n>0){
scanf("%d",&k);
r=gcd(k,100);
t=100/r;
printf("%d\n",t);
n=n-1;
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21222/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21222/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 MAX 500001
#define NIL NULL
struct N{
int key;
struct N *parent;
struct N *left;
struct N *right;
};
typedef struct N * node;
void insert(int);
void ino(node);
void pr(node);
node r;
int main(){
int i,n,x;
char c[20];
scanf("%d", &n);
for(i = 0; i < n; ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212263/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212263/source.c"
target datalayout = "e-m:e-p270: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.N = type { i32, ptr... |
#include <stdio.h>
#include <stdlib.h>
typedef struct{
int key;
int left;
int right;
} Node;
void insert(Node*, int, int);
void print1(Node*, int);
void print2(Node*, int);
int main()
{
char s[10];
Node *t;
int m;
int a;
int i;
int cnt=0;
scanf("%d", &m);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212313/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212313/source.c"
target datalayout = "e-m:e-p270: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 *parent;
struct node *left;
struct node *right;
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 = k;
z->left = NIL;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212364/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212364/source.c"
target datalayout = "e-m:e-p270: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){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212414/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212414/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node = type { ptr, ... |
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<time.h>
#include<math.h>
struct node
{
int key;
struct node *parent;
struct node *left;
struct node *right;
};
char com[500010][10];
int x[500010];
struct node *root;
void insert(int z)
{
struct node *v;
if(!root)
{
v=(struct node *)malloc(sizeof... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212458/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212458/source.c"
target datalayout = "e-m:e-p270: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 {
int key;
struct Node *rig, *lef, *parent;
};
struct Node *root,*NIL;
void insert(int);
void inorder(struct Node *);
void preorder(struct Node *);
int main(){
int n,i,x;
char c[10];
char in[10]="insert";
char pri[10]="print";
sca... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212500/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212500/source.c"
target datalayout = "e-m:e-p270: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 *parent;
struct node *left;
struct node *right;
};
typedef struct node *Nodepointer;
Nodepointer r,NIL;
void insert(int);
void print(void);
void inorder(Nodepointer);
void preorder(Nodepointer);
int main(){
int i,n,num;
char c[7];
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212544/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212544/source.c"
target datalayout = "e-m:e-p270: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
void inorder(Node);
void preorder(Node);
void insert(int);
void find(int,Node);
Node root;
int f;
int main(){
int n, i, x;
char com[20... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212588/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212588/source.c"
target datalayout = "e-m:e-p270: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>
#define N 20
struct Node{
int key;
struct Node *right;
struct Node *left;
struct Node *parent;
};
typedef struct Node Node;
Node *sum,*num;
void jastin(int hum)
{
Node *a = sum;
Node *b = num;
Node *c;
c=(Node *)malloc(sizeof(Node));
c->key ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212630/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212630/source.c"
target datalayout = "e-m:e-p270: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 {
int key;
struct Node *right, *left, *parent;
};
typedef struct Node Node;
Node *root, *NIL;
void insert(int k) {
Node *y = NIL;
Node *x = root;
Node *z;
z = (Node *)malloc(sizeof(Node));
z->key = k;
z->lef... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212674/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212674/source.c"
target datalayout = "e-m:e-p270: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 treeMaximum(Node x){
while(x->right != NIL) ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212717/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212717/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node = type { ptr, ... |
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#define ORDER_MAX 500000
#define KEY_MAX 2000000000
#define KEY_MIN -2000000000
#define NIL KEY_MIN-1
typedef struct node{
int key;
struct node *l;
struct node *r;
struct node *p;
}Node;
void inorder(Node *);
void preorder(Node *);
void insert(int);
No... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212768/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212768/source.c"
target datalayout = "e-m:e-p270: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{
int key;
struct node *left;
struct node *right;
struct node *parent;
};
typedef struct node *NodePointer;
void insert(int);
void Preorder(NodePointer);
void Inorder(NodePointer);
NodePointer root = NULL;
int main () {
int n = 0, i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212810/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212810/source.c"
target datalayout = "e-m:e-p270: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>
#define NIL NULL
struct node{
int d;
struct node *p;
struct node *r;
struct node *l;
};
typedef struct node *NP;
NP root;
void my_insert(NP);
void my_inorder_print(NP);
void my_preorder_print(NP);
NP make_node(int);
int main(){
int i,n,input;
c... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212854/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212854/source.c"
target datalayout = "e-m:e-p270: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<math.h>
int main(void)
{
int n,y;
int b[51],r,t;
int i,j;
long long int g[10001];
double fg,q;
int max,bmax;
scanf("%d",&n);
while(n!=0){
scanf("%d",&y);
for(i=0;i<n;i++){
scanf("%d %d %d",&b[i],&r,&t);
if(t==1){
q=(double)(100+y*r)/100;
g[i]=10000*q;
// printf(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212904/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212904/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
long long int A[200000],B[200000];
long long int S=0LL;
scanf("%d",&N);
for(int i=1;i<=N+1;i++)
scanf("%lld",A+i);
for(int i=1;i<=N;i++)
scanf("%lld",B+i);
B[0]=0;
B[N+1]=0LL;
long long int C=0;
for(int i=1;i<=N+1;i++){
S+=A[i]>B[i-1]?B[i-1]:A[i];... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212948/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212948/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void) {
long long int N,i,ans=0;
scanf("%lld",&N);
long long int A[N+1];
long long int B[N];
for(i=0;i<N+1;i++){
scanf("%lld",&A[i]);
}
for(i=0;i<N;i++){
scanf("%lld",&B[i]);
}
for(i=0;i<N;i++){
if(A[i]>=B[i]){
ans=ans+B[i];
}else if(A[i]+A[i+1]>=B[i] && A[i]<B[i]){
a... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212991/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212991/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 int min(long int a,long int b){
if(a < b){
return a;
}else{
return b;
}
}
int main(void){
long int n,i,ans;
long int attack1; //同じ番号の街を守る力
long int attack2; //隣の番号の街を守る力
scanf("%d",&n);
long int a[n+10],b[n+10];
for(i=1; i <= n+1; i++){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213033/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213033/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
long long int N, i, ans = 0;
scanf("%ld", &N);
int A[N + 1], B[N];
for (i = 0;i < N + 1;i++)scanf("%ld", &A[i]);
for (i = 0;i < N;i++)scanf("%ld", &B[i]);
for (i = 0;i < N;i++) {
if (A[i] >= B[i]) {
A[i] -= B[i];
ans += B[i];
}
else {
ans += A[i];
if (A[i +... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213077/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213077/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 t;
scanf("%d", &t);
while (t--) {
long long int x, d;
scanf("%lld%lld", &x,&d);
int mod = d % 4;
long long int begin = d - mod;
for (long long int i = begin +1 ; i <= d; i++) {
if (x & 1) {
x += i;
}
else {
x -= i ;
}
}
printf("%l... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21312/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21312/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 m1,d1,m2,d2;scanf("%d%d%d%d",&m1,&d1,&m2,&d2);printf("%d",d2==1?1:0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213170/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213170/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 m1,d1,m2,d2;
scanf("%d %d",&m1,&d1);
scanf("%d %d",&m2,&d2);
if(d1>d2){
printf("%d",1);
}else {
printf("%d",0);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213213/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213213/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdlib.h>
#include <math.h>
#include <stdio.h>
#include <string.h>
int main()
{ int m1,d1,m2,d2;
scanf("%d%d%d%d",&m1,&d1,&m2,&d2);
if(m1==m2){
printf("0");
}else{
printf("1");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213257/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213257/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/*input
5
abcdefghijklmnopqrstuvwxyz
hello
abcdefghijklmnopqrstuvwxyz
i
abcdefghijklmnopqrstuvwxyz
codeforces
qwertyuiopasdfghjklzxcvbnm
qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
qwertyuiopasdfghjklzxcvbnm
abacaba
*/
#include <assert.h>
#include <limits.h>
#include <math.h>
#include <stdbool.h>
#include <stdde... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21330/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21330/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 N,A,B,C;
int l[10];
int ans=114514;
int max(int a,int b){
if(a>b){return a;}
else{return b;}
}
void dfs(int pos,int box1,int box2,int box3,int add){
if(pos>=N){
if(box1!=0&&box2!=0&&box3!=0){
int mp=max(A-box1,box1-A)+max(B-box2,box2-B)+max(C-box3,box3-C)+add;
if(ans>mp){ans=mp;}
}
return;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213358/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213358/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ans = dso_local local_unna... |
#include<stdio.h>
int main(void){
int x,y;
int turu;
scanf("%d %d",&x,&y);
if((1<=x)&&(x<=100)){
if((1<=y)&&(y<=100)){
turu=4*x-y;
if(y<=4*x){
if((turu<=2*x)&&(turu%2==0)){
printf("Yes\n");
}else{printf("No\n");
}
}else{printf("No\n");
}
}
}
return 0;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213415/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213415/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,judg=0;
int i,j;
scanf("%d%d",&x,&y);
for(i=0;i<=x;i++){
for(j=0;j<=x-i;j++){
if(i+j==x&&4*i+2*j==y){
judg++;
break;
}
}
if(i==0&&j==0){
judg=0;
}
}
if(judg==0){
printf("No\n");
}e... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213459/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213459/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,flg,t,k,i;
flg=0;
scanf("%d %d",&x,&y);
for(i=0;i<=x;i++){
t=i;
k=x-i;
if(t*2+k*4==y){
flg=1;
}
}
if(flg==1){
printf("Yes\n");
}
else{
printf("No\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213501/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213501/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i;
int num;
scanf("%d%d",&a,&b);
num=a*4;
for(i=0;i<a;i++){
if(num==b) break;
num-=2;
}
if(num==b) printf("Yes\n");
else printf("No\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213545/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213545/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d%d", &x, &y);
if (y % 2 != 0)
printf("No\n");
else {
if (x <= y / 2 && x * 2 >= y / 2)
printf("Yes\n");
else
printf("No\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213589/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213589/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 s;
int n;
scanf("%d %d",&s,&n);
if(n % 2 == 0 && (n >= 2*s && n <= 4*s)){
printf("Yes");
}
else{
printf("No");
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213639/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213639/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<math.h>
#include<stdlib.h>
#include<string.h>
#define BUFSIZE 1000000
int N,K;
int hoge[BUFSIZE]={0};
long long V,W,T;
int count = 0;
int main(void){
int X,Y;
scanf("%d %d",&X,&Y);
if(X*4 < Y){
printf("No");
exit(0);
}
for(int i = 0;;i++){
if(X*4-i*2 < X*2) break;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213682/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213682/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@hoge = dso_local local_unn... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#define ll long long
int main(void)
{
//a + b = x
//2a + 4b = y;
//2b = y -2x;
//2a = 4x - y;
int x, y;
int a, b;
scanf("%d %d", &x, &y);
b = (y - 2 * x) >> 1;
a = (4 * x - y) >> 1;
if (((a + b) == x) &... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213725/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213725/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <stdbool.h>
#include <math.h>
int main(void) {
int X, Y;
scanf("%d %d", &X, &Y);
int odA = Y - (2 * X);
if( odA == 0 ) {
printf("Yes\n");
return 0;
}
if( (odA < 0) || ((odA % 2) != 0) ) {
printf("No\n");
return 0... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213769/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213769/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 zahyoutype double
typedef struct Point{zahyoutype x,y;}P;
double distPP(P p,P q){return hypot(p.x-q.x,p.y-q.y);}
void readpoint(P*p){zahyoutype x=1;scanf(x/2?"%lf%lf":"%ld%ld",&p->x,&p->y);}
void printpoint(P p){zahyoutype x=1;printf(x/2?"%.f %.f\n":"%l... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213819/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213819/source.c"
target datalayout = "e-m:e-p270: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.Point = type { doub... |
#include<stdio.h>
int hist[5];
int main()
{
int n,num=0;
int i,trnt;
hist[1]=0;
hist[2]=0;
hist[3]=0;
hist[4]=0;
scanf("%d",&n);
for (i=0;i<n;i++)
{
scanf("%d",&trnt);
hist[trnt]++;
}
num+=hist[4];
num+=hist[3];
hist[1]-=hist[3];
num+=hist[2]/2;
hist[2]%=2;
num+=hist[2];
hist[1]-=hist[2]*2;
i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21387/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21387/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@hist = dso_local local_unnam... |
#include <stdio.h>
int main()
{
char S[8];
scanf("%s",&S);
if (S[0] == 'S')
{
printf("Cloudy");
}
else if (S[0] == 'C')
{
printf("Rainy");
}
else
{
printf("Sunny");
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213927/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213927/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
//A - Weather Prediction
#include <stdio.h>
#include <string.h>
char weather[3][7] = {"Sunny", "Cloudy", "Rainy"};
int main(void){
char s[10];
int i;
scanf("%s", s);
for(i=0; i<2; i++){
if(!strcmp(s, weather[i])){
printf("%s\n", weather[i+1]);
}
}
if(!strcmp(s, weath... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213978/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213978/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@weather = dso_local global... |
#include <stdio.h>
#include <math.h>
int main(){
int t;
scanf("%d",&t);
while(t--){
int n;
scanf("%d",&n);
int b=0;
int a = pow(2,n);
for(int i=1;i<(n/2);i++)
a=a+pow(2,i);
for(int i=n/2;i<n;i++)
b=b+pow(2,i);
printf("%d\n",(a-... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_2141/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_2141/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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()
{
int i;
char s[3][8]={"Sunny","Cloudy","Rainy"};
char ss[8];
scanf("%s",ss);
if(strcmp(ss,s[0])==0)
printf("%s\n",s[1]);
else if(strcmp(ss,s[1])==0)
printf("%s\n",s[2]);
else
printf("%s\n",s[0]);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214142/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214142/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.s = private u... |
#include <stdio.h>
int main(void)
{
int data[100];
int n, k;
int i;
int res;
scanf("%d%d", &n, &k);
for (i = 0; i < n; i++){
scanf("%d", &data[i]);
}
res = 0;
for (i = 0; i < n; i++){
if (data[i] >= data[k - 1] && data[i] > 0){
res++;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21420/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21420/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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(){
char s[7];
scanf("%s", s);
if (s[0] == 'S') {
puts("Cloudy");
}else if (s[0] == 'C') {
puts("Rainy");
} else {
puts("Sunny");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214250/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214250/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 suitnum(char);
char rsuitnum(int);
int main(){
int n,i,j,c[4][13]={};
int rank;
char s;
scanf("%d\n", &n);
for(i=0;i<n;i++){
scanf("%c %d\n",&s,&rank);
c[suitnum(s)][rank-1] = 1;
}
for(i=0;i<4;i++){
for(j=0;j<13;j++){
if (c[i][j]==0){
printf("%c %d\n",rsu... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214300/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214300/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, j, n, dummy; //nは持っているトランプの枚数
char mark;
int num; //numは持っているトランプのランク(トランプ上の数字)
char marks[4] = {'S', 'H', 'C', 'D'};
int cards[4][13] = {0};
scanf("%d", &n);
for(i = 1; i <= n; i++){
scanf("%d", &dummy);
scanf("%c %d ", &mark, &num... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214344/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214344/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 NUM 13
int main(){
int num[NUM*4-1],ncmp,n,i,j;
char pcmp;
for(i=0; i<NUM; i++){
num[NUM*0+i] = i+1;
num[NUM*1+i] = i+1;
num[NUM*2+i] = i+1;
num[NUM*3+i] = i+1;
}
scanf("%d", &n);
for(i=0; i<n; i++){
scanf(" %c",&pcmp);
scanf(" %d", &ncmp);
for(j=0; j<NUM; j++){
swit... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214395/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214395/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,card[4][13]={0},num,i,j;
char mark;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf(" %c %d",&mark,&num);
switch(mark){
case 'S':
card[0][num-1]=1;
break;
case 'H':
card[1][num-1]=1;
break;
case 'C':
card[2][num-1]=1;
break;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214438/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214438/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
char S[13],H[13],C[13],D[13];
char e;
int i,num;
for(i=0;i<13;i++)
{
S[i]=0;H[i]=0;C[i]=0;D[i]=0;
}
scanf("%d",&N);
for(i=0;i<N;i++)
{
scanf(" %c %d",&e,&num);
if(e=='S')S[num-1]=1;
else if(e=='H')H[num-1]=1;
else if(e=='C')C[num-1]=1;
else if(e=='D')D[num-1]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214481/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214481/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#define MAX 10
char trump[4] = {'S', 'H', 'C', 'D'};
int toNum(char c)
{
int ret;
switch(c) {
case 'S': ret = 0; break;
case 'H': ret = 1; break;
case 'C': ret = 2; break;
case 'D': ret = 3; break;
default : ret = -1; break;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214531/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214531/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@trump = dso_local local_un... |
#include<stdio.h>
int main(){
int N=0,num=0,i,j;
int card[4][13];
char M;
for(i=0;i<4;i++){
for(j=0;j<13;j++)
card[i][j]=0;
}
scanf("%d",&num);
for(i=0;i<num;i++){
scanf(" %c %d",&M,&N);
if(M=='S')
card[0][N-1]=1;
else if(M=='H')
card[1][N-1]=1;
else if(M=='C')
card[2][N-1]=1;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214575/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214575/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[13]={1,2,3,4,5,6,7,8,9,10,11,12,13},
h[13]={1,2,3,4,5,6,7,8,9,10,11,12,13},
d[13]={1,2,3,4,5,6,7,8,9,10,11,12,13},
c[13]={1,2,3,4,5,6,7,8,9,10,11,12,13},
check;
int count,i,j;
i=0;
scanf("%d",&count);
while(i!=count){
scanf("%c %d",&check,&j);
if(check!='... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214625/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214625/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.c = private u... |
/* ITP1_6_B */
#include <stdio.h>
#define NO_EXIST -1 // ?????¨??????????????????????????????
#define EXIST 1 // ?????¨???????????????????????????
#define MAX 52 // ????????????????????§?????°
#define CODE_SPADE 83 // ????????????"S"??????????????????
#define CODE_HEART 72 // ?????????"H"??????????????????
#def... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214669/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214669/source.c"
target datalayout = "e-m:e-p270: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.trump_card = type {... |
#include <stdio.h>
int main(void){
int cards[4][13]={{0},{0}};/*2?¬??????????????????????*/
int i, j,n;
scanf("%d",&n);
for(i=0;i<n;i++){
char b;
int c;
scanf(" %c %d\n",&b, &c);
if(b=='S'){ /*??\???????????????????????????????????????????´?*/
cards[0][c-1]=1;
}else if(b=='H'){
cards[1][c-1]=1;
}e... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214711/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214711/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 card[4][13]={0};
int i, j, n, num;
char suit;
const char suits[4]={'S', 'H', 'C', 'D'};
scanf("%d", &n);
for(i=0; i<n; i++) {
scanf(" %c %d", &suit, &num);
if (suit=='S') card[0][num-1]=1;
else if(suit=='H') card[1][num-1]=1;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214755/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214755/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.suits = priva... |
#include <stdio.h>
int main(){
int i,n,tmp;
char c;
int S[13],H[13],C[13],D[13];
for(i=0;i<13;i++){
S[i]=H[i]=C[i]=D[i]=0;
}
scanf("%d",&n);
for(i=0;i<2*n;i++){
scanf("%c",&c);
scanf("%d",&tmp);
if(c=='S'){
S[tmp-1]=1;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214849/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214849/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, x;
int CARD[4][13] = {0};
char m;
scanf("%d", &n);
for(int i = 0; i < n; i++){
scanf(" %c %d", &m, &x);
if(m == 'S') CARD[0][x - 1] = 1;
if(m == 'H') CARD[1][x - 1] = 1;
if(m == 'C') CARD[2][x - 1] = 1;
if(m == 'D... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214892/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214892/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,j;
char symbol;
int number;
int snum;
int all[52];
int cards[52];
for (i = 0; i < 52; i++) {
all[i] = 1;
}
scanf("%d", &n);
for (j = 0; j < n; j++) {
scanf("\n%c %d", &symbol, &number);
switch (symbol) {
case 'S':
snum = 0;
break;
case 'H... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214942/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214942/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdbool.h>
int main(){
int i, j, x;
int num;
char ch;
char marks[4]={'S', 'H', 'C', 'D'};
int cards[4][13]={false};
scanf("%d ", &x);
for(i=0;i<x;i++){
scanf("%c %d ", &ch, &num);
for(j=0;j<4;j++){
if(ch==marks[j]){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214986/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214986/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.marks = priva... |
#include <stdio.h>
int main(void){
int n,y,i;
scanf("%d\n",&n);
int cards[4][14]={{}};
char x;
for(i=0;i<n;i++){
scanf("%c %d\n",&x,&y);
if(x=='S')
cards[0][y]=1;
else if(x=='H')
cards[1][y]=1;
else if(x=='C')
cards[2][y]=1;
else i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215028/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215028/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 S 0
#define H 1
#define C 2
#define D 3
int main(){
int n, num, l, i, j, c[5][16] = {};
char m;
scanf("%d", &n);
for(i = 0;i < n;i++){
scanf(" %c %d", &m, &num);
switch(m){
case 'S': c[S][num] = -1; break;
case 'H': c[H][num] = -1; break;
case 'C': c[C][num] = -1... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215071/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215071/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, S[13], H[13], C[13], D[13],i,number;
char a,c;
for (i = 0; i < 13; i++) {
S[i] = H[i] = C[i] = D[i] = 0;
}
scanf("%d", &n);
for(i=0;i<n;i++){
scanf("%c%c%d", &a,&c,&number);
if (c == 'S')S[number - 1] = 1;
else if (c == 'H')H[number - 1] = 1;
else if (c == 'C'... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215121/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215121/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 S 0
#define H 1
#define C 2
#define D 3
int main(){
int n,r;
char ch;
int card[4][13] = {};
scanf("%d",&n);
printf("%ls",&n);
for( int i=0 ; i < n ; i++){
scanf("%c",&ch);
scanf("%c %d",&ch,&r);
if( ch == 'S')card[S][r-1] = 1;
if( ch == 'H')card[H][r-1] = 1;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215165/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215165/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
int S[13], H[13], C[13], D[13];
for(int i=0; i<13; i++) S[i] = H[i] = C[i] = D[i] = 1;
for(int i=0; i<n; i++){
getchar();
char m;
int a;
scanf("%c %d", &m, ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215208/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215208/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 outPut(int Array[],char mark){
for(int i = 1; i <= 13; i++){
if(Array[i] == 0) printf("%c %d\n",mark,i);
}
}
int main(){
char mark[2];
int n,S[14],H[14],C[14],D[14],tmp;
for(int i = 0; i < 14; i++) S[i] = H[i] = C[i] = D[i] = 0;
scanf("%d",&n);
for(int i = 0; i < n; i++){
scanf("%s... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215251/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215251/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 cards[4][13];
int x,i,j,c;
char ch,d;
for(i=0;i<4;i++){
for(j=0;j<13;j++){
cards[i][j]=0;
}
}
scanf("%d",&c);
for(i=0;i<c;i++){
scanf("%c",&d);
scanf("%c %d",&ch,&x);
if(ch=='S'){
cards[0][x... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215295/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215295/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main() {
int i, n, num;
int S[13], H[13], C[13], D[13];
char s;
for(i=0; i < 13; i++) {
S[i] = H[i] = C[i] = D[i] = 0;
}
scanf("%d", &n);
for(i=0; i < 2*n; i++) {
scanf("%c %d", &s, &num);
//printf("%c ", s);
if(s == 'S') S[num-1]++;
else if(s == 'H') H[num-1]++... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215338/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215338/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>
#include <math.h>
int main(void){
int A, B, K;
scanf("%d%d%d", &A, &B, &K);
if(A + K - 1 >= B - K + 1){
for(int i = A; i <= B; i++){
printf("%d\n", i);
}
}else{
for(int i = A; i <= A +... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215402/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215402/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <stdbool.h>
#include <math.h>
typedef long long ll;
int min(int, int);
int max(int, int);
int main()
{
int A, B, K;
scanf("%d%d%d", &A, &B, &K);
for (int i = A; i <= min(B, A + K -1); i++) printf("%d\n", i);
for (int i = max(B - K + 1, A + K); i <= B; i++) printf("%d\... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215446/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215446/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
int n,i,j,max;
scanf("%d",&n);
int a[n],x[n],y[n];
for(i=0; i<n; i++) scanf("%d",&a[i]);
x[0]=a[1]-a[0];
x[n-1]=a[n-1]-a[n-2];
y[0]=a[n-1]-a[0];
y[n-1]=y[0];
for(i=1; i<n-1; i++)
{
if( (a[i]-a[i-1])>=(a[i+1]-a[i]) )
x[i]=a[i+1]-a[i];
else
x[i]=a[i]-a[i-1];
if... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21549/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21549/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
int main(void)
{
int a,b,k,i;
scanf("%d%d%d",&a,&b,&k);
for(i=a;i<=b;i++){
if((i<a+k)||(i>b-k))
printf("%d\n",i);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215532/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215532/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,k,i;
scanf("%d %d %d",&a,&b,&k);
if(b-a+1>=2*k){
for(i=a;i<a+k;i++) printf("%d\n",i);
for(i=b-k+1;i<=b;i++) printf("%d\n",i);
}else{
for(i=a;i<=b;i++) printf("%d\n",i);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215583/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215583/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <math.h>
#define calc(v, n, p, pr) (((p) * ((v) / (n) * (n)) * (pr)) + ((p) * ((v) % (n))))
int minv;
int g;
int ap[32] = {0, 380}, bp[32] = {0, 550}, cp[32] = {0, 850};
void dfs(int a, int b, int c)
{
int mg = a * 200 + b * 300 + c * 500;
int price = ap[a] + bp[b] + cp[c];
if (mg == g... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215655/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215655/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ap = dso_local local_unnam... |
#include <stdio.h>
int main(void){
char s[3];
scanf("%s",s);
if(s[2]=='\0') printf("%s",s);
else printf("%c%c%c",s[2],s[1],s[0]);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215705/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215705/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[5];
scanf("%s", s);
if (strlen(s) == 2) {
printf("%s", s);
} else {
char x = s[0];
s[0] = s[2];
s[2] = x;
printf("%s", s);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215763/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215763/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#if 0
cat <<EOF >mistaken-paste
#endif
// thanks for @rsk0315_h4x
#pragma GCC diagnostic ignored "-Wincompatible-pointer-types"
#define _USE_MATH_DEFINES
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <math.h>
#include <time.h>
#define BIG 2000000007
#def... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215806/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215806/source.c"
target datalayout = "e-m:e-p270: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.hwll = type { i64, ... |
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
int main()
{
int i,j,n,t1,t2,k1,k2;
int min,max;
//min=1000000000;
//max=1000000000;
scanf("%d",&n);
int a[100000];
for(i=0;i<n;i++)
{
scanf("%d",&a[i]);
}
printf("%d %d\n",(a[1]-a[0]),(a[n-1])-a[0]);
for(i=1;i<n-1;i++)
{
t1=a[i]-a[i-1];
t2=a[i+1... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21585/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21585/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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);
if ((n - 2) % 10 == 0) {
printf("hon");
}
if ((n - 4) % 10 == 0) {
printf("hon");
}
if ((n - 5) % 10 == 0) {
printf("hon");
}
if ((n - 7) % 10 == 0) {
printf("hon");
}
if ((n - 9) % 10 == 0) {
printf("hon");
}
if ((n -... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215893/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215893/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 % 10 ;
if (N==2||N==4||N==5||N==7||N==9)
{
printf("hon\n") ;
}
else if (N==3)
{
printf("bon\n") ;
}
else
{
printf("pon\n") ;
}
return 0 ;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215950/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215950/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
int a=n%10;
if(a==2||a==4||a==5||a==7||a==9)
printf("hon\n");
else if(a==0||a==1||a==6||a==8)
printf("pon\n");
else
printf("bon\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215994/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215994/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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=0,c=0,i=0;
do{
scanf("%d",&a);
}while(a<0||a>999);
c=a%10;
if(c==2||c==4||c==5||c==7||c==9){
printf("hon\n");}
else if(c==0||c==1||c==6||c==8){
printf("pon\n");}
else if(c==3){
printf("bon\n");}
return 0;}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216043/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216043/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/* kadai 3_2
nabe9393 */
#include<stdio.h>
int main(void){
int number_pen;
scanf("%d", &number_pen); //入力
if (number_pen % 10 == 3){ //1のくらいが3の時はBON
printf("bon\n");
}
else if (number_pen % 10 == 0 || number_pen % 10 == 1 || number_pen % 10 == 6 || number_pen % 10 == 8){ //1のくらいが0,1,6,8の時はPON
p... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216087/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216087/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
int a[n], i;
for(i=0;i<n;++i)
{
scanf("%d", &a[i]);
}
for(i=0;i<n;++i)
{
if(i > 0 && i < n-1)
{
int min = a[i+1] - a[i], max = a[n-1] - a[i];
if(min > (a[i] - a[i-1]))
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21613/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21613/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 ... |
/*ex3_2
ryo_1129*/
#include <stdio.h>
int main(void){
int N,r; //変数宣言
scanf("%d",&N); //入力
r = N%10; // remainder
//1の位が3の時、bonを出力
if(r ==3){
printf("bon\n");
//1の位が0,1,6,8の時、ponを出力
}else if(r == 0 || r == 1|| r == 6 || r == 8){
printf("pon\n");
//それ以外、honを出力
}else{
printf("hon\n");
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216173/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216173/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,s,t;
scanf("%d",&N);
s=N%100;
t=s%10;
if(t==2) printf("hon\n");
if(t==4) printf("hon\n");
if(t==5) printf("hon\n");
if(t==7) printf("hon\n");
if(t==9) printf("hon\n");
if(t==0) printf("pon\n");
if(t==1) printf("pon... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216216/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216216/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 minm(int a,int b){
if(a>b)return b;else return a;
}
int maxm(int a,int b){
if(a>b)return a;
else return b; }
int main(){
int n;
scanf("%d",&n);
int a[n];
int i;
for(i=0;i<n;i++){
scanf("%d",&a[i]);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21626/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21626/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.