Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
int main(void){
int i, ANS=0, CNT=0;
char S[15];
scanf("%s", S);
for(i=0; S[i]!='\0'; i++){
if(S[i]=='A'||S[i]=='C'||S[i]=='G'||S[i]=='T'){
CNT++;
if(CNT > ANS) ANS = CNT;
}
else... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210769/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210769/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 NUMBER 10
int main()
{
char in[NUMBER];
int i, temp, len = 0;
scanf("%s", in);
for (i = 0; in[i] != '\0'; ++i)
{
if (in[i] == 'A' || in[i] == 'T' || in[i] == 'C' || in[i] == 'G') {
len++;
if (len > temp) temp = len;
}
else if (len != 0)
len = 0;
}
printf(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210811/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210811/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
char s[10];
int i,moji=0,sum=0;
scanf("%s", &s);
for(i=0;i<10;i++){
if(s[i]=='A' || s[i]=='C' || s[i]=='G' || s[i]=='T')
moji++;
else
moji=0;
if(moji>sum)
sum=moji;
}
printf("%d", sum);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210855/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210855/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
int main(void)
{
char s[11];
scanf("%s",s);
int i,j=0,a=0,n=strlen(s);
for(i=0;i<n;i++){
a=0;
while(s[i]=='A'||s[i]=='C'||s[i]=='G'||s[i]=='T'){
a++;
i++;
}
if (j<a) j=a;
}
pr... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210899/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210899/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 actg_flag(char);
int main(void) {
char d[10];
scanf("%s", d);
int i;
int max=0;
int count=0;
for(i=0;i<10;i++){
if (d[i]=="\0") {
printf("%d", max);
return 0;
}
if (actg_flag(d[i]) == 1){
count++;
if (max < count){max = count;}
}
else{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210941/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210941/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 check_atcg(char c)
{
if(c == 'A' || c == 'T' || c == 'C' || c == 'G') {
return 1;
}
return 0;
}
int main(void)
{
int i = 0,len = 0,maxlen = 0;
char S[10];
scanf("%s",S);
for(i = 0;i < strlen(S);i++) {
//printf("%c\n",S[i]);
while(check_atcg(S[i])... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_210985/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_210985/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
int main(void){
char S[10];
int max=0,maxi=-1,maxj=-1;
scanf("%s",S);
for(int i=0;i<strlen(S);i++){
for(int j=i;j<strlen(S);j++){
int count=0;
for(int k=i;k<=j;k++){
if(S[k]=='A'||S[k]=='C'||S[k]=='G'||S[k]=='T') count++;
}
if(count==j-i+1){
if(max<count){... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211041/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211041/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <time.h>
typedef long long llint;
typedef long double ldouble;
// 大小
int compare( const void *a, const void *b){return *(llint *)b - *(llint *)a;}
typedef struct{
llint aa;
llint bb;
}frequent;
// 小大
int cmp( const void *p, const ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211092/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211092/source.c"
target datalayout = "e-m:e-p270: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.frequent = type { i... |
#include <stdio.h>
#include <math.h>
int main(void)
{
//変数の宣言
int n;
static int v[100010];
static int even[100010];
static int odd[100010];
int i;
int evenmax;
int evennumformax;
int oddmax,oddnumformax;
int ans;
//データの読み込み
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&v[i]);
}
for(i=0;i<100000;i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211135/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211135/source.c"
target datalayout = "e-m:e-p270: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.v = internal global [... |
#include <stdio.h>
int main(void) {
const char okList[9][9]={
/* A B C D E F G H I */
/* A */ {0,1,0,1,0,0,0,0,0},
/* B */ {1,0,1,0,1,0,0,0,0},
/* C */ {0,1,0,0,0,1,0,0,0},
/* D */ {1,0,0,0,1,0,1,0,0},
/* E */ {0,1,0,1,0,1,0,1,0},
/* F */ {0,0,1,0,1,0,0,0,1},
/* G */ {0,0,0,1,0,0,0,1,0},
/*... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211186/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211186/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.okList = priv... |
#include <stdio.h>
int main(void)
{
int a,b;
scanf("%d%d",&a,&b);
if((a+1)/2>=b){
printf("YES");
}else{
printf("NO");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211229/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211229/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(int argc, const char * argv[]) {
int N,K;
scanf("%d %d",&N,&K);
if((N + 1) / 2 >= K){
printf("YES");
}else{
printf("NO");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211272/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211272/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <math.h>
int main()
{ int a,b,x,y,i,j,n,m,k;
scanf("%d%d",&n,&k);
if(n>=2*k||(n%2==1&&n+1>=2*k)){
printf("YES");
}else{
printf("NO");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211315/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211315/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
int n,i,j,k;
int a[5000],b[5000],c[5000],d[5000],sum[101],x[101];
scanf("%d",&n);
k=n*(n-1)/2;
for(i=0;i<k;i++){
scanf("%d %d %d %d",&a[i],&b[i],&c[i],&d[i]);
}
for(i=1;i<=n;i++){
sum[i]=0;
x[i]=1;
}
for(i=0;i<k;i++){
if(c[i]>d[i]){
sum[a[i]]+=3;
}
else if(c[i]<... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211373/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211373/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
typedef long long ll;
typedef char keytype;
int gcd(int a, int b){ return (a % b) ? gcd(b, a % b) : b;}
int lcm(int a, int b){ return (a / gcd(a, b)) * b;}
/* a[0], ..., a[n-1] の数の最大公約数 */
int ngcd(int n, int a[])
{
int i, d;
d = a[0];
for (i = ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211416/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211416/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@inf = dso_local local_unna... |
#include<stdio.h>
int main(){
long long A,B,C,K;
scanf("%lld%lld%lld%lld",&A,&B,&C,&K);
if(K%2==0)printf("%lld\n",A-B);
else printf("%lld\n",B-A);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211474/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211474/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
struct apple
{
int x,y;
}edge[100010];
int k,f[100010];
long long cnt;
void push_back(int x,int y)
{
edge[++k].x=x;
edge[k].y=y;
}
int find(int x)
{
if(f[x]==x)
return x;
f[x]=find(f[x]);
return f[x];
}
void unioned(int x,int y)
{
int ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211568/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211568/source.c"
target datalayout = "e-m:e-p270: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.apple = type { i32,... |
#include <stdio.h>
void ft_swap(long *a, long *b)
{
long tmp;
tmp = *a;
*a = *b;
*b = tmp;
}
void a_qsort(long *tab, long left, long right)
{
long Left = left;
long Right = right;
long pivot = tab[(left + right) / 2];
while (1)
{
while (tab[Left] < pivot)
Left++;
while (tab[Right] > pivot)
Right... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211610/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211610/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdbool.h>
int main(void){
int N,x,i,j,tmp;
//input
scanf("%d %d",&N,&x);
int a[N];
for(i=0; i<N; i++){
scanf("%d",&a[i]);
}
//sorting
for(i=0; i<N; i++){
for(j=i+1; j<N; j++){
if(a[i]>a[j]){
tmp=a[i];
a[i]=a[j];
a[j]=tmp;
}
}
}
//baramaki
int ans=0;
i=... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211661/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211661/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 M 500000
#define P 10
#define NIL NULL
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
Node root;
void insert(int);
void inorder(Node);
void preorder(Node);
int main() {
int m,k,i;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211719/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211719/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node = type { ptr, ... |
#include <stdio.h>
#include <stdlib.h>
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
#define NIL NULL
Node root;
Node treeMinimum(Node x){
while(x->left != NIL){
x= x->left;}
return x;
}
Node treeMaximum(Node x){
while(x->right !... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211762/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211762/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node = type { ptr, ... |
#include<stdio.h>
#define MAX 500001
#define NIL -1
typedef struct node{
int left;
int right;
int key;
int p;
int leftid;
int rightid;
}Node;
Node node[MAX];
int root=NIL;
void inorder(int);
void preorder(int);
void addTree(int n,int num){
int tmp;
//rootが空の場合
if(node[n].key==root){
root=n;
n... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211805/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211805/source.c"
target datalayout = "e-m:e-p270: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, ... |
// Bibary search tree
#include <stdio.h>
#include <string.h>
#define N 500001
typedef struct node {
int key;
struct node* left;
struct node* right;
} NODE;
void insert(NODE*, NODE*);
void printInorder(NODE*);
void printPreorder(NODE*);
int main() {
int i, j;
char order[10];
int m, key;
NODE ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211849/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211849/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node = type { i32, ... |
#include <stdio.h>
#include <stdlib.h>
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
#define NIL NULL
Node root;
Node treeMinimum(Node x){
while(x->left != NIL){
x=x->left;
}
return x;
}
Node treeMaximum(Node x){
while(x->right !=... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_211906/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_211906/source.c"
target datalayout = "e-m:e-p270: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(void)
{
int t;
int n;
scanf("%d", &t);
while (t--)
{
int a[100];
int ans = 0;
int first = 0;
int last = 0;
scanf("%d", &n);
for (int i = 0; i < n; ++i)
{
scanf("%d", &a[i]);
if (a[i] != i + 1)
{
ans = 1;
}
if (a[i] == 1)
{
first = i;
}
e... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21195/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21195/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
#include<stdlib.h>
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
#define NIL NULL
Node root;
Node treeMinimum(Node x){
while(x->left!=NIL){
x=x->left;
}
return x;
}
Node treeSearch(Node u, int k){
if(u==NIL || k... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212013/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212013/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node = type { ptr, ... |
#include<stdio.h>
#include<stdlib.h>
#define NIL NULL
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
Node root;
Node treeMinimum(Node);
Node treeSearch(Node, int);
Node treeSuccessor(Node);
void treeDelete(Node);
void insert(int);
void inorde... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212057/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212057/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node = type { ptr, ... |
#include<stdio.h>
int main(){
int n,j,x,sum;
double i;
scanf("%d",&n);
for(j=0;j<n;j++){
scanf("%d",&x);
for(sum=1;;sum++){
for(i=1;i<=sum;i++){
if(i*100/sum==x)
goto c;
}
}
c:printf("%d\n",sum);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21210/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21210/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
typedef struct{
int k, l, r;
}node;
node nodes[500001];
void insert(int index, int z)
{
int x = 0, y;
nodes[index].k = z;
nodes[index].l = -1;
nodes[index].r = -1;
if(index == 0)
return ;
while(x >= 0){
y = x;
if(z < nodes[x].k){
x... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212150/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212150/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node = type { i32, ... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
struct node{
struct node *left;
struct node *right;
struct node *parent;
int key;
};
struct node *T;
void Insert(int);
void Inorder(struct node*);
void Preorder(struct node*);
void Free(struct node*);
int main(){
int n, i, key;
char func[6];
T = (str... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212194/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212194/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node = type { ptr, ... |
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
struct Node{
int key;
struct Node *right,*left,*parent;
};
struct Node *root,*NIL;
void insert(int k)
{
struct Node *y=NIL;
struct Node *x=root;
struct Node *z;
z=(struct Node*)malloc(sizeof(struct Node));
z->key=k;
z->left=NIL;
z->right=NIL;
whil... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212237/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212237/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.Node = type { i32, ... |
#include<stdio.h>
#include<stdlib.h>
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
#define NIL NULL
Node root;
Node treeMinimum(Node x){
}
Node treeMaximum(Node x){
}
Node treeSearch(Node u, int k){
}
Node treeSuccessor(Node x){
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212288/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212288/source.c"
target datalayout = "e-m:e-p270: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, *right;
int key;
} node;
node *root = NULL;
void insert(int key) {
node *new, **x;
x = &root;
while(*x != NULL) {
if(key < (*x)->key)
x = &(*x)->left;
else if(key > (*x)->key)
x = &(*x)->right;
}
new... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212330/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212330/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct._node = type { ptr,... |
#include<stdio.h>
#include<string.h>
#define MAX 500000
typedef struct{
int key,le,ri;
}Node;
Node tree[MAX+1];
int size;
void insert(int);
void inorder(int);
void preorder(int);
int main(int argc, char *argv[]){
int n, i, first;
first = 1;
scanf("%d", &n);
for(i=0;i<=n;i++)
tree[i].key = tree[i].l... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212381/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212381/source.c"
target datalayout = "e-m:e-p270: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;
void insert(int k){
Node y = NIL;
Node x = root;
Node z;
z = malloc(sizeof(struct node));
z->key = k;
z->left = NIL;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212431/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212431/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node = type { ptr, ... |
#include<stdio.h>
#include<stdlib.h>
#define NIL NULL
struct node{
struct node *right;
struct node *left;
struct node *parent;
int id;
};
typedef struct node * Node;
Node root;
void insert(int k){//入力したい値
Node x = root;
Node parent = NIL;
Node z;//新しいノード
z = malloc(sizeof(struct node));//初期化
z->id ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212475/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212475/source.c"
target datalayout = "e-m:e-p270: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 treeMaximam(Node x){
}
Node treeMinimun(Node x){
}
Node treeSearch(Node u,int k){
}
Node treeDelete(Node z){
}
void i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212525/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212525/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node = type { ptr, ... |
#include<stdio.h>
#include<stdlib.h>
#define NIL NULL
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
}node;
typedef struct node *Node;
Node root;
Node treeMinimum(Node x){
while(x -> left != NIL)
x = x -> left;
return x;
}
Node treeMaximum(Node x){
while(x -> r... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212576/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212576/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node = type { ptr, ... |
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#define NIL NULL
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
Node root;
Node mini(Node x){
if(x->left==NIL){
return x;
}
return mini(x->left);
}
Node max(Node x){
if(x->... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212619/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212619/source.c"
target datalayout = "e-m:e-p270: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<math.h>
#include<string.h>
typedef long double LD;
typedef long long ll;
#define int ll
#define pb push_back
#define mp make_pair
#define REP(i,n) for (int i = 0; i < n; i++)
#define FOR(i,a,b) for (int i = a; i < b; i++)
#define REPD(i,n) for (int i = n-1; i >= 0; i--)
#de... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21267/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21267/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 <stdbool.h>
#define clr(ar) memset(ar, 0, sizeof(ar))
#define read() freopen("lol.txt", "r", stdin)
const char* cmp = "CODEFORCES";
int n, m;
char str[1010], lol[1010];
int main(){
int i, j, k, flag;
while (scanf("%s", str) != EOF){
flag = 0;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21272/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21272/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
#include<stdlib.h>
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
#define NIL NULL
Node root;
Node treeMaximum(Node x){
while(x->right!=NIL)x=x->right;
return x;
}
Node treeMinimum(Node x){
while(x->left!=NIL)x=x->left... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212763/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212763/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node = type { ptr, ... |
#include<stdio.h>
#include<stdlib.h>
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
#define NIL NULL
Node root;
void insert(int k){
Node y = NIL;
Node x = root;
Node z;
z = malloc(sizeof(struct node));
z->key = k;
z->left = NIL;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212813/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212813/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node = type { ptr, ... |
#include<stdio.h>
#include<stdlib.h>
#define LEN 7
struct node{
int key;
struct node *parent, *left, *right;
};
typedef struct node node;
typedef struct node * nodepointer;
void insert(int);
void inorder(nodepointer);
void preorder(nodepointer);
nodepointer root;
int main(){
int n, k;
int i;
char com[LEN... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212857/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212857/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node = type { i32, ... |
#include <stdio.h>
int main(){
int i,j,n,y,b,r,t,re;
double genri,max,a;
while(1){
scanf("%d",&n);
if(n==0) break;
scanf("%d",&y);
for(i=1;i<=n;i++){
scanf("%d%d%d",&b,&r,&t);
if(t==1){
genri=1+y*(double)r/100;
}
else if(t==2){
a=1+(double)r/100;
genr... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212914/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212914/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<stdbool.h>
#include<time.h>
#include<math.h>
#include<assert.h>
#define inf 1072114514
#define llinf 4154118101919364364
#define mod 1000000007
#define pi 3.1415926535897932384
int max(int a,int b){if(a>b){return a;}return b;}
int min(int a,int b){if(a<b)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212958/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212958/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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 __USE_MINGW_ANSI_STDIO 0
#include <stdio.h>
static inline int abs(int a) { return (a < 0) ? a * -1 : a; }
char alpha[27];
#define maxN 50
char s[maxN + 1];
int pos[26];
void testcase() {
scanf("%s", alpha);
scanf("%s", s);
for (int i = 0; alpha[i] != '\0'; ++i) {
pos[alpha[i] - 'a'] = i;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21300/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21300/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
int main()
{ int n;
scanf("%d",&n);
int a[n+1],b[n];
for(int i=0;i<n+1;i++){
scanf("%d",&a[i]);
}
for(int i=0;i<n;i++){
scanf("%d",&b[i]);
}
long long ans=0;
for(int i=0;i<n;i++){
if(b[i]<=a[i]){
ans+=b[i];
}else{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213043/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213043/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void){
int N,i;
long a[100005],b[100005],count;
char str[5000000],*p;
fgets(str,sizeof(str),stdin);
N=atoi(str);
fgets(str,sizeof(str),stdin);
p=strtok(str," \n");
a[0]=atol(p);
for(i=1;i<N+1;i++){
p=strtok(NULL," \n");
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213087/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213087/source.c"
target datalayout = "e-m:e-p270: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, d;
scanf("%d%d",&a, &b);
scanf("%d%d",&c, &d);
if(d==1){
printf("1\n");
return 0;
}
printf("0\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213180/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213180/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 M1,D1,M2,D2;
if(scanf("%d%d",&M1,&D1)<2) return 1;
if(scanf("%d%d",&M2,&D2)<2) return 1;
if(M1==M2){
printf("0\n");
}
else{
printf("1\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213238/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213238/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 M1, D1, M2, D2;
scanf("%d%d%d%d", &M1, &D1, &M2, &D2);
if (D2==1) printf("%d", 1);
else printf("%d", 0);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213281/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213281/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 N, A, B, C;
int l[16];
int i;
int search, max;
int yosinagasayuri = 999999999;
if (scanf("%d%d%d%d", &N, &A, &B, &C) != 4) return 1;
for (i = 0; i < N; i++) {
if (scanf("%d", &l[i]) != 1) return 1;
}
max = (1 << (2 * N));
for (search = 0; search <... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213331/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213331/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(){
int N, A, B, C;
int l[8];
scanf("%d %d %d %d\n",&N,&A,&B,&C);
for(int i=0;i<N;i++) scanf("%d\n",&l[i]);
int i[8];
int mptmp ,mpmin=100000000;
int tmpa,tmpb,tmpc;
for(i[0]=0;i[0]<4;i[0]++) {
for(i[1]=0;i[1]<4;i[1]++) {
for(i[2]=0;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213382/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213382/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
int x,y;
scanf("%d %d",&x,&y);
for ( int i=0 ; i<=x ; i++) {
if ( (2*i + 4*(x-i)) == y) {
printf("Yes");
return 0;
}
}
printf("No");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213425/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213425/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int x,y,count,ans=0;
scanf("%d %d",&x,&y);
for (int i=0;i<(x+1);i++){
count=2*i+4*(x-i);
if(count == y){
ans=ans+1;
}
}
if(ans!=0){
printf("Yes\n");
}else{
printf("No\n");
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213469/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213469/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int x,y;
scanf("%d%d",&x,&y);
if(y/2<x || 4*x<y || y%2!=0) printf("No");
else{
printf("Yes");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213511/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213511/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, i;
scanf("%d %d", &a, &b);
for(i = 0;i <= a;i += 1){
if(4*a - 2*i == b){
printf("Yes\n");
return 0;
}
}
printf("No\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213555/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213555/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int i,num,X,Y,cnt;
cnt = 0;
if(scanf("%d%d",&X,&Y) == -1){
return 0;
}
for(i = 0;i <= X;i++){
num = 2*i + 4*(X - i);
if(num == Y){
cnt++;
}
}
if(cnt == 0){
printf("No\n");
}else{
printf("Yes\n");
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213599/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213599/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int i,leg;
int x,y;
int n = scanf("%d %d",&x ,&y);
if (1 <= x <= 100 || 1 <= y <= 100){
for(i=0;i<=x;i++){
leg = ( 4 * i ) + 2 * (x - i);
if(leg == y) break;
}
if(i != x+1) printf("Yes");
if(i == x+1) printf("No");
}else{
printf("error");
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213641/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213641/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
//int A,B,C,D,E;
int X,Y;
scanf("%d %d", &X, &Y);
for(int i; i<=X; i++)
{
if((i*2)+(X-i)*4==Y)
{
printf("Yes");
return(0);
}
}
printf("No");
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213685/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213685/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
int x,y;
scanf("%d",&x);
scanf("%d",&y);
if((y % 2 != 0)||(y<2*x)||(y>4*x)){
printf("No");
return 0;
}
printf("Yes");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213735/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213735/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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>
#include <stdlib.h>
#include<math.h>
#define ll long long
#define pai 3.1415926535897932384626433832795028841971693
long long min(long long a, long long b){
if(a < b) return a;
else return b;
}
long long max(long long a, long long b){
if(a < b) return b;
else retur... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213779/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213779/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
char w[3][10] = {"Sunny", "Cloudy", "Rainy"};
char s[10];
scanf("%s", s);
for(int i = 0; i < 3; i++) {
if(s[0] == w[i][0]) {
printf("%s\n", w[(i + 1) % 3]);
}
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213829/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213829/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.w = private u... |
#include<stdio.h>
#include<string.h>
int main(void){
char c;
scanf("%c", &c);
if(c=='S'){
printf("Cloudy");
}else if(c=='C'){
printf("Rainy");
}else if(c=='R'){
printf("Sunny");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213872/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213872/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
int main(void)
{
char str[7];
scanf("%s", str);
if (strcmp("Sunny", str) == 0)
{
printf("Cloudy");
}
else if (strcmp("Cloudy", str) == 0)
{
printf("Rainy");
}
else if (strcmp("Rainy", str) == 0)
{
printf("Sunny");
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213937/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213937/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
char S[][10] = {"Sunny","Cloudy","Rainy"};
char a[10];
scanf("%s",a);
switch(a[0]){
case 'S':
printf("%s",S[1]);
return 0;
case 'C':
printf("%s",S[2]);
return 0;
case 'R':
printf("%s",S[0]);
return 0;
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213988/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213988/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.S = private u... |
#include <stdio.h>
#include <stdlib.h>
int counts[5];
int main() {
int n;
int i, j, k;
scanf("%d", &n);
for(i=0; i<n; i++) {
scanf("%d", &j);
counts[j]++;
}
int ans = counts[4];
ans +=counts[3];
ans+=counts[2]/2 + counts[2]%2;
counts[1]-=counts[3];
counts[1]-=2*(counts[2]%2);
if(cou... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21403/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21403/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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)
{
char S[20];
scanf("%s",&S);
if(S[0] == 'S')
{
printf("Cloudy\n");
}
else if(S[0] == 'C')
{
printf("Rainy\n");
}
else if(S[0] == 'R')
{
printf("Sunny\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214080/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214080/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 s;
scanf("%c",&s);
if(s=='S'){
printf("Cloudy");
}else if(s=='C'){
printf("Rainy");
}else{
printf("Sunny");
}
return EXIT_SUCCESS;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214130/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214130/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 sn[20];
int i = 0;
scanf("%s", sn);
if (!strcmp(sn ,"Sunny")) {
printf("Cloudy\n");
}
else if (!strcmp(sn,"Cloudy")){
printf("Rainy\n");
}
else if (!strcmp(sn,"Rainy")) {
printf("Sunny\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214174/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214174/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
char S[40];
scanf("%s", S);
switch (S[0])
{
case 'S':
printf("Cloudy\n");
break;
case 'C':
printf("Rainy\n");
break;
case 'R':
printf("Sunny\n");
break;
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214224/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214224/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
typedef struct directedGraph{
int *vertex;
int *next;
int *start;
int v,e;
int pointer;
} graph;
graph* newGraph(const int v,const int e){
graph *g=(graph *)malloc(sizeof(graph));
g->vertex=(int *)calloc(e,sizeof(int));
g->next=(int *)calloc(e,sizeof(int));
g->st... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214268/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214268/source.c"
target datalayout = "e-m:e-p270: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.directedGraph = typ... |
#include<stdio.h>
int main(){
int n,i,S[14],H[14],C[14],D[14],number;
char chara,dummy;
for(i=1;i<14;i++){
S[i] = 0;
D[i] = 0;
H[i] = 0;
C[i] = 0;
}
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%c",&dummy);
scanf("%c %d",&chara,&number);
switch(chara){
case 'S':
S[number]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214325/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214325/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main() {
int n, i, c[52] = { 0 }, j, d, l;
char k[2];
scanf("%d", &n);
for (i = 0; i < n; ++i) {
scanf("%s %d", k, &j);
switch(k[0]) {
case 'S':
c[j - 1]++;
break;
case 'H':
c[j + 12]++;
break;
case 'C':
c[j + 25]++;
break;
case 'D':
c[j + 38]++;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214369/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214369/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 c[4][13] = {0};
int n, i;
scanf("%d", &n);
for(i = 0; n > i; i++){
char bm;
int bi;
scanf("%*c%c%*c%d", &bm, &bi);
switch(bm){
case 'S':
c[0][bi-1] = 1;
break;
case 'H':
c[1][bi-1] = 1;
break;
case 'C':
c[2][bi-1] = 1;
break;
case 'D':... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214411/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214411/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int i,j;
int n;
char suit;
int num;
int card[4][14];
for(i=0;i<14;i++){
card[0][i]=0;
card[1][i]=0;
card[2][i]=0;
card[3][i]=0;
}
scanf("%d",&n);
for(i=0;i<n;i++){
scanf(" %c %d",&suit,&num);
if(suit=='S') card[0][num]=num;
if(suit=='H') card[1][num]=num;
if(su... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214455/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214455/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_TYPE 4
#define MAX_RANK 13
int main(int argc, char **argv){
int i,j;
char buf[256];
int data[MAX_TYPE][MAX_RANK] = {};
int len,rank,type;
char ch_type;
// Input
fgets( buf, 256, stdin);
sscanf( buf, "%d",&len);
for(i=0;i<len;i++){
fgets( buf, 256, stdin);
sscanf( buf,"%c ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214499/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214499/source.c"
target datalayout = "e-m:e-p270: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 n,number,card[4][14];
int i,j;
char s;
for(i=0;i<=13;i++){
card[0][i]=1;
card[1][i]=1;
card[2][i]=1;
card[3][i]=1;
}
scanf("%d",&n);
for(i=0;i<n;i++){
scanf(" %c %d",&s,&number);
if(s=='S')card[0][number]=0;
else if(s=='H')card[1][number]=... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214541/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214541/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n, i, j;
int cards[4][13] = { {0} };
char marks[4] = {'S', 'H', 'C', 'D'};
char in_mark;
int in_rank;
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf(" %c %d", &in_mark, &in_rank);
switch (in_mark) {
case 'S':
cards[0][i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214585/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214585/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.marks = priva... |
#include <stdio.h>
int getID(char);
char getSuit(int);
int main(void)
{
int card[4][13];
int i,j,num;
for(i=0;i<4;i++)
{
for(j=0;j<13;j++)
{
card[i][j]=0;
}
}
scanf("%d",&num);
for(i=0;i<num;i++)
{
char suit;
int id,rank;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214628/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214628/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 cards[4][13] = {0};
int n, num, i, j;
char mark;
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%s %d", &mark, &num);
if (mark == 'S') {
cards[0][num - 1] = 1;
}
else if (mark == 'H') {
card... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214714/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214714/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int card[4][14],n,i,j,d;
char c;
scanf("%d",&n);
for(i=0; i<4; i++){
for(j=1; j<14; j++){
card[i][j]=0;
}
}
for(i=0; i<n; i++){
scanf(" %c %d",&c,&d);
if(c=='S') card[0][d]=1;
else if(c=='H') card[1][d]=... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214765/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214765/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 card[4][13];
int n,i,j;
for(j=1;j<=13;j++){
for(i=1;i<=4;i++){
card[i-1][j-1]=0; //card?????????????????¨???0???
}
}
scanf("%d",&n);
int k; //k???????????\????????????
char mark;
for(k=1;k<=n;k++){
scanf("%*c%c %d",&mark,&j); //?????????????????£??... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214808/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214808/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int n,i,j,b;
int a[4][14];
char s;
for(i=0;i<=13;i++){
a[0][i]=0;
a[1][i]=0;
a[2][i]=0;
a[3][i]=0;
}
scanf("%d",&n);
for(i=0;i<n;i++){
scanf(" %c %d",&s,&b);
if(s=='S'){
a[0][b]=1;
}else if(s=='H'){
a[1][b]=1;
}else if(s=='C'){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214851/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214851/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int n,i,j,x,f;
char h;
scanf("%d",&n);
int c[4][13];
for(i=0;i<4;i++){
for(f=0;f<13;f++){
c[i][f]=0;
}
}
for(i=0;i<n*2;i++){
scanf("%c %d",&h,&x);
if(h=='S'){
c[0][x-1]=1;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214895/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214895/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int i,k,n,num;
int card[4][13];
char kind;
scanf("%d", &n);
for(i=0; i<4; ++i){
for(k=0; k<13; ++k){
card[i][k] = 0;
}
}
char work;
for(i=0; i<n; ++i){
scanf("%c",&work);
if(work == '\n'){
scanf("%c",&kind);
}else{
kind = work;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214945/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214945/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main () {
int n;
char p,dummy; //char型は文字列を入れる型
int input;
int arr[4][13]; //int[a][b]でa*bの二次元配列に記録する
int i,j;
for(i = 0; i < 4; i++){
for(j = 0; j < 13; j++){
arr[i][j] = 0;
}
}
scanf("%d",&n);
for(i = 0; i < n; i++){
scanf("%c",&dummy);
scanf("%c %... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214989/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214989/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 cards[4][14];
int n, i,j,c;
char m, d;
for(i=0; i < 4; i++){
for(j=0; j < 14; j++){
cards[i][j]=0;
}
}
scanf("%d", &c);
for(i = 0; i < c; i++){
scanf("%c", &d);
scanf("%c %d", &m, &n);
if(m == 'S'){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215030/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215030/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 markForInt(char c){
int n;
if(c == 'S'){
n = 0;
}else if(c == 'H'){
n = 1;
}else if(c == 'C'){
n = 2;
}else if(c == 'D'){
n = 3;
}
return n;
}
char intForMark(int n){
char c;
if(n == 0){
c = 'S';
}else if(n == 1){
c = 'H';
}else if(n == 2){
c = 'C';
}else if(n == 3){
c... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215074/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215074/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 cards[4][14] = {};
char mark;
int num,n;
scanf("%d",&n);
for(int i=0;i<n;i++){
scanf("%c %c %d",&mark,&mark,&num);
//printf("%c %d\n",mark,num);
int q = 0;
if(mark == 'S')q=0;
else if(mark == 'H')q=1;
else if(mark == 'C')q=2;
else if(mark == 'D')q=3;
cards[q][num] ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215117/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215117/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int n,i=0,j=1;
scanf("%d", &n);
//printf("%d\n",n);
int M;
M=n;
int N[n];
char m[n];
for(i=0;i<M*2;i++){
//printf(" %d\n\n",i);
scanf("%c %d", &m[i/2], &N[i/2]);
//printf("%c %d\n",m[i],N[i]);
//printf(" /%d\n\n",i);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215168/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215168/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 RANK_N 4
#define CARD_N 13
int main(void){
int c[RANK_N][CARD_N];
int n;
char rank;
int i,j,k;
for (i = 0; i < RANK_N; i++) {
for (j = 0; j < CARD_N; j++) {
c[i][j] = 0;
}
}
scanf("%d", &n);
for (k = 0; k < n; k++) {
scanf("%*c%c %d", &rank, &j);
if ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215210/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215210/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,a[4][14];
char s[2];
int h;
for(int i=0;i<4;i++){
for(int j=1;j<14;j++){
a[i][j]=0;
}
}
scanf("%d",&n);
for(int i=0;i<n;i++){
scanf("%s %d",s,&h);
switch(s[0]){
case 'S':
a[0][h]=1;
break;
case 'H':
a[1][h]=1;
break;
case '... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215269/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215269/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[4][13], n, m, i, j;
char ch, d;
for (i = 0; i < 4; i++) {
for (j = 0; j < 13; j++) {
a[i][j] = 0;
}
}
scanf("%d",&n);
for (int h = 1; h <= n; h++) { //所持しているトランプを出力する
getchar();
scanf("%c %d",&ch,&m);
if (ch == 'S') a[0][m] = 1;
else if (ch == 'H') a[1][m] = ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215311/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215311/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 s[13],h[13],c[13],d[13];
int n,i,j,num;
char sort;
for(i=0;i<13;i++){
s[i]=i+1;
h[i]=i+1;
c[i]=i+1;
d[i]=i+1;
}
scanf("%d",&n);
for(i=0;i<n*2;i++){
scanf("%c %d",&sort,&num);
switch(sort){
case 'S':s[num-1]=0;
break;
case 'H':h[num-1]=0;
break;
case... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215355/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215355/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,K,i=0;
scanf("%d%d%d",&A,&B,&K);
if(B-A+1<2*K){
for(i=A;i<=B;i++){
printf("%d\n",i);
}
}
else{
for(i=0;i<K;i++){
printf("%d\n",A);
A++;
}
B-=K;
for(i=0;i<K;i++){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215405/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215405/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#define ll long long
#define rep(i,n) for(ll i=0;i<(n);i++)
#define max(p,q) ((p)>(q)?(p):(q))
#define min(p,q) ((p)<(q)?(p):(q))
#define chmax(a,b) ((a)=(a)>(b)?(a):(b))
#define chmin(a,b) ((a)=(a)<(b)?(a):(b))
#define abs(p) ((p)>=(0)?(p):(-... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215449/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215449/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
typedef long long int int64;
#define MAX(a,b) ((a)>(b)?(a):(b))
#define MIN(a,b) ((a)<(b)?(a):(b))
#define ABS(a) ((a)>(0)?(a):-(a))
void run(void){
int a,b,k;
scanf("%d%d%d",&a,&b,&k);
int i;
if(a+k-1<b+1-k){
for(i=1;i<=k;i++) printf("%d\n",a+i-1);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215492/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215492/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 start, end, K;
int i;
scanf("%d %d %d",&start , &end, &K);
if(end - start + 1 > 2*K){
for(i = start; i < start + K; i++){
printf("%d\n",i);
}
for(i = end - K + 1; i <= end; i++){
printf("%d\n"... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215535/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215535/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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.