Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main()
{
int t,i;
scanf("%d",&t);
for(i=0;i<t;i++)
{int n,m,r=0,p=0,x=0,c=0,j,k;
scanf("%d",&n);
scanf("%d",&m);
int a[n][m];
for(j=0;j<n;j++)
{
for(k=0;k<m;k++)
{
scanf("%d",&a[j][k]);
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_3589/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_3589/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr co... |
#include <stdio.h>
int main(int argc, char const *argv[]) {
int i,j,a[3];
scanf("%d %d %d",&a[0],&a[1],&a[2]);
for(i=0;i<3;i++){
for(j=i+1;j<3;j++){
if(a[i]<a[j]){
int temp=a[i];
a[i]=a[j];
a[j]=temp;
}
}
}
printf("%d\n",a[0]-a[2]);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_358957/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_358957/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int t, n, m, i, j, c[51], r[51], f, cnt_c = 0, cnt_r = 0, min;
scanf("%d", &t);
while(t--){
for(i = 1; i < 51; i++){
c[i] = 0;
r[i] = 0;
}
cnt_r = 0;
cnt_c = 0;
scanf("%d%d", &n, &m);
for(i = 1; i <= n; i++)
for(j = 1; j <= m; j++){
scanf("%d", &f);
if(f){... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_3590/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_3590/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr co... |
#include<stdio.h>
int main(){
int task[3];
int a=scanf("%d %d %d",&task[0],&task[1],&task[2]);
int i,j;
for(i=0;i<3;i++){
for(j=0;j<3;j++){
if(task[i]<task[j]){
int a=task[i];
task[i]=task[j];
task[j]=a;
}
}
}
/*for(i=0;i<3;i++){
printf("%d,",task[i]);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_359064/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_359064/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
/*qsortの使い方*/
int cmp_int(const void* v1, const void* v2)
{
const int _v1 = *((const int*)v1);
const int _v2 = *((const int*)v2);
if ( _v1 > _v2 ) {
return 1;
} else if ( _v1 < _v2 ) {
return -1;
} else {
return 0;
}
}
/*qsortの使い方*/
int main(void)
{
in... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_359114/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_359114/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
// Aizu Vol-6 0610: Weather Forecaster
// 2017.9.5 bal4u@uu
#include <stdio.h>
char map[103][103];
int ans[103][103];
int main()
{
int h, w, x, y, p;
scanf("%d%d", &h, &w);
for (y = 0; y < h; y++) scanf("%s", map[y]);
for (y = 0; y < h; y++) for (p = -1, x = 0; x < w; x++) {
if (map[y][x] == 'c') p = x;
ans... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_359165/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_359165/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 100
#define K 100
void main(){
int n, k, d[K], a[K][N], trick_avoid[N]={0}, sum=0;
scanf("%d %d",&n, &k);
for(int i=0; i<k; i++){
scanf("%d",&d[i]);
for(int j=0; j<d[i]; j++){
scanf("%d",&a[i][j]);
}
}
for(int i=0; i<k; i++){
for(int j=... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_359259/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_359259/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,d;
int c=0;
int A[100]={};
int B[105]={};
scanf("%d%d",&N,&K);
while(K--)
{
scanf("%d",&d);
for(int i=0;i<d;++i)
{
scanf("%d",&A[i]);
B[A[i]]=A[i];
}
}
for(int i=1;i<=N;++i)
{
if(B[i]==0)
++c;
}
printf("%d",c);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_359309/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_359309/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,k,n) for(int (i)=(k);(i)<(n);(i)++)
#define max(a,b) (a)>(b)?(a):(b)
#define min(a,b) (a)<(b)?(a):(b)
#define abs(a) (a)>0 ?(a):-(a)
#define llong long long
int main(){
int N,K; scanf("%d %d",&N,&K);
int flag[N]; rep(i,0,N) f... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_359352/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_359352/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int n, k, i, a[100] = { 0 }, j,sum=0;
int useless;
scanf("%d%d", &n, &k);
for (i = 0;i < k;i++)
{
scanf("%d", &useless);
getchar();
do
{
scanf("%d", &j);
a[j - 1] = 1;
} while (getchar() != '\n');
}
for (i = 0;i < n;i++)
{
if (a[i] == 0) sum++;
}
printf("%d", s... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_359396/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_359396/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 REP(i,n) for (int i = 0 ; i < (int)n ; i++)
typedef long long ll;
int main(){
int n,k,d,j,count=0;
scanf("%d %d",&n,&k);
int sunuke[n];
REP(i,n){
sunuke[i] = 0;
}
REP(i,k){
scanf("%d",&d);
REP(i,d){
scanf("%d",&j);
sunuke... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_359446/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_359446/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
int main()
{
int n;
scanf("%d",&n);
while(n--)
{
long long a=0,b=0,e=0,f=0,x,y;
scanf("%lld %lld",&x,&y);
char c[100005]={'\0'};
scanf("%s",c);
for(int i=0;c[i]!='\0';i++)
{
if(c[i]=='U')
a++;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_35949/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_35949/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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;
int sunuke[100]={0};
int now_k,i,j,tmp,count=0;
scanf("%d %d",&n,&k);
for(i=0;i<k;i++){
scanf("%d",&now_k);
for(j=0;j<now_k;j++){
scanf("%d",&tmp);
sunuke[tmp-1]++;
}
}
for(i=0;i<n;i++){
if(sunuke[i]==0){
count++;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_359532/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_359532/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
struct node{
unsigned int key;
struct node *next;
struct node *prev;
};
typedef struct node * NodePointer;
NodePointer nil;
NodePointer listSearch(int key){
NodePointer cur = nil->next;
while(1){
if ( cur == nil ) break;
if(cur->key == key) r... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_359583/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_359583/source.c"
target datalayout = "e-m:e-p270: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 *next;
struct node *prev;
};
typedef struct node * NodePointer;
NodePointer nil;
/*
NodePointer listSearch(int key){
NodePointer t;
for(t = nil -> next;t != nil;t = t -> next){
if(t -> key ==... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_359626/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_359626/source.c"
target datalayout = "e-m:e-p270: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{
unsigned int key;
struct node *next;
struct node *prev;
};
typedef struct node * NodePointer;
NodePointer nil;
NodePointer listSearch(int key){
/* your code */
NodePointer cur = nil->next;
while(cur != nil && cur->key != key)
cur ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_359677/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_359677/source.c"
target datalayout = "e-m:e-p270: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 *next;
struct node *prev;
};
typedef struct node * Node;
Node nil;
Node search(int key){
Node x;
x = nil->next;
while(x != nil && x->key != key){
x = x->next;
}
return x;
}
void init()... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_359727/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_359727/source.c"
target datalayout = "e-m:e-p270: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 *next, *prev;
};
typedef struct node *NodePointer;
void insert(int);
void deleteNode(NodePointer);
void delete(int);
void init(void);
void deletefirst(void);
void deletelast(void);
NodePointer finditem(int);
void list... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_359778/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_359778/source.c"
target datalayout = "e-m:e-p270: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 *prev, *next;
};
struct Node *nil;
void printList(){
struct Node *cur = nil->next;
int isf =0;
while(1){
if(cur==nil){
break;
}
if(isf++>0){
printf(" ");
}
printf("%d",cur->k... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_359820/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_359820/source.c"
target datalayout = "e-m:e-p270: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 item;
link next, prev;
};
int main(void){
int n, i, j, getitem, size = 0;
char s[16];
link head, end;
head = malloc(sizeof(*head));
head->item = -1;
head->next = NULL;
head->prev = NULL;
end = he... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_359871/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_359871/source.c"
target datalayout = "e-m:e-p270: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>
typedef struct LLIST LList;
struct LLIST {
LList *prev, *next;
int v;
};
void add(LList *prev, LList *e) {
e->next = prev->next;
e->prev = prev;
prev->next->prev = e;
prev->next = e;
}
void removeElem(LList *e) {
LList *prev = e->prev, *next = e->next;
prev->nex... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_359914/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_359914/source.c"
target datalayout = "e-m:e-p270: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.LLIST = type { ptr,... |
#include <stdio.h>
#include <stdlib.h>
struct _Node{
int key;
struct _Node *next;
struct _Node *prev;
};
typedef struct _Node Node;
Node *nil;
void insert(int key) {
Node *n;
n = (Node *)malloc(sizeof(Node));
n->key = key;
n->next = nil->next;
nil->next = nil->next->prev = n;
n->prev = nil;
}
void... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_359965/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_359965/source.c"
target datalayout = "e-m:e-p270: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 *next;
struct node *prev;
};
typedef struct node * NodePointer;
NodePointer nil;
/////////////////////////
void insert(int a){
NodePointer n;
n=malloc(sizeof(struct node));
n->key=a;
n->next=nil->next;
nil->next... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_360013/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_360013/source.c"
target datalayout = "e-m:e-p270: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{
unsigned int key;
struct node *next;
struct node *prev;
};
typedef struct node * NodePointer;
NodePointer nil;
NodePointer listSearch(int key){
NodePointer a;
a = nil->next;
while(a != nil && a->key != key){
a = a->next;
}
retu... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_360057/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_360057/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node = type { i32, ... |
#include <stdio.h>
#include <stdlib.h>
int
main(void)
{
int i, j, x, t, a, b, da, db, flag = 0, sa, sb;
scanf("%d%d%d%d%d%d", &x, &t, &a, &b, &da, &db);
sa = a;
sb = b;
for (i = 0; i < t; i++) {
a = sa - i * da;
for (j = 0; j < t; j++){
b = sb - j * db;
if ((... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_36010/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_36010/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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<stdlib.h>
struct node{
unsigned int key;
struct node *next;
struct node *prev;
};
typedef struct node *NodePointer;
NodePointer nil;
NodePointer listSearch(int key){
NodePointer cur=nil->next;
while(cur!=nil && cur->key!=key){
cur=cur->next;
}
retu... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_360143/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_360143/source.c"
target datalayout = "e-m:e-p270: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 *next;
struct Node *prev;
};
struct Node *nil;
struct Node *listseach(int key)
{
struct Node *cur=nil->next;
while(cur!=nil && cur->key!=key){
cur=cur->next;
}
return cur;
}
void init()
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_360187/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_360187/source.c"
target datalayout = "e-m:e-p270: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>
int main(void){
int t,i;
scanf("%d",&t);
for(i=1;i<=t;i++){
int a,b,c,t1=0,t2=0;
scanf("%d",&a);
if(a==1)
printf("0\n");
else if(a==3)
printf("2\n");
else{
while(a%3==0){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_36023/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_36023/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
//node
typedef struct DATA{
int key;
struct DATA *prev;
struct DATA *next;
}DATA;
//prototype
void insert(int);
void delete(DATA *);
void print_node(void);
//head set
DATA *head,*tail;
int main(){
int num, key, i;
char com[15];
DATA *dp;
/... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_360273/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_360273/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.DATA = type { i32, ... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
typedef struct note{
unsigned int key;
struct note *next;
struct note *prev;
} *NodePointer;
NodePointer nil;
NodePointer listSearch(int key){
NodePointer cur = nil->next;
while(cur != nil){
if(cur->key == key) return cur;
cur = cur->next;
}
return N... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_360316/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_360316/source.c"
target datalayout = "e-m:e-p270: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.note = type { i32, ... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main()
{
int t,l,n,k=-1;
char s[55],stack[55];
scanf("%d",&t);
while(t--)
{
scanf("%d",&n);
scanf("%s",s);
l=strlen(s),k=-1;
for(int i=0;i<55;i++)stack[i]='\0';
for(int i=0;i<l;i++)
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_36036/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_36036/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 t, count, sum, n;
char ang[50];
scanf("%d", &t);
for (int i = 0; i < t; i++) {
count = 0;
sum = 0;
scanf("%d", &n);
scanf("%s", ang);
for (int j = 0; j < n; j++) {
if (ang[j] == '(')
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_36041/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_36041/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 *next;
struct node *prev;
};
typedef struct node * NodePointer;
NodePointer nil;
NodePointer listSearch(int);
void Init();
void printList();
void deleteNode(NodePointer);
void deleteFirst();
void deleteLast();
void delet... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_360453/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_360453/source.c"
target datalayout = "e-m:e-p270: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{
unsigned int key;
struct node *next;
struct node *prev;
};
typedef struct node * NodePointer;
NodePointer nil;
NodePointer listSearch(int key){
NodePointer cur = nil->next;
while( cur != nil && cur->key != key ){
cur = cur->next;
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_360497/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_360497/source.c"
target datalayout = "e-m:e-p270: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()
{
long long int t,n,i,j,x,y;
scanf("%lld",&t);
for(i=0;i<t;i++)
{
scanf("%lld%lld%lld",&x,&y,&n);
if(n%x>=y)
{
printf("%lld\n",n - n%x +y);
}
else
{
printf("%lld\n",n-(n%x)-x+y);
}
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_36054/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_36054/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 t,n;
int i,j,w;
scanf("%d",&t);
while(t--){
scanf("%d",&n);
int a[100];
int b[100]={0};
for(i=0;i<n;i++)
scanf("%d",&a[i]);
for(i=0;i<n-1;i++)
b[i]=a[i+1]-a[i];
for(i=0;i<n-1;i++){
for(j=n-1;j>i;j--){
if(b[j-1]<b[j]){
w=b[j];
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_360583/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_360583/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, n, i, j, temp, nobori, ori;
scanf("%d", &N);
for(i = 0; i < N; i++) {
scanf("%d", &n);
int block[n];
nobori = ori = 0;
for(j = 0; j < n; j++) {
scanf("%d", &block[j]);
}
for(j = 0; j < n - 1; j++) {
if(block[j] < block[j + 1]) {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_360633/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_360633/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 100000
int Parent[MAX];
int Left[MAX];
int Right[MAX];
int D[MAX];
void Depth(int ,int);
int main(){
int i,j;
int n=0;
int depth=0;
int id=0;
int k=0;
int c=0;
int lef=0;
scanf("%d",&n);
for(i=0;i<n;i++){
Left[i]=-1;
Right[i]=-1;
Parent[i]=-1;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_360677/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_360677/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 NIL -1
#define Max 100005
typedef struct{
int parent;
int left;
int right;
}Node;
Node T[Max];
int depth[Max];
void r(int,int);
void r(int node ,int parent){
depth[node] = parent;
if(T[node].right != NIL){
r(T[node].right,parent);
}
if(T[node].left != NIL){
r(T[node].lef... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_360727/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_360727/source.c"
target datalayout = "e-m:e-p270: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>
typedef struct{
int parent;
int left;
int right;
} DATA;
#define MAX 1000000
#define NIL -1
DATA array[MAX];
int main(){
int i;
int id;
int j;
int n;
int k;
int count[100000];
int hukasa = 0;
int num;
scanf("%d",&n);
for(i = 0;i < n;i++){
array[i].parent = NIL;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_360778/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_360778/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.DATA = type { i32, ... |
#include<stdio.h>
int main()
{
long long int t,x,y,n,i,p;
scanf("%lld",&t);
for(i=1;i<=t;i=i+1)
{
scanf("%lld %lld %lld",&x,&y,&n);
p=n%x;
if(p<y)
{
n=n-p;
n=n-x+y;
}
else if(p>=y)
{
n=n-p+y;
}
prin... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_36090/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_36090/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 max 100000
#define nil -1
typedef struct{
int parent;
int leaf;
int right;
}node;
node t[max];
int n;
int dep(int id, int c){
int i, depth = 0;
if(t[id].parent != nil){
depth = dep(t[id].parent, c);
return depth+1;
}
else return 0;
}
int main(void){
int i, j, id, k... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_360958/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_360958/source.c"
target datalayout = "e-m:e-p270: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>
#define N 100005
#define NIL -1
struct Node{
int p, l, r;
};
struct Node T[N];
int getDepth(int p);
int main(){
int n, i, k, j, c;
int id, tmp;
int dep[N];
scanf("%d", &n);
for(i = 0; i < n; i++){
T[i].l = T[i].p = T[i].r = NIL;
}
for(i = 0; i < n; i++){
scanf("%d%d", &id... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_361007/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_361007/source.c"
target datalayout = "e-m:e-p270: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>
#define N 100000
typedef struct{
int parent;
int left;
int right;
}node;
node T[N];
int c[N];
int n;
int Depth(int );
void Judge(int );
void print(int );
int main(){
int i,j;
int id,k,z;
int child,lastchild;
scanf("%d",&n);
for(i=0 ;i<n ;i++){
T[i].parent = -1;
T[i].right ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_361065/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_361065/source.c"
target datalayout = "e-m:e-p270: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>
#define MAX 100005
#define R -1
typedef struct{
int parent;
int right; //??????
int left; //??????
}Node;
Node A[MAX];
int n;
int B[MAX];
int C[MAX];
void depth(int u,int p){
B[u]=p;
if(A[u].right!=R) depth(A[u].right,p);
if(A[u].left!=R) depth(A[u].left,p+1);
}
void print2(int i){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_361108/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_361108/source.c"
target datalayout = "e-m:e-p270: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> //rooted trees
#define M 100001
typedef struct tree
{
int p,l,r;
}t;
t T[M];
int main(void)
{
int n,i,j,k,id,c,tmp,tmp2;
scanf("%d",&n);
for(i=0;i<n;i++)
{
T[i].p=T[i].l=T[i].r=-1;
}
for(i=0;i<n;i++)
{
scanf("%d %d",&id,&k);
for(j=0;j<k;j++)
{
sca... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_361151/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_361151/source.c"
target datalayout = "e-m:e-p270: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.tree = type { i32, ... |
#include<stdio.h>
typedef struct{
int number;
int sa;//子の数
int reach;
int parent;
int zyun;
}node;
node B[100000];
int n;
/*int parent(int num){//parent input
int i,j,r=-1;
for(i=0;i<n;i++){
for(j=0;j<B[i].sa;j++){
if(num==B[i].A[j]){
r=i;
return r;
}
}
}
return r;
}
*/... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_361195/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_361195/source.c"
target datalayout = "e-m:e-p270: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 100001
#define NIL -1
typedef struct {
int parent;
int leftChild;
int rightSilbing;
} Node;
Node node[N];
int depth, n;
void initNode(Node* node) {
int i;
for (i = 0; i < n; i++) {
node[i].parent = NIL;
node[i].leftChild = NIL;
node[i].rightSilbing = NIL;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_361245/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_361245/source.c"
target datalayout = "e-m:e-p270: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>
#define MAX 100005
#define NIL -1
typedef struct {int p, l, r;} Node;
Node T[MAX];
int n, D[MAX];
void print(int u) {
int i,c;
printf("node %d: ",u);
printf("parent = %d, ",T[u].p);
printf("depth = %d, ",D[u]);
if( T[u].p == NIL ) printf("root, ");
else if( T[u].l == NIL ) printf("le... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_361289/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_361289/source.c"
target datalayout = "e-m:e-p270: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>
typedef struct{
int par;
int dep;
}node;
typedef struct{
int id;
int k;
int *val;
}cnode;
int dep;
int getdep(node* T, int i){
if(T[i].par == -1) return dep;
dep++;
return getdep(T, T[i].par);
}
void print(node T,cnode C){
int i;
printf("node %d: parent = %d,... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_361331/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_361331/source.c"
target datalayout = "e-m:e-p270: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>
#define MAX 100005
#define NIL -1
void print(int);
int rec(int,int);
struct Node{
int p,l,r;
};
int n,B[MAX];
struct Node A[MAX];
int main(){
int i,j,a,b,c,d,e;
scanf("%d",&n);
for(i=0;i<n;i++){
A[i].p = NIL;
A[i].l = NIL;
A[i].r = NIL;
}
for(i=0;i<n;i++){
scanf("%d ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_361375/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_361375/source.c"
target datalayout = "e-m:e-p270: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>
#define NIL -1
typedef struct{
int parent,left,right;
}tree;
void data_print(tree *inf,int i);
int depth(tree *inf,int x);
int main(){
tree inf[100001];
int n,pick,id,num,a,r;
int i,j;
scanf("%d",&n);
for(i=0;i<n;i++){
inf[i].parent=NIL;
inf[i].left=NIL;
inf[i].right=NIL;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_361418/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_361418/source.c"
target datalayout = "e-m:e-p270: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.tree = type { i32, ... |
#include<stdio.h>
#define NIL -1
#define MAX 100000
struct Node{
int p, l, r;
};
struct Node T[MAX];
int n,D[MAX];
int rec(int u,int p){
D[u]=p;
if(T[u].r!=NIL)rec(T[u].r,p);
if(T[u].l!=NIL)rec(T[u].l,p+1);
}
void print(int u){
int i,c;
printf("node %d: ",u);
printf("parent = %d, ",T[u].p);
printf(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_361461/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_361461/source.c"
target datalayout = "e-m:e-p270: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>
#define MAX 100005
#define NIL -1
typedef struct {int p, l, r;} Node;
Node T[MAX];
int n, D[MAX];
void print(int u) {
int i,c;
printf("node %d: ",u);
printf("parent = %d, ",T[u].p);
printf("depth = %d, ",D[u]);
if( T[u].p == NIL ) printf("root, ");
else if( T[u].l == NIL ) printf("le... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_361504/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_361504/source.c"
target datalayout = "e-m:e-p270: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>
#define MAX 100005
#define NIL -1
struct Node_struct{int p, l, r;}; /*p: 親(parent), l: 一番左の子(left child), r:右の兄弟(right sibling)*/
typedef struct Node_struct Node;
Node T[MAX];
int D[MAX];
void print(int u){
int i, c;
printf("node %d: parent = %d, depth = %d, ", u, T[u].p, D[u]);
if(T... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_361548/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_361548/source.c"
target datalayout = "e-m:e-p270: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_struct = type ... |
#include<stdio.h>
#define M 100001
#define N -1
struct Node_struct{int p, l, r;}; /*p: 親(parent), l: 一番左の子(left child), r:右の兄弟(right sibling)*/
typedef struct Node_struct Node;
Node T[M];
int D[M];
void print(int u){
int i, c;
printf("node %d: parent = %d, depth = %d, ", u, T[u].p, D[u]);
if(T[u].p==N) printf("... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_361591/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_361591/source.c"
target datalayout = "e-m:e-p270: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_struct = type ... |
#include<stdio.h>
#define MAX 100005
#define NIL -1
struct Node_struct{int p, l, r;}; /*p: 親(parent), l: 一番左の子(left child), r:右の兄弟(right sibling)*/
typedef struct Node_struct Node;
Node T[MAX];
int D[MAX];
void print(int u){
int i, c;
printf("node %d: parent = %d, depth = %d, ", u, T[u].p, D[u]);
if(T[u].p == N... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_361634/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_361634/source.c"
target datalayout = "e-m:e-p270: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_struct = type ... |
#include<stdio.h>
#define MAX 100000
#define NILL -1
struct node{
int p;
int l;
int r;
};
struct node a[MAX];
int n;
int D[MAX];// Dは深さを求めるために接点を格納しておく配列
int depth(int,int);
void print(int);
int main(){
int i,j;//カウンタ変数
int d,v;//dはidvのd行目を示し、vは1〜n-1個あるidのこと
int c;//idのv行目の内容を表す変数
int l,r;//left... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_361685/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_361685/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node = type { i32, ... |
// AOJ 1308 Awkward Lights
// 2018.3.8 bal4u
#include <stdio.h>
#include <string.h>
//#define getchar_unlocked() getchar()
int in()
{
int n = 0;
int c = getchar_unlocked();
do n = (n<<3)+(n<<1) + (c & 0xf), c = getchar_unlocked();
while (c >= '0');
return n;
}
#define N 630
// solve A X = C
//char A[N][N], X[... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_361728/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_361728/source.c"
target datalayout = "e-m:e-p270: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 <string.h>
#define N 50
#define M 50
int good(char *s, char *t, int m, int i) {
int j;
for (j = i; j < i + m; j++)
if (s[j] != '?' && s[j] != t[j - i])
return 0;
return 1;
}
int main() {
static char s[N + 1], t[M + 1];
int n, m, i, j;
scanf("%s%s", s, t);
n = strlen(s);
m =... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_361771/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_361771/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@main.s = internal global [... |
#include<stdio.h>
#include<string.h>
int main(){
char ss[51],t[51],s[51];
int i,flag[50]={},flag1=0,j,k;
scanf("%s",ss);
scanf("%s",t);
for(i=strlen(ss)-strlen(t);i>=0;i--){
for(j=0;j<strlen(t);j++){
if(ss[i+j]!=t[j]&&ss[i+j]!='?'){
break;
}
else if(j==strlen(t)-1){
for(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_361814/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_361814/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 2000000
void insert(int);
int extract();
void maxHeapify(int);
void heapIncreaseKey(int,int);
int a[NUM],heapsize=0;
int main(){
char c[10];
int n,max;
while(1){
scanf("%s",c);
if(c[0]=='i'){
scanf("%d",&n);
insert(n);
}else{
if(c[1]=='x'){
max=extrac... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_361858/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_361858/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@heapsize = dso_local local... |
#include <stdio.h>
#define SIZE 2000000
int main() {
int A[SIZE];
int H=0;
int i, l, largest, tmp, n;
char com[21], buf[20];
buf[19]='\0';
char *p;
do {
fgets(com, 20, stdin);
if (com[0] == 'i') {
n = 0;
p = com+7;
while (*p!='\n') {
n = n*10+*p-'0';
p++;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_361900/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_361900/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = external local_unn... |
#include <stdio.h>
#include <string.h>
int q[2000000];
void swap(int i, int j) {
int t;
t=q[i];
q[i]=q[j];
q[j]=t;
}
int main(void) {
int k,s=0,i,pr,l,r;
char com[2];
while (1) {
scanf("%s%d", com,&k);
if(!strncmp(com,"en",2)) break;
if(com[0]=='i'){
q[i=s]=k;
while (i>0 && q[i]>q[... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_361951/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_361951/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@q = dso_local local_unname... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define NIL -20000001
#define MAX 20000001
int S[MAX];
int heapsize = 0;
void heapIncreaseKey(int k){
int i = heapsize;
int tmp;
if(k < S[i])
printf("error\n");
S[i] = k;
while(i > 1 && S[i/2] < S[i]){
tmp = S[i];
S[i] = S[i/2];
S[i/... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_362015/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_362015/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@heapsize = dso_local local... |
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
int extractMax(int []);
void insert(int [], int);
void increaseKey(int [], int, int);
void maxHeapify(int [], int);
int parent(int);
int left(int);
int right(int);
int A[1000000], H = 0;
int main(){
char s[10];
int k;
while(1){
scanf("%s", s);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_362059/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_362059/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@H = dso_local local_unname... |
#include<stdio.h>
#include<stdlib.h>
#define INF 100000000;
int heapExtractMax();
void maxHeapify(int);
void buildMaxHeap();
void heapIncreaseKey(int,int);
void maxHeapInsert(int);
int length=1;
int A[2000001];
int main(){
char order[8];
int data,i=1;
while(order[0]!='e'||order[1]!='n'){
scanf("%s",order);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_362109/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_362109/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@length = dso_local local_u... |
#include<stdio.h>
#include<math.h>
#include<string.h>
#define N 2000000
#define INF 2147483647
int A[N],n=0;
int parent(int i){
return i/2;
}
int left(int i){
return 2*i;
}
int right(int i){
return 2*i+1;
}
void increase(int i,int k){
int temp;
if(k<A[i]) return;
A[i]=k;
while(i>1 && A[i/2]<A[i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_362202/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_362202/source.c"
target datalayout = "e-m:e-p270: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 local_unname... |
#include <stdio.h>
#include <limits.h>
int A[2000001], size = 0;
int extract(void);
void increaseKey(int, int);
void insert(int);
int extractMax(void);
void maxHeapify(int);
int main()
{
int k, max;
char input[10];
while(1)
{
scanf("%s",input);
if(input[0] == 'e' && input[1] == 'n')break;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_362253/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_362253/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@size = dso_local local_unn... |
#include <stdio.h>
#define MAX 2000000
int h[MAX+1],size = 0;
void maxHeapify(int i){
int l,r,largest,ex;
l = 2*i;
r = 2*i+1;
if(l <= size && h[l] > h[i])largest = l;
else largest = i;
if(r <= size && h[r] > h[largest])largest = r;
if(largest != i){
ex = h[i];
h[i] = h[largest];
h[la... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_362297/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_362297/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@size = dso_local local_unn... |
#include <stdio.h>
int p = 0, q[2000000];
int max_num(int x, int y){
if(q[x]>q[y])
return x;
else
return y;
}
void insert(int k){
int i, j, temp;
p++;
q[p] = k;
i = p;
while(q[i] > q[i/2] && i > 1){
temp = q[i];
q[i] = q[i/2];
q[i/2] = temp;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_362347/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_362347/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@p = dso_local local_unname... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int t[2000000],n=1;
void maxheapify(int i){
int l=2*i,r=2*i+1,large,v;
if(l<=n&&t[l]>t[i])large=l;
else large=i;
if(r<=n&&t[r]>t[large])large=r;
if(large!=i){
v=t[i];
t[i]=t[large];
t[large]=v;
maxheapify(large);
}
}
int main(){
int... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_362398/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_362398/source.c"
target datalayout = "e-m:e-p270: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 local_unname... |
#include <stdio.h>
int p=0;
int q[2000001];
void chg(int a,int b){
int x;
x=q[a];
q[a]=q[b];
q[b]=x;
}
int max(int a,int b){
if(q[a]>q[b]) return a;
else return b;
}
int extract(){
int r=q[1];
int i;
int x;
int M;
q[1]=q[p];
p--;
i=1;
while(i*2 <= p ){
if(i*2+1 <= p)
M=max(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_362440/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_362440/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@p = dso_local local_unname... |
#include <stdio.h>
#define X 100000000
int n;
int A[20000000];
int Count();
void maxHeapify(int i);
void increaseKey(int n, int k);
void insert(int k);
int extractMax();
int main(){
int i, c;
char dist[20];
for (i = 1; i <= 2000000; i++){
scanf("%s", dist);
if(dist[0] == 'i'){ // insert
scanf("%d", ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_362491/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_362491/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
typedef long long int LL;
LL x,y;
LL f(LL x,LL z){
y+=x+z;
for(LL n=10;n<x;n*=10){
f(x/n,x%n+z);}
return y;}
signed main(){
scanf("%lld",&x);
printf("%lld\n",f(x,0));
return 0;} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_362541/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_362541/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@y = dso_local local_unname... |
#include<stdio.h>
int main(void)
{
int i,a,b,c;
for(i=1;i<=7;i++) {
scanf("%d %d",&a,&b);
c=a-b;
printf("%d\n",c);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_362585/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_362585/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int ans[7];
int i;
for (i = 0; i < 7; i++){
scanf("%d %d", &a, &b);
ans[i] = a - b;
}
for (i = 0; i < 7; i++){
printf("%d\n", ans[i]);
}
return (0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_362628/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_362628/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int i;
for (i = 0; i < 7; i++){
scanf("%d %d", &a, &b);
printf("%d\n", a - b);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_362671/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_362671/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[8] = { 0 }, b[8] = { 0 }, i,o[8];
for (i = 1; i <= 7; i++) {
scanf("%d %d", &a[i],&b[i]);
o[i] = a[i] - b[i];
}
for (i = 1; i <= 7; i++) {
printf("%d\n", o[i]);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_362714/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_362714/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
if (scanf("%d %d", &a, &b) == EOF)return 0;
printf("%d\n", a - b);
main();
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_362758/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_362758/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
int arr[101];
int main(){
int i,n,t;
scanf("%d", &n);
for(i=1; i<=n; i++){
scanf("%d", &t);
arr[t]=i;
}
for(i=1; i<=n; i++){
printf("%d ", arr[i]);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_36283/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_36283/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 r,g;
scanf("%d %d",&r,&g);
printf("%d",2*g-r);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_362916/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_362916/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 conv(int x, int * m){
int i=0;
do {
m[i]=x%3;
x/=3;
i++;
} while (x);
for (;i<32;i++) m[i]=0;
}
int main()
{ int c1[32],c2[32],i,a,b,r=0,s=3;
scanf("%d%d",&a,&b);
conv(a,c1);
conv(b,c2);
for (i=0;i<32;i++){
c1[i]=c2[i]-c1[i];
if (c1[i]<0) c1[i]+=3;
if (... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_36296/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_36296/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 r, g, ans;
scanf("%d",&r);
scanf("%d",&g);
ans = 2*g - r;
printf("%d",ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_363001/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_363001/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int r,g,t;
scanf("%d %d",&r,&g);
t=g-r;
g+=t;
printf("%d",g);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_363045/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_363045/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main( void )
{
int r, g;
scanf("%d", &r);
scanf("%d", &g);
printf("%d\n", 2*g-r);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_363089/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_363089/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int r,g;
scanf("%d %d",&r,&g);
printf("%d\n",(2 * g) - r) ;
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_363131/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_363131/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int r, g;
scanf("%d%d", &r, &g);
printf("%d\n", 2*g -r);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_363175/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_363175/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h> // printf(), scanf()
#include <ctype.h> // isdigit()
const int MAX_L = 80;
const char NUL = '\0';
int
main(int argc, char **argv)
{
char str[MAX_L + 1];
int sum = 0;
while (scanf("%s", str) != EOF)
{
const char *s = str;
while (*s != '\n' && *s != NUL)
{
while (!isdi... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_363225/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_363225/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@MAX_L = dso_local local_un... |
#include <limits.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <math.h>
#define P 1000000007
int comp(const void *a, const void *b){return *(int*)a-*(int*)b;}
int e[200000][3];
long d[100001];
int search(int x, int l, int r){
while(l<=r){
int m=(l+r... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_363298/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_363298/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@e = dso_local global [2000... |
#include <string.h>
#include <stdio.h>
int main(void){
int n;
char henzi[100][3];
int x = 0;
int y = 0;
int s = 0;
int i = 0;
scanf("%d", &n);
while(i < n)
{
scanf("%s", henzi[i]);
i++;
}
for(i = 0;i < n; i++)
{
if((int)strlen(henzi[i]) == 1)
x++;
else
y++;
if (x < y)
{
s++;
bre... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_363355/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_363355/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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==5&&b==5&&c==7||a==5&&b==7&&c==5||a==7&&b==5&&c==5) printf("YES");
else printf("NO");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_363405/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_363405/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[3];
scanf("%d%d%d", &a[0], &a[1], &a[2]);
if (a[0]==7){
if (a[1]==5&&a[2]==5) {
printf("YES");
return 0;
}
}
if (a[1]==7){
if (a[0]==5&&a[2]==5) {
printf("YES");
return 0;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_363456/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_363456/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
long long fuc(long long n, long long k);
int main(int argv, char* argc[])
{
int t;
scanf("%d", &t);
while (t--)
{
long long n, k, x;
long long sum1=0, sum2 = 0;
scanf("%lld %lld", &n, &x);
for (int i = 0; i < n; i++)
{
scanf("%lld", &k);
sum1 += fuc(k, x);
sum2 += k;
}
print... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_3635/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_3635/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 a,b,c,c5=0,c7=0;
scanf("%d%d%d",&a,&b,&c);
if(a==5)
c5++;
if(b==5)
c5++;
if(c==5)
c5++;
if((a==7 || b==7)||c==7)
c7++;
if(c5==2&&c7==1)
printf("YES\n");
else
printf("NO\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_363542/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_363542/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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)
{
//3つの文節の長さABC
int A, B, C;
int count5 = 0;
int count7 = 0;
//長さを入力
scanf("%d %d %d", &A, &B, &C);
//並べ替えて575になるか検証
if (A == 5) {
count5++;
}
else if (A == 7) {
count7++;
}
if (B == 5) {
count5++;
}
else if (B == 7) {
count7++;
}
if (C == 5) {
count5++;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_363586/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_363586/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 == 5 || a == 7) {
if (b == 5 || b == 7) {
if (c == 5 || c == 7) {
int d = a * b * c;
if (d == 175) {
printf("YES");
}
else printf("NO");
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_363629/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_363629/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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==5&&b==5&&c==7||a==5&&b==7&&c==5||a==7&&b==5&&c==5)
printf("YES");
else
printf("NO ");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_363672/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_363672/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
int main(void){
int *iroha = calloc(3, sizeof(int));
scanf("%d%d%d",iroha,iroha+1,iroha+2);
int count[2]={0,0};
for(int i = 0; i < 3; i++){
if( iroha[i] == 5 )count[0] += 1;
else if( iroha[i] == 7)count[1] += 1;
}
if( count[0] == 2 && count[1] == 1)printf("YE... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_363722/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_363722/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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==17 && a*b*c==175){
puts("YES");
}
else{
puts("NO");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_363816/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_363816/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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.