Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct Node{
int key;
struct Node *right,*left,*parent;
};
struct Node *root,*NIL;
struct Node *find(struct Node *u,int k){
while(u != NIL && k != u->key){
if(k < u->key)
u=u->left;
else
u=u->right;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_220622/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_220622/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.Node = type { i32, ... |
#include <stdio.h>
#include <stdlib.h>
#define NIL NULL
struct node{
struct node *r;
struct node *l;
struct node *p;
int key;
};
typedef struct node * Node;
Node root;
Node find(Node u, int k);
void insert(int k);
void inorderTreeWalk(Node x);
void preorderTreeWalk(Node x);
int main()
{
char str[7];
i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_220666/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_220666/source.c"
target datalayout = "e-m:e-p270: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;
Node root;
void Insert(int k){
Node y = NULL;
Node x = root;
Node z;
z = malloc(sizeof(struct node));
z->key = k;
z->left = NULL;
z->right = NUL... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_220709/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_220709/source.c"
target datalayout = "e-m:e-p270: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 NIL -1
struct Node {
int key;
struct Node *parent, *left, *right;
};
struct Node *root = NULL;
void freeNode(struct Node *target) {
if (target == NULL) return;
if (target->left != NULL) freeNode(target->left);
if (target->right !... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_220752/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_220752/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.Node = type { i32, ... |
#include<stdio.h>
#include<stdlib.h>
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
#define NIL NULL
Node root;
Node treeMinimum(Node x){
}
Node treeSearch(Node u, int k){
if(u == NIL || u->key == k)
return u;
if(u->key > k)
return treeSe... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_220796/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_220796/source.c"
target datalayout = "e-m:e-p270: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 treeSearch(Node u, int k){
while(u != NIL && u->key != k){
if( u->key > k)u = u->left;
else u = u->right;
}
return u... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_220839/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_220839/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node = type { ptr, ... |
#include <stdio.h>
int main()
{
long long n;
scanf("%lld",&n);
long long k=0;
while(n>((k-1)*k)/2)
{
k++;
}
k=k-1;
long long m;
m=n-(((k-1)*k)/2);
if(m==0){
printf("%lld",((k-1)*k)/2);
}
else
{
printf("%lld",m);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22089/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22089/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct Node {
int key;
struct Node *right, *left, *parent;
};
typedef struct Node Node;
Node *root, *NIL;
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_220932/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_220932/source.c"
target datalayout = "e-m:e-p270: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 l;
struct Node *ri;
struct Node *le;
struct Node *pa;
};
struct Node *root, *NIL;
void Insert(int);
void Inorder(struct Node *);
void Preorder(struct Node *);
struct Node * Find(struct Node *,int);
int main(){
int i,h,valu,findnum;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_220983/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_220983/source.c"
target datalayout = "e-m:e-p270: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 *r,*l,*p;
};
typedef struct node Node;
Node *root,*nil;
void insert(int t){
Node *x=root,*y=nil,*z;
z=malloc(sizeof(Node));
z->key = t;
z->r=nil;
z->l=nil;
while(x!=nil){
y=x;
if(z->key < x->key){
x = x->l;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221025/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221025/source.c"
target datalayout = "e-m:e-p270: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 treeSearch(Node u, int k){
if(u == NIL || k == u->key)return u;
if(k < u->key)return treeSearch(u->left, k);
else return... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221069/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221069/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node = type { ptr, ... |
#include <stdio.h>
#include <stdlib.h>
typedef struct node {
struct node *left;
struct node *right;
struct node *parent;
int key;
} node_t;
struct node *root = NULL;
int n;
void constructTree(int);
struct node* newNode(int);
void insert(struct node*);
int found(int);
void printInorder(struct node*);
void prin... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221111/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221111/source.c"
target datalayout = "e-m:e-p270: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 *r;
struct Node *l;
struct Node *p;
int key;
};
struct Node *root, *NIL;
void insert(int k){
struct Node *y = NIL;
struct Node *x = root;
struct Node *z;
z = (struct Node *)malloc(sizeof(struct Node));
z->key = k;
z->l = NIL;
z->r =... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221155/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221155/source.c"
target datalayout = "e-m:e-p270: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>
const int NILL = -1;
typedef long int lint;
typedef struct node
{
lint key;
struct node* parent;
struct node* left;
struct node* right;
}TREE;
TREE* root = NULL;
void insert(TREE* t)
{
TREE* x;
TREE* y;
y = NULL;
x = root;
while(x != NU... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221199/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221199/source.c"
target datalayout = "e-m:e-p270: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 { i64, ... |
#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_221241/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221241/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node = type { ptr, ... |
#include<stdio.h>
int main()
{
int a,b,x;
scanf("%d%d",&a,&b);
if(b==1)
printf("0\n");
else
printf("%d",x=a-b);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221292/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221292/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int n,k;
scanf("%d%d",&n,&k);
if(k==1)
printf("0");
else
printf("%d",n-k);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221335/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221335/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main() {
int N,K;
scanf("%d %d",&N,&K);
if (K == 1) printf("0\n");
else {
printf("%d\n",N-K);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221379/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221379/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>//必須
int compare_int(const void *a, const void *b)//事前に入れる
{
return *(int*)a - *(int*)b;
}
int main(void){
// Your code here!
int N,K;
scanf("%d %d",&N,&K);
if(K==1){printf("0\n");
}else{
printf("%d",N-K);}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221421/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221421/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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, comp;
int x[1000], y[1000];
scanf("%d", &a);
for(int i = 0; i < a; i++){
scanf("%d", &x[i]);
}
scanf("%d", &b);
for(int i = 0; i < b; i++){
scanf("%d", &y[i]);
}
if (a>b) comp = b;
else comp = a;
for (int i = 0; i < comp; i++){
i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221465/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221465/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#define N 101
int main()
{
int i,j,n,count=0,v,c,c1,v1;
int G[N][N],col[N],d[N],pi[N],mincost,i2;
for(i = 0; i < N; i++){
for(j = 0; j < N; j++)
G[i][j] = -1;
}
scanf("%d",&n);
for(i = 0; i < n; i++){
scanf("%d%d",&v,&c);
for(j = 0; j < c; j++){
scan... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221522/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221522/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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>
void solve(long **G, int n, int u, long *d, int t) {
int i;
char *flag;
flag = (char*)malloc(sizeof(char) * n);
for (i = 0; i < n; i++) {
if(G[u][i] != -1 && (d[i] == -1 || d[i] > t+G[u][i])) {
flag[i] = 1;
d[i] = t+G[u][i];
}
else flag[i] = 0;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221580/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221580/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#define N 100
#define INF 10000000
#define WHITE 0
#define GRAY 1
#define BLACK 2
int n, A[N][N];
void dijkstra();
int main(){
int i, j, u, t, v, c;
scanf("%d",&n);
for(i=0; i<n; i++){
for(j=0; j<n; j++){
A[i][j] = INF;
}
}
for(i=0; i<n; i++){
scanf("%d%d",&u,&t);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221638/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221638/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 INF 1000001
#define WHITE 0
#define BLACK 1
void dijkstra();
int c[100][100],d[100],color[100],pi[100],n;
int main(void){
int i,j,u,k,v;
scanf("%d",&n);
for(i=0;i<n;i++){
for(j=0;j<n;j++){
c[i][j]=-1;
}
}
for(i=0;i<n;i++){
scanf("%d",&u);
scanf("%d",&k);
for(j=0;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221724/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221724/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 101
#define INF 10000000
#define NIL -1
#define WHITE 0
#define BLACK 1
int n;
int G[MAX][MAX];
void prim(void);
int main(){
int i, j, k, u, v, w;
scanf("%d", &n);
for(i = 0; i < n; i++){
for(j = 0; j < n; j++){
G[i][j] = INF;
}
}
for(i = 0; i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221768/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221768/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 INFINITY (1<<21)
#define MAX 100
#define WHITE 0
#define GRAY 1
#define BLACK 2
int n,M[MAX][MAX];
void dijkstra(){
int minv,i,j,v,u;
int d[MAX],color[MAX];
for(i=0;i<n;i++){
d[i]=INFINITY;
color[i]=WHITE;
}
d[0]=0;
color[0]=GRAY;
while (1) {
minv=INFINITY;
u=-... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221825/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221825/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@n = dso_local global i32 0... |
#include <stdio.h>
#include <string.h>
#define INF 10000001
#define SIZE 101
#define WHITE 0
#define GRAY 1
#define BLACK 2
void dijkstra(int s, int num,int matrix[SIZE][SIZE]){
int d[SIZE],color[SIZE];
int min,u;
for(int i=0;i<num;i++){
d[i]=INF;
color[i]=WHITE;
}
d[s] = 0;
color... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221869/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221869/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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<limits.h>
#define N 100
#define FIRST 0
#define SECOUND 1
#define THIRD 2
int n,M[N][N];
void dijkstra(){
int minv;
int d[N],p[N];
int i;
for(i=0;i<n;i++){
d[i]=INT_MAX;
p[i]=FIRST;
}
d[0]=0;
p[0]=SECOUND;
while(1){
minv=INT... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221911/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221911/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@n = dso_local global i32 0... |
#include<stdio.h>
#define N 100
#define INF 99999999
#define NIL 0;
void dijkstra(int n,int w[N][N],int r){
int v,i,u,mincost;
int d[n];
int pi[n];
char color[n];
for(v=0;v<n;v++){
d[v]=INF;
pi[v]=NIL;
color[v]='W';
}
d[r]=0;
while(1){
mincost=INF;
for(i=0;i<n;i++){
if (colo... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221955/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221955/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 100000000;
int adj[1000][1000];
int cost[100];
int check[100];
int mst[100];
int v, count;
void input(int n) {
int node, k, v, c;
for (int i = 0; i < n; i++) {
scanf("%d%d", &node, &k);
for (int j = 0; j < k; j++) {
scanf("%d%d", &v, &c);
adj[node][v] = c;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221999/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221999/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#define MAX 100
#define INFTY 5000000
#define WHITE 0
#define GRAY 1
#define BLACK 2
int n, M[MAX][MAX];
void dijkstra()
{
int minv;
int d[MAX], color[MAX];
int i, v;
for (i=0; i<n; i++){
d[i] = INFTY;
color[i] = WHITE;
}
d[0] = 0;
color[0] = GRAY;
wh... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222040/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222040/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@n = dso_local global i32 0... |
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
#include <stdbool.h>
typedef struct {
unsigned int predecessor; // initial vertex, tail
unsigned int successor; // terminal vertex, head
unsigned int cost;
} Edge;
typedef struct {
unsigned int id;
unsigned int outDegree;
Edge* edges;
unsig... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222084/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222084/source.c"
target datalayout = "e-m:e-p270: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.Graph = type { ptr,... |
#include <stdio.h>
int main(){
int n, u, k, v, c, list[100][100], s[100], d[100], p[100];
int i, j, min, min_v;
for (i = 0; i < 100; i++) {
d[i] = 999999;
s[i] = -1;
for (j = 0; j < 100; j++) {
list[i][j] = 999999;
}
}
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%d %d", &u... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222134/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222134/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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>
static const int MAX = 500;
static const int INFTY = (1<<21);
int main(){
int n,i,j;
int M[MAX][MAX];
int k,c,u,v;
int minv;
int d[MAX];
int vis[MAX];
scanf("%d", &n);
for ( i = 0; i< n; i++ ){
for ( j = 0; j < n; j++ ){
M[i][j] = INFTY;
}
}
for ( i = 0; i < n;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222178/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222178/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#define MAX 100
#define INF 5000000
#define WHITE 0
#define GRAY 1
#define BLACK 2
int c[MAX];
int M[MAX][MAX];
int d[MAX];
int p[MAX];
int n;
void dijkstra(int);
void dijkstraInit();
int main(){
int i,j;
int k;
int c;
int u;
int v;
scanf("%d",&n);
for(i=0;i<n;i++){
for(j=0;j<... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222220/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222220/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 1000000
int n,Matrix[100][100],distance[100];
char color[100];
void Dijkstra_init(){
int i;
for(i=0;i<n;i++){
distance[i]=MAX;
color[i]='w';
}
distance[0]=0;
color[0]='g';
}
void Dijkstra_print(){
int vertex=0;
while(vertex<n){
if(distance[vertex]!=MAX)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222264/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222264/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@n = dso_local global i32 0... |
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char **argv)
{
int n, i, j, x, y, tmp, nn, t = 1;
int **array;
while(1){
scanf("%d", &n);
nn = n*n;
if(n == 0){
break;
}
array = (int **)calloc(n, sizeof(int));
for(i = 0; i < n; i++){
array[i] = (int *)calloc(n, sizeof(int));
}
x ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222307/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222307/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
int main(){
char S[11],T[11],U[11];
int A,B;
scanf("%s%s\n",&S,&T);
scanf("%d%d\n",&A,&B);
scanf("%s\n",&U);
if(strcmp(U,S) == 0 ){
printf("%d %d\n",A-1,B);
}else if(strcmp(U,T) == 0 ){
printf("%d %d\n",A,B-1);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222358/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222358/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
char s[12],t[12],u[12];
int a,b,i;
scanf("%s %s\n",&s,&t );
scanf("%d %d\n",&a,&b );
scanf("%s\n",&u );
for(i=0;i<11;i++){
if(s[i] != u[i]){
b--;
break;
}
if(t[i] != u[i]){
a--;
break;
}
}
printf("%d %d\n",a,b );
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222422/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222422/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<string.h>
#include<stdio.h>
int main(void){
int A,B;
char S[11],T[11],U[11];
scanf("%s %s",&S,&T);
scanf("%d %d",&A,&B);
scanf("%s",&U);
if(strcmp(S,U)==0){
printf("%d %d",A-1,B);
}
else{
printf("%d %d",A,B-1);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222466/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222466/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
int main() {
int i, j;
char x[10], y[10], z[10];
scanf("%s %s", x, y);
scanf("%d %d", &i, &j);
scanf("%s", z);
if (strcmp(x,z) == 0) {
i = i - 1;
printf("%d %d", i, j);
}
else{
j = j - 1;
printf("%d %d",i,j);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222516/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222516/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
long long int n,i,j,k;
scanf("%I64d %I64d %I64d", &n,&i,&j);
char a[n];
scanf("%s",a);
if (a[i-1]==a[j-1])
{
printf("0");
}
else
{
printf("1");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22256/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22256/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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<assert.h>
#include<stdlib.h>
#include<string.h>
int main(void)
{
char S[10], T[10], U[10];
int A, B;
scanf("%s %s", S, T);
scanf("%d %d", &A, &B);
scanf("%s", U);
assert((1 <= A)&&(A <= 10));
assert((1 <= B)&&(B <= 10));
assert(strcmp(S, U)||strcmp(T, U));
if(strcmp(S, U))
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222602/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222602/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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[21],T[21],U[21];
scanf("%s %s",S,T);
int s,t;
scanf("%d %d %s",&s,&t,U);
if(strcmp(U,S)==0)
printf("%d %d",s-1,t);
else
printf("%d %d",s,t-1);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222660/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222660/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main() {
char s[10], t[10];
int a, b;
char u[10];
scanf("%s %s", s, t);
scanf("%d %d", &a, &b);
scanf("%s", u);
if(strcmp(u, s) == 0) {
a--;
}
if(strcmp(u, t) == 0) {
b--;
}
printf("%d %d", a, b);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222710/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222710/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 i;
int N;
int sum;
while(scanf("%d",&N),N!=0){
sum=0;
for(i=1;i<sqrt(N);i++){
if(N%i==0){
if(i*i==N) sum+=i;
else sum+=i+N/i;
}
}
sum-=N;
if(sum==N) puts("perfect number");
else if(sum<N) puts("deficient number");
els... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222761/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222761/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 t[n][n];
int a[n], flags[n];
for(int i=0; i<n; i++){
for(int j=0; j<n-1; j++){
scanf("%d", &t[i][j]);
t[i][j]--;
}
a[i] = 0;
flags[i] = 0;
}
int flag = 0, day = 0;
while(1)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222833/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222833/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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);
while(n>=1001){
n=n-1000;
}
printf("%d",1000-n);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222877/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222877/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/* بِسْمِ اللهِ الرَّحْمٰنِ الرَّحِيْمِ */
/* رَّبِّ زِدْنِى عِلْمًا */
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
#include <ctype.h>
#define OUTPUT freopen("myfile.txt","w",stdout);
#define INPUT freopen("input.txt","r",stdin);
#define pi acos(-1.0)
#define MAX 100005
#define MOD ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22292/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22292/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 n;
scanf("%d", &n);
printf("%d\n", 1000 - (n % 1000 ? n % 1000 : 1000));
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222963/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222963/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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,mod,res;
scanf("%d",&N);
mod = N % 1000;
if(mod==0){
printf("0\n");
}
else{
res = 1000 - mod;
printf("%d\n",res);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223005/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223005/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 main(){
int n,c=0;
scanf("%d",&n);
if(n%1000==0){
c=0;
}
else{
while(n%1000!=0){
n++;
c++;
}
}
printf("%d",c);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223049/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223049/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 ;
int b = N/1000;
if(b*1000 < N){
b++;
a = b*1000 - N;
}else
a = N - b*1000 ;
printf("%d\n",a);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223092/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223092/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int n,ans=1000;
scanf("%d",&n);
n=n%1000;
ans=(1000-n)%1000;
printf("%d\n",ans);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223135/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223135/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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);
n %= 1000;
if(n!=0) printf("%d\n",1000-n);
else printf("0\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223179/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223179/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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,a;
scanf("%d",&n);
while(1)
{
if(n<=1000)
{
break;
}
n-=1000;
}
a=1000-n;
printf("%d\n",a);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223221/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223221/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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);
if( n % 1000 == 0 ) printf("0\n");//return 0;
else printf("%d\n",1000-n%1000);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223265/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223265/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#pragma warning(disable:4996)
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define _USE_MATH_DEFINES
#include <math.h>
#include <float.h>
#pragma region 定義
typedef long long ll;
typedef unsigned long long ull;
#define _itoa(A,N) sprintf(A, "%d", N);
int i_dsort(const void* a, const void* b);
int i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223308/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223308/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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;
scanf("%d",&a);
if(a%1000!=0)printf("%d",1000-a%1000);
else printf(" 0");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223351/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223351/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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, change;
scanf("%d", &N);
if (N % 1000 == 0)
change = 0;
else
change = 1000 - N % 1000;
printf("%d", change);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223401/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223401/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
#include<stdbool.h>
#include<assert.h>
#include<ctype.h>
typedef long long ll;
typedef long double ld;
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k))
#define rrep(i,l,r)for(ll i=(l);i>=(r);i--)
#define IN... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223445/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223445/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 = 1000 - n % 1000;
if (n == 1000)
n = 0;
printf("%d\n", n);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223496/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223496/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#define S1 char
#define S4 int
#define VD void
/* ---------- ????????§??????????????????????¨???? ---------- */
/* ---------- ?¨?????????? ---------- */
/* ???s1_s_leftKeys???????´???????????????§????????????????????????????????£??\????????? */
/* ??????s1_s_leftKey... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223539/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223539/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<string.h>
#include<stdio.h>
// Don't get too close it's where my demons hide, it's where my demons hide
int main()
{
long long int n;scanf("%lli",&n);
long long int arr[n],i,min_odd = 1000000007,min_even=-1,sum=0;
for(i=0;i<n;i++)
{
long long int num;
scanf("%lli",&num);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22359/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22359/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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;
int main(void)
{
int ans;
int c[6] = {1,5,10,50,100,500};
int i;
ans = 0;
for( i=0; i<6; i++ ) {
scanf( "%d", &n );
ans += c[i] * n;
}
if ( ans / 1000 > 0 ) {
printf( "1\n" );
}
else {
printf( "0\n" );
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223632/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223632/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
int a,b,c,d,e,f,ans;
scanf("%d %d %d %d %d %d",&a,&b,&c,&d,&e,&f);
ans=(a+(b*5)+(c*10)+(d*50)+(e*100)+(f*500))/1000;
if(ans>=1){
printf("1\n");
}
else if(1>ans){
printf("0\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223690/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223690/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int p, c, m;
scanf("%d %d %d", &p, &c, &m);
printf("%d\n", p + c + m);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223740/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223740/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int p, m, c, a;
scanf("%d" "%d" "%d", &p, &m, &c);
a = p + m + c;
printf("%d\n", a);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223784/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223784/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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>
int main(){
int x1, y1, x2, y2, r1, r2, l, ans;
scanf("%d%d%d", &x1, &y1, &r1);
scanf("%d%d%d", &x2, &y2, &r2);
l=sqrt(pow(x2-x1,2)+pow(y2-y1,2));
if(l>r1+r2)ans=4;
else if(l==r1+r2)ans=3;
else if(l>abs(r1-r2))ans=2;
else if(l==abs(r1... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223827/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223827/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
int main(){
long long int n, k, i, j, p, q, ans=0;
scanf("%lld%lld", &n, &k);
// k=0
if(k==0){
printf("%lld\n", n*n);
}
else{
// k>0
// a<b
for(i=n; i>k; i--){
ans+=i-k;
}
// printf(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223870/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223870/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 b,r,g,c,s,t;
int ans;
while(1){
ans=100;
scanf("%d %d %d %d %d %d",&b,&r,&g,&c,&s,&t);
if(t==0)return 0;
t-=b*5+r*3+s;
ans-=t*3;
ans+=(b*5+r*3)*13+g*7+c*2+b*15+r*15;
printf("%d\n",ans);
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223964/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223964/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 amount,coins;
scanf("%d",&amount);
while(amount!=0){
coins=0;
amount=1000-amount;
coins+=amount/500;
coins+=(amount%500)/100;
coins+=(amount%100)/50;
coins+=(amount%50)/10;
coins+=(amount%10)/5;
coins+=amount%5;
printf("%d\n",coins);
scanf("%d",&amount);
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224006/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224006/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 w1, h1, w2, h2;
scanf("%d%d%d%d", &w1, &h1, &w2, &h2);
printf("%d", (w1+2)*(h1+2)-(w2+2)+(w2+2)*(h2+1)-w1*h1-w2*h2);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22405/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22405/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
int main(void){
int i,x,rst;
int coin[6]={500,100,50,10,5,1};
while(1){
scanf("%d",&x);
if(!x) break;
x = 1000 - x;
for(i=rst=0;i<6;i++){
rst += x / coin[i];
x %= coin[i];
}
printf("%d\n",rst);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224093/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224093/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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,i,c,s;
while(scanf("%d",&x)){
s=0;
if(x==0)break;
x=1000-x;
for(i=0;i<3;i++){
c=x%10;
s+=c;
if(c>4)s-=4;
x/=10;
}
printf("%d\n",s);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224150/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224150/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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,ab,bc,ac;
scanf("%d%d%d",&a,&b,&c);
ab=a+b;
ac=a+c;
bc=b+c;
if(ab==c || ac==b || bc==a)printf("Yes");
else printf("No");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224194/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224194/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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) {
char buf[16];
char *p;
int bag[3];
int i;
int max=0;
int maxcnt = 1;
int childa = 0,childb = 0;
p = fgets(buf, 16, stdin);
sscanf(buf, "%d %d %d", &bag[0], &bag[1], &bag[2]);
for(i=0;i<3;i++){
if(max < bag[i]) {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224237/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224237/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = external local_unn... |
#include<stdio.h>
int main()
{
int a,b,c,max,min1,min2;
scanf("%d %d %d",&a,&b,&c);
if(a>=b&&a>=c)
{
max=a;
min1=b;
min2=c;
}
if(b>=a&&b>=c)
{
max=b;
min1=a;
min2=c;
}
if(c>=a&&c>=b)
{
max=c;
min1=b;
min2=a;
}
if(max==min1+min2)
{
printf("Yes\n");
}
else
{
printf("No\n");
}
retur... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224280/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224280/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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;
char str[16];
fgets(str,16,stdin);
sscanf(str,"%d%d%d",&a,&b,&c);
if( ((a+b) == c) || ((b+c) == a) || ((c+a) == b) )
{
printf("Yes\n");
}
else
{
printf("No\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224323/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224323/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = external local_unn... |
#include<stdio.h>
int main(){
int a,b,c;
scanf("%d %d %d", &a, &b, &c);
if(a==b+c || b==c+a || c==a+b)printf("Yes\n");
else printf("No\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224367/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224367/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 a,b,c;
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&c);
if(a+b==c || b+c== a || c+a ==b)
printf("Yes");
else
printf("No");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224417/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224417/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void) {
int a, b, c;
scanf("%d%d%d", &a, &b, &c);
if (a == b+c || b == c+a || c == a+b) printf("Yes\n");
else printf("No\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224460/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224460/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void) {
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if (a + b + c == a * 2 || a + b + c == b * 2 || a + b + c == c * 2) printf("Yes\n"); else printf ("No\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224503/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224503/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 ll long long
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
char s[100010],t[100010];
int ss[100010],tt[100010];
int main(){
scanf("%s%s",s,t);
int sn=strlen(s),tn=strlen(t);
//s[i]=[0,i)の和(sのindexは0-based)
rep(i,0,sn)ss[i+1]=ss[i]+(s[i]=='A'?2:1);
rep... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224547/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224547/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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<c)&&(b>c)){
printf("Yes");
}else if((a>c)&&(b<c)){
printf("Yes");
}else{
printf("No");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224604/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224604/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if(a<b){
if(a<=c){
if(c<=b) printf("Yes\n");
else printf("No\n");
}
else printf("No\n");
}
else{
if(c<=a){
if(b<=c) printf("Yes\n");
else printf("No\n");
}
else printf("No\n");
}
return 0;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224648/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224648/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int a,b,c;
if(scanf("%d %d %d",&a,&b,&c)!=3)return 1;
if((a<c && c<b)||(b<c && c<a)){
printf("Yes\n");
}else{
printf("No\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224699/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224699/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
int num = 0;
if(c > a) num++;
if(c > b) num++;
if(num == 1) printf("Yes");
else printf("No");
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224741/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224741/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#define N_MAX 131072
#define A(I) (edge[(I)]/N_MAX)
#define B(I) (edge[(I)]%N_MAX)
void QSort(int left,int right);
char* ans(void);
long edge[200001];
int main(void){
printf("%s",ans());
return 0;
}
char* ans(void){
int N,M,wait_v[100001]={},index[100001],v4[2],temp,temp2,j,num_v4=0;
scanf(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224785/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224785/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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(void)
{
int x1;
int x2;
int y1;
int y2;
int z1;
int z2;
int kaisu;
scanf("%d", &kaisu);
while(kaisu != 0){
scanf("%d %d %d %d %d %d", &x1, &y1, &z1, &x2, &y2, &z2);
printf("%.12f\n",sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2)+(z1-z2)*(z1-z2)));
kaisu--;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224835/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224835/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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() {
static int kk[5];
int n, i, j, k;
long long ans;
scanf("%d", &n);
while (n--) {
static char s[11];
char c;
scanf("%s", s);
c = s[0];
if (c == 'M')
kk[0]++;
else if (c == 'A')
kk[1]++;
else if (c == 'R')
kk[2]++;
else if (c == 'C')
kk[3]++;
else if (c... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224879/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224879/source.c"
target datalayout = "e-m:e-p270: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.kk.0 = internal unnam... |
#include <stdio.h>
#include <string.h>
int main()
{
long a[5] = {0,0,0,0,0};
int N;
scanf("%d",&N);
int k;
for(k = 0; k < N; k++)
{
char s[10];
scanf("%s",s);
if(s[0] == 'M') a[0]++;
if(s[0] == 'A') a[1]++;
if(s[0] == 'R') a[2]++;
if(s[0] == 'C') a[3]++;
if(s[0] == 'H') a[4]++;
}
long O = 0... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224921/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224921/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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);
char s[11];
int i, j, k;
int c[5] = {};
for (i = 0; i < n; i++) {
scanf("%s", s);
if (s[0] == 'M')
c[0]++;
else if (s[0] == 'A')
c[1]++;
else if (s[0] == 'R')
c[2]+... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224965/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224965/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#define ll long long
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define INF ((1LL<<62)-(1LL<<31))
#define MOD 1000000007
typedef struct edge{ll s,g,c;}E;
int edgehikaku(const void*a,const void*b){
E*p=(E*)a,*q=(E*)b;
if((*p).s<(*q).s)return -1;
if((*p).s>(*q).s)return 1;
if((... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225014/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225014/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.edge = type { i64, ... |
#include<stdio.h>
int main()
{
int a, b, c, d, e;
while(1)
{
scanf("%d %d",&a, &b);
if (a==0&&b==0) break;
c=1;
e=1;
for (d=0;d<a;d++)
{
if (d%2==1) while (e<=b)
{
if (e%2==0) printf("#");
else printf(".");
e++;
}
e=1;
if (d%2==0) while(c<=b)
{
if (c%2==0) printf(".");
else pri... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225058/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225058/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int h, w;
int i, j;
while (scanf("%d %d", &h, &w) != EOF){
if (h == 0 && w == 0) break;
for (i = 1; i <= h; i++){
for (j = 1; j <= w; j++){
if ((i + j) % 2 == 0){
printf("#");
}
else{
printf(".");
}
}
printf("\n");
}
printf("\n");
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225100/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225100/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main() {
int h , w , i , j;
char out;
while(1) {
scanf("%d %d",&h,&w);
if ( h == 0 && w == 0 ) break;
out = '#';
for ( i = 0; i < h; i++ ) {
if ( i % 2 == 0 ) out = '.';
else out = '#';
for ( j = 0; j < w; j++ ) {
if ( out == '#' ) out = '.';
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225144/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225144/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 num1,num2;
int i,j;
scanf("%d %d",&num1,&num2);
while(num1 + num2 != 0){
for(i = 0;i < num1;i++){
for(j = 0;j < num2;j++){
if(i%2 == j%2) printf("#");
else printf(".");
}
printf("\n");
}
printf("\n");
scanf("%d %d",&num1,&num2);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225188/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225188/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int h,w, i, j;
while (1) {
//printf("テヲツ閉エテヲツ閉ーテッツシツ? ");
scanf("%d",&h);
//printf("テヲツ閉エテヲツ閉ーテッツシツ? ");
scanf("%d",&w);
if(h == 0 && w == 0)
return 0;
for(i = 1; i <= h; i++)
{
switch( i % 2)
{
case(1):
for( j = 1; j <=... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225230/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225230/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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;
int b;
int c;
int d;
while (1) {
scanf("%d %d", &a, &b);
if ((a == 0) && (b == 0)) {
break;
}
else {
for (c = 1; c <= a; c++) {
for (d = 1; d <= b; d++) {
if (c % 2 == 1) {
if (d % 2 == 1) {
printf("#");
}
else if (d % 2 ==... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225274/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225274/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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.