Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include<stdio.h>
int main()
{
int t, i, j;
long int x, y;
scanf("%d", &t);
while(t--)
{
scanf("%ld %ld", &x, &y);
printf("%ld %ld\n", x, 2*x);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_28264/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_28264/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 FuncBubbleSortInt(int a[], int len);
void FuncShowArray(int array[], int head, int num);
int main(void)
{
int n, num[128];
int count;
int i;
scanf("%d", &n);
for (i = 0; i < n; i++)
scanf("%d", &num[i]);
count = FuncBubbleSortInt(num, n);
FuncShowArray(num, 0, n);
printf("%d\n", coun... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_282683/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_282683/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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
void trace(int A[], int n){
int i;
for (i=0;i < n;i++){
if (i > 0) printf(" ");
printf("%d", A[i]);
}
printf("\n");
}
void swap(int *a,int *b){
int temp;
temp = *a;
*a = *b;
*b = temp;
}
int main(){
int A[N];
int n=0;
int i,j;
int count=0;
scanf(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_282733/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_282733/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str.1 = private unnamed_a... |
#include <stdio.h>
#include <stdlib.h>
int main() {
int i, j, k;
int count;
int n;
scanf("%d", &n);
int A[10000];
for (i = 0; i != n; i++) {
scanf("%d", &A[i]);
}
for (i = 0; i <n - 1; i++) {
for (j = 0; j != n - i - 1; j++) {
if (A[j] >A[j + 1]) {
//swap
k =A[j];
A[j] =A[j + 1];
A[j... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_282791/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_282791/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,n,a[101],t,p=0;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&a[i]);
}
for(i=0;i<n-1;i++){
for(j=0;j<n-i-1;j++){
if(a[j]>a[j+1]){
t=a[j];
a[j]=a[j+1];
a[j+1]=t;
p++;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_282834/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_282834/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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
int swap(int *x,int *y)
{
int z=*x;
if(*x==*y)return 0;//同じだったら0
*x=*y;
*y=z;
return 1;//違ったら1
}
//Aに代入された数をnまで並べ替えて、入れ直す
// /交換回数
int bubbleSort(int *A, int n)
{
int flag=1;
int i,j;
int count=0;//交換回数
for (i=0;flag;i++){
flag = 0;//一回も交換しない、 つまり既に並んんでいたら0
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_282878/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_282878/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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
int main()
{
int a,i,j,tmp;
int cnt = 0;
int A[N];
scanf("%d",&a);
for(i = 0 ; i < a ; i++){
scanf("%d",&A[i]);
}
for(i = 0 ; i < a - 1 ; i++){
for(j = a - 1 ; j >=i+1 ; j--){
if(A[j] < A[j-1]){
tmp = A[j];
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_282920/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_282920/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 Ntw,Btw,Ctw=0,i,j;
scanf("%d",&Ntw);
int Atw[Ntw];
for(i=0;i<Ntw;i++){
scanf("%d",&Atw[i]);
}
i=0;
while(i<Ntw){
for(j=Ntw-1;j>i;j--){
if(Atw[j]<Atw[j-1]){
Btw=Atw[j];
Atw[j]=Atw[j-1];
Atw[j-1]=Btw;
Ctw++;
}
}
i++;
}
for(i=0;i<Ntw;i++){... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_282964/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_282964/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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
void swap(int *,int *);
int main(){
int flag,i,j,n,count=0;
int A[N];
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&A[i]);
}
flag = 1;
i=0;
while(flag){
flag = 0;
for (j=n-1;j>=i+1;j--){
if( A[j] < A[j-1]){
swap(&A[j], &A[j-1]);
cou... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_283006/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_283006/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
int p[100005];
int pos[100005];
int count[100005];
int r[100005];
int main(){
int t;
scanf("%d", &t);
int n;
while(t--){
scanf("%d", &n);
for(int i = 1; i <= n; i++){
scanf("%d", &p[i]);
pos[p[i]] = i;
}
/*for(int i = 1; i <= n; i++){
printf("%d ", ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_28305/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_28305/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 bubblesort(int A[], int N)
{
int flag, j, temp, cnt, i;
cnt=0;
i=0;
flag=1;
while(flag ==1)
{
flag = 0;
for(j=N-1; j>=i+1; j--)
{
if(A[j]<A[j-1])
{
temp = A[j];
A[j] = A[j-1]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_283093/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_283093/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[100];
int x,flag,t,c=0;
scanf("%d",&x);
for(int i=0;i<x;i++){
scanf("%d",&N[i]);
}
flag=1;
while(flag==1){
flag=0;
for(int j=x-1;j>0;j--){
if(N[j] < N[j-1]){
t=N[j];
N[j]=N[j-1];
N[j-1]=t;
c++;
flag=1;
}
}
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_283136/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_283136/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int t;
scanf("%d",&t);
while(t--){
int n,k;
scanf("%d %d",&n,&k);
int a[n+5];
int i,t=1;
int sum=1,max=0;
for(i=1;i<=n;i++)
scanf("%d",&a[i]);
for(i=2;i<=k-1;i++){
if(a[i]>a[i-1]&&a[i]>a[i+1])
sum++;
}
max=sum;
for(i=2;i<=n-k+1;i++){
if(a[i]>a[i-1]&&a[i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_28318/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_28318/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 bubbleSort(int A[],int N);
int main(){
int i,A[100],N,count;
scanf("%d",&N);
for(i = 0 ; i < N ; i++)scanf("%d",&A[i]);
count = bubbleSort(A,N);
for(i = 0 ; i < N ; i++){
if(i > 0)printf(" ");
printf("%d",A[i]);
}
printf("\n");
printf("%d\n",count);
return 0;
}
int bub... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_283222/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_283222/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 BubbleSort(int *,int);
int main(){
int swcut=0;
int n,*a,i;
scanf("%d",&n);
a=(int *)malloc(n*sizeof(int));
for(i=0;i<n;i++){
scanf("%d",&a[i]);
}
swcut=BubbleSort(a,n);
for(i=0;i<n;i++){
printf("%d",a[i]);
if(i!=n-1) printf(" ");
}
printf("\n... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_283266/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_283266/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[101], n, i, j, t, sw = 0;
scanf("%d", &n);
for ( i = 1; i <= n; i++ ) scanf("%d", &A[i]);
for ( i = 1; i <= n; i++ ){
for ( j = n; j >= i+1; j-- ){
if ( A[j] < A[j-1] ){
t = A[j]; A[j] = A[j-1]; A[j-1] = t;
sw++;
}
}
}
for ( i = 1; i <= n; i++ ){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_283309/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_283309/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 bubbleSort(int A[],int N){
int j,i,v,k,flag,cnt=0;
flag = 1;
for(i=0; i< N-1 ; i++){
for(j=N-1 ; j > i;j--){
if(A[j] < A[j-1]){
v=A[j - 1];
A[j-1]=A[j];
A[j]=v;
cnt++;
}
}
}
for(k=0;k<N;k++){
printf("%d",A[k]);
if(k<N-1)printf(" ");
else pri... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_283352/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_283352/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,temp,cout=0;
scanf("%d",&N);
int A[N];
for(i=0;i<N;i++){
scanf("%d",&A[i]);
}
for(i=0;i<N-1;i++){
for(j=N-1;j>=i+1;j--){
if(A[j]<A[j-1]){
temp=A[j-1];
A[j-1]=A[j];
A[j]=temp;
cout++;
}
}
}
printf("%d",A[0]);
for(i=1;i<N;i++){
printf(" %d",... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_283402/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_283402/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/*ALDS1_2_A:Bubble Sort*/
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#define N 100
int bubbleSort(int *A, int n);
void swap(int *A, int x, int y);
int main(void){
int n, i = 0, A[N] = {0}, sw;
scanf("%d", &n);
while(i < n) scanf("%d", &A[i++]);
sw = bubbleSort(A, n);
for( i = 0; i < n; i++){
if(i ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_283446/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_283446/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 int long long
int main()
{
int t;
scanf("%lld",&t);
for(int ii=1;ii<=t;ii++)
{
int n,a,b,c,d;
scanf("%lld %lld %lld %lld %lld",&n,&a,&b,&c,&d);
if((c-d) <=n*(a+b) && (c+d)>=n*(a-b)) {printf("Yes\n");continue;}
printf(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_28349/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_28349/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 d;
int l;
scanf("%d %d", &d, &l);
printf("%d\n", d / l + d % l);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_283547/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_283547/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 D,L,g;
scanf("%d %d",&D,&L);
g=D/L+D%L;
printf("%d\n",g);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_283590/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_283590/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 rep(i,l,n) for(int i=l;i<n;i++)
struct relation{
int num;
struct relation *next;
};
struct person{
int group; // 所属するグループの親番号, 親であればそのグループのサイズ*(-1)
struct relation *friends;
struct relation *block;
};
int insert(struct person*,int,int,int);
int unit(struct person*,... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_283633/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_283633/source.c"
target datalayout = "e-m:e-p270: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.person = type { i32... |
# include"stdio.h"
int main(){
int w,a,b;
scanf("%d %d %d",&w,&a,&b);
if(a==b) printf("0\n");
if(a>b){
b+=w;
if(a-b>0) printf("%d\n",a-b);
else printf("0\n");
}
if(a<b){
a+=w;
if(b-a>0) printf("%d\n",b-a);
else printf("0\n");
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_283684/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_283684/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 width, point_a, point_b;
scanf("%d %d %d", &width, &point_a, &point_b);
if(point_a > point_b) {
int temp = point_a;
point_a = point_b;
point_b = temp;
}
if(point_a + width >= point_b) {
printf("0\n");
} else {
printf("%d\n", point_b - width - point_a)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_283727/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_283727/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, w;
int ans;
scanf("%d%d%d", &w, &a, &b);
if (a + w <= b) {
ans = b - a - w;
}
else if (a <= b && b <= a + w) {
ans = 0;
}
else if (b <= a && a <= b + w) {
ans = 0;
}
else {
ans = a - b - w;
}
printf("%d\n", ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_283770/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_283770/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/*
B - NarrowRectanglesEasy
<http://abc056.contest.atcoder.jp/tasks/abc056_b>
*/
#include <stdio.h>
int main(int argc, char const *argv[]) {
int W, a, b;
scanf("%d %d %d", &W, &a, &b);
if( a < b ){
if( a+W < b ){
printf("%d", b - (a+W));
}else{
printf("%d", 0);
}
}else{
if( ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_283813/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_283813/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,w,flag;
while(scanf("%d%d%d",&w,&a,&b)!=EOF)
{
if(b>a+w) flag=b-a-w;
if(b+w<a) flag=a-b-w;
if(a==(b+w)||(a+w)==b) flag=0;
if(a<=b&&b<=a+w) flag=0;
if(a<=b+w&&b<=a) flag=0;
printf("%d\n",flag);
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_283857/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_283857/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 p[200],m[200][200];
int mat(int);
int min(int,int);
int main(){
int n,i;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d%d",&p[i],&p[i+1]);
}
mat(n);
return 0;
}
int mat(int n){
int i,j,l,k,q;
for(i=1;i<=n;i++) m[i][i]=0;
for(l=2;l<=n;l++){
for(i=1;i<=n-l+... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_283907/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_283907/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
static int N=100;
int main(){
int i,l,j,k,num,p[N+1],m[N+1][N+1];
scanf("%d",&num);
for(i=1;i<=num;i++){
scanf("%d",&p[i-1]);
scanf("%d",&p[i]);
}
for(i=1;i<=num;i++)m[i][i]=0;
for(l=2;l<=num;l++){
for(i=1;i<=num-l+1;i++){
j=i+l-1;
m[i][j]=1<<21... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_283950/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_283950/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int t;
scanf("%d",&t);
while(t--)
{
int n,a,b,c,d;
scanf("%d %d %d %d %d",&n,&a,&b,&c,&d);
if(n*(a+b)<(c-d)||n*(a-b)>(c+d))
printf("NO\n");
else
printf("YES\n");
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_28400/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_28400/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#define MAX 100
int main() {
int i,j,ryoma,hira,sawa,pine[MAX], m[MAX][MAX],que;
scanf("%d",&sawa);
for ( i = 1; i <= sawa; i++ ) {
scanf("%d %d",&pine[i-1],&pine[i]);
}
for ( i = 1; i <= sawa; i++ ) m[i][i] = 0;
for ( hira = 2; hira <= sawa; hira++ ) {
for ( i = 1; i ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_284094/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_284094/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
int i, j, k, l, q, n;
scanf("%d", &n);
int m[n+1][n+1];
for(i = 0; i < n+1; i++)
for(j = 0; j < n+1; j++)
m[i][j] = -1;
int r[n], c[n];
for(i = 0; i < n; i++)
scanf("%d%d", &r[i], &c[i]);
int p[n+1];
p[0] = r[0];
p[n] = c[n-1];
for(i = 1; i < n+1... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_284137/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_284137/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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
int main(){
int i,j,k,n,a,b,A[MAX],B[MAX][MAX];
scanf("%d",&n);
for(i=1; i<=n; i++)
scanf("%d%d",&A[i-1],&A[i]);
for(i=1; i<=n; i++)
B[i][i] = 0;
for(j=2; j<=n; j++){
for(i=1; i<=n-j+1; i++){
a = i + j -1;
B[i][a] = 1000000;
for(k=i; k<=a-... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_284188/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_284188/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 N=100;
int min(int x,int y){
if(x<=y) return x;
else return y;
}
int main(){
int n,p[N+1],m[N+1][N+1],j,l,i,k;
scanf("%d",&n);
for(i=1;i<=n;i++){
scanf("%d",&p[i-1]);
scanf("%d",&p[i]);
}
for(i=1;i<=n;i++) m[i][i]=0;
for(l=2;l<=n;l++){
for(i=1;i<=n-l+1;i++){
j=... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_284230/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_284230/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@N = dso_local local_unname... |
#include<stdio.h>
#define N 100
#define INF 1<<21
int G[N][N],p[N],H[N],L[N];
int min(int c,int r){
if(c<r) return c;
else return r;
}
int main(){
int x,i,j,l,a,b,c;
scanf("%d",&x);
for(i=1;i<=x;i++){
G[i][i]=0;
}
for(i=1;i<=x;i++){
scanf("%d%d",&H[i],&L[i]);
}
p[0]=H[1];
p[1] = L... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_284274/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_284274/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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
int min(int,int);
int main(){
int i,j,k,l,n,p[N+1],m[N+1][N+1];
scanf("%d",&n);
for(i = 1;i <= n;i++){
scanf("%d%d",&p[i-1],&p[i]);
}
for(i = 1;i <= n;i++){
m[i][i]=0;
}
for(l = 2;l <= n;l++){
for(i = 1;i <= n-l+1;i++){
j=i+l-1;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_284324/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_284324/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 MIN(x, y) ((x) < (y) ? (x) : (y))
int get_uint() {
int n = 0;
int c = getchar_unlocked();
if(c < 48 || 57 < c) return c;
while(47 < c && c < 58) n = 10 * n + (c & 0xf), c = getchar_unlocked();
return n;
}
void put_uint(int n) {
if(!n) {
putchar_unlocked('0');
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_284368/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_284368/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct._IO_FILE = type { i... |
#include<stdio.h>
#define MAX 2147483647
int dp[100][100],num[101];
int rensa(int);
int main(){
int n,i,j;
scanf("%d",&n);
for(i=0;i<n;i++) scanf("%d%d",num+i,num+i+1);
printf("%d\n",rensa(n));
return 0;
}
int rensa(int n){
int i,j,k,l,min;
for(i=0;i<n;i++) dp[i][i]=0;
for(l=1;l<n;l++){
for... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_284410/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_284410/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 10000
int c[Max];
//連鎖行列積を求める
int matrixChainOrder(int n){
int i,j,k,l,q;
int m[Max][Max];
for(i = 1 ; i <= n ; i++){
m[i][i]=0;
}
for(l = 2 ; l <= n ; l++){
for(i = 1 ; i <= n-l+1 ; i++){
j = i+l-1;
m[i][j] = INF;
for(k = i ; k < ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_284461/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_284461/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@c = dso_local global [100 ... |
#include <stdio.h>
int main(){
int num,arraynum,i,j,k,array1[101],array2[101][101];
scanf("%d",&num);
for(i=1;i<=num;i++) {
scanf("%d%d",&array1[i-1],&array1[i]);
array2[i][i]=0;
}
for(arraynum=2;arraynum<=num;arraynum++){
for(i=1;i<=num-arraynum+1;i++){
j=i+arraynum-1;
array2[i][j]=10... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_284504/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_284504/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#define N 10000
int min(int,int);
void kan(void);
int n,m[N+1][N+1],a[N+1];
int main(){
int i;
scanf("%d",&n);
for(i = 1; i <= n; i++){
scanf("%d %d",&a[i-1],&a[i]);
}
kan();
printf("%d\n", m[1][n]);
return 0;
}
void kan(){
int... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_284548/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_284548/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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
int min(int x,int y){
if(x<y){
return x;
}else{
return y;
}
}
int main( void ){
int n , p[N+1],m[N+1][N+1];
scanf("%d" , &n);
for(int i = 1;i<= n;i++ ){
scanf("%d",&p[i-1]);
scanf("%d",&p[i]);
}
for(int i = 1; i <= n; i++) m[i][i] = 0;
for(int l=2;l<= n;l++){
f... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_284591/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_284591/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 100000000
int main() {
int n, m, i, j, k, l, M[MAX][MAX], r[MAX], c[MAX], p[MAX];
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%d%d", &r[i], &c[i]);
}
p[0] = r[0];
for (i = 1; i <= n; i++) {
p[i] = c[i - 1];
}
for (i = 0; i <= n; i++) {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_284634/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_284634/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<math.h>
#define MAX 100
int m[MAX][MAX];
void Matrix(int p[],int hp){
int i,j,k,l,q;
for(i=1;i<=hp;i++) m[i][i] =0;
for(l=2;l<=hp;l++){
for(i=1;i<=hp-l+1;i++){
j=i+l-1;
m[i][j]=100000;
for(k=i;k<=j-1;k++){
q=m[i][k]+m[k+1][j]+p[i-1]*p[k]*p[j];
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_284678/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_284678/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@m = dso_local local_unname... |
#include <stdio.h>
#include<math.h>
#define N 100
#define INFTY 2000000
int main()
{
int i,j,l,k,n,p[N+1],m[N+1][N+1],q;
scanf("%d",&n);
for(i=0 ; i< n ; i++)
{
scanf("%d%d",&p[i],&j);
}
p[n]=j;
for(i=1 ; i <= n ; i++) m[i][i]=0;
for(l=2 ; l<=n ; l++)
{
for(i=1 ; i<=n-l+1 ; i++)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_284720/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_284720/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 INFTY 1e9
int main(void)
{
int n, i, j, k, t, l, mul;
int p[N+1],m[N+1][N+1];
scanf("%d",&n);
for(i = 1; i <= n; i++)
{
scanf("%d %d",&p[i-1],&p[i]);
}
for(i = 1; i <= n; i++) m[i][i] = 0;
for(i = 2; i <= n; i++){
for(j = 1; j<= n-... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_284764/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_284764/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<math.h>
#define MAX 100
int min(int x, int y);
int main(){
int i,j,n,k,c,r;
int a[MAX];
int b[MAX][MAX];
scanf("%d",&n);
for(i = 1; i<=n; i++){
scanf("%d%d", &a[i-1],&a[i]);
}
for(i = 0; i<=n; i++){
for(j=0; j<=n; j++){
b[i][j] =0;
}
}
for ( c =2... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_284807/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_284807/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 num[3];
int swap;
int i;
int j;
for (i = 0; i < 3; i++){
scanf("%d", &num[i]);
}
for (i = 0; i < 2; i++){
for (j = 0; j < 2; j++){
if (num[j] > num[j + 1]){
swap = num[j + 1];
num[j + 1] = num[j];
num[j] = swap;
}
}
}
for (i = 0; i < 3; i +... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_284858/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_284858/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int s[3];
int a,b;
scanf("%d %d %d",&s[0],&s[1],&s[2]);
for(a=0;a<2;a++){
for(b=0;b<2;b++){
if(s[b]>s[b+1]){
int temp=s[b];
s[b]=s[b+1];
s[b+1]=temp;
}
}
}
printf("%d %d %d\n",s[0],s[1],s[2]);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_284900/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_284900/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 && b<=c){
printf("%d %d %d\n",a,b,c);
}
else if(a<=c && c<=b){
printf("%d %d %d\n",a,c,b);
}
else if(b<=a && a<=c){
printf("%d %d %d\n",b,a,c);
}
else if(b<=c && c<=a){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_284951/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_284951/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,t;
scanf("%d %d %d",&a,&b,&c);
if(a>b){
t=a;
a=b;
b=t;
}
if(b>c){
t=b;
b=c;
c=t;
}
if(a>b){
t=a;
a=b;
b=t;
}
printf("%d %d %d\n",a,b,c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_284995/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_284995/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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=0;
int b=0;
int c=0;
int tmp=0;
scanf("%d %d %d", &a, &b, &c);
if (a>b) {
tmp=b;
b=a;
a=tmp;
}
if (b>c) {
tmp=c;
c=b;
b=tmp;
}
if (a>b) {
tmp=b;
b=a;
a=tmp;
}
printf("%d %d %d\n",a ,b ,c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_285037/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_285037/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, num[3], tmp;
for(i = 0; i < 3; i++) scanf("%d", &num[i]);
for(i = 0; i < 3; i++) {
for(j = 0; j < 2; j++) {
if(num[j] > num[j + 1]) {
tmp = num[j];
num[j] = num[j + 1];
num[j + 1] = tmp;
}
}
}
printf("%d %d %d\n", num[0], num[1], num[2]);
return 0;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_285080/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_285080/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[3];
int b,c,d;
for(b=0;b<3;b++){
scanf("%d",&a[b]);
}
for(b=0;b<2;b++){
for(c=b+1;c<=2;c++){
if(a[b] > a[c]){
d = a[b];
a[b] = a[c];
a[c] = d;
}
}
}
printf("%d %d %d\n",a[0],a[1],a[2]);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_285123/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_285123/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 numbers[3], i, j, temp;
scanf("%d %d %d", &numbers[0], &numbers[1], &numbers[2]);
for (i = 0; i < 3; i++) {
for (j = i + 1; j < 3; j++) {
if (numbers[i] > numbers[j]) {
temp = numbers[i];
numbers[i] = numbers[j];
numbers[j] = temp;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_285167/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_285167/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, temp;
scanf( "%d %d %d", &a, &b, &c );
if ( b > c ) {
temp = b;
b = c;
c = temp;
}
if ( a > b ) {
temp = a;
a = b;
b = temp;
}
if ( b > c ) {
temp = b;
b = c;
c = temp;
}
printf( "%d %d %d\n", a, b, c );
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_285217/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_285217/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d%d%d",&a,&b,&c);
if(a>b){
d=a;
a=b;
b=d;
}
if(b>c){
d=b;
b=c;
c=d;
}
if(a>b){
d=a;
a=b;
b=d;
}
printf("%d %d %d",a,b,c);
puts("");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_285260/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_285260/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n,l;
scanf("%d %d",&n,&l);
char temp[101];
char str[100][101];
int i,j;
for(i=0;i<n;i++){
scanf("%s",&str[i]);
}
for(i=0;i<(n-1);i++){
for(j=(n-1);j>i;j--){
if(strcmp(str[j-1],str[j])>0){
strcpy(temp,str[j-1]);
strcp... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_285325/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_285325/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 N,L=0;
scanf("%d %d",&N,&L);
char S[N][L+1],tmp[L+1];
for(int i=0; i<N; i++){
scanf("%s",S[i]);
}
for(int k=0; k<N-1; k++){
for(int j=0; j<N-1; j++){
if(strcmp(S[j],S[j+1])>0){
strcpy(tmp,S[j+1]);
strcpy(S[j+1],S[j]);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_285383/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_285383/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
char str[101][101];
int strOrder[101];
int N;
int L;
int strcmp(char a[101], char b[101])
{
int i;
for (i = 0; i < L; i++)
{
if (a[i] > b[i]) return 1;
else if (a[i] < b[i]) return 0;
}
return 0;
}
int main(void)
{
//freopen("in.txt", "r", stdin);
int i, j, k;
scanf("%d %d", &N, &L);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_285426/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_285426/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@L = dso_local global i32 0... |
#include<stdio.h>
#include<string.h>
int main(){
int t;
scanf("%d",&t);
while(t--){
char c[51];
scanf("%s",c);
int l=strlen(c);
int counte=0,countn=0;
for(int i=0;i<l;i++){
if(c[i]=='N') countn++;
else counte++;
}
if((countn==1)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_28547/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_28547/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 <string.h>
#include <time.h>
#include <stdlib.h>
#include <stdio.h>
#define REP(a) for(i = 0; i < a; i++)
int main(void)
{
int a,l,i,j;
scanf("%d%d",&a,&l);
char s[a+1][l+1],d[l];
REP(a) {
scanf("%s",s[i]);
}
REP(a) {
for(j=1;j<a;j++){
if(strcmp(s[j-1], s[j]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_285534/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_285534/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
//set many funcs template
//Ver.20190820
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<stdbool.h>
#include<time.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... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_285585/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_285585/source.c"
target datalayout = "e-m:e-p270: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.sd = type { i32, i3... |
#include <stdio.h>
#include <stdlib.h>
int value[100];
int sp = 0;
void push(const int val)
{
value[sp++] = val;
}
int pop()
{
return value[--sp];
}
void operand(const char operand)
{
int ch, val = operand - '0';
while( (ch = getchar()) != ' ' ){
val = val * 10 + (ch - '0');
}
push(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_285642/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_285642/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@sp = dso_local local_unnam... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
int main()
{
int N,L;
scanf("%d\n", &N);
for(int i=0; i < N; i++)
{
L = 0;
scanf("%d\n", &L);
char s[50];
scanf("%[^\n]", s);
for(int j = 0; j < strlen(s); j++)
{
if (s[j] == 'N')
L +=1;
// else
// L -= 1;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_28570/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_28570/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <stdlib.h>
int top, S[100];
void push(int x){
S[++top] = x;
}
int pop(){
--top;
return S[top+1];
}
int main(){
int a, b, x;
top = 0;
char s[100];
while( scanf("%s", s) != EOF ){
if ( s[0] == '+' ){
a = pop();
b = pop();
push(a + b);
} else if ( s[0... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_285765/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_285765/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@S = dso_local local_unname... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(){
int x[100],i=0,j=0,k=0;
char s[100];
while( scanf("%s", s) != EOF ){
if ( s[0] == '+' ){
x[i-2]+=x[i-1];
i--;
} else if ( s[0] == '-' ){
x[i-2]-=x[i-1];
i--;
} else if ( s[0] == '*' ){
x[i-2]*=x[i-... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_285808/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_285808/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 pop();
void push(int);
int s2[100],top=0;
int main(){
int x,a,b;
char s[100];
while( scanf("%s", s) != EOF ){
if ( s[0] == '+' ){
a = pop();
b = pop();
x = a+b;
s2[top]=x;
top++;
} else if ( s[0] == '-' ){
a... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_285859/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_285859/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@top = dso_local local_unna... |
#include <stdio.h>
#include <stdlib.h>
void push(int);
int pop(void);
int isFull(void);
int top=0;
int a[100];
int main(){
int x,data[2];
char s[100];
while(scanf("%s",&s)!=EOF){
if(s[0]=='+'|| s[0]=='-'||s[0]=='*'){
data[0]=pop();
data[1]=pop();
}
if(s[0]=='+'){
push(data[1... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_285901/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_285901/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@top = dso_local local_unna... |
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
int x[100], top = -1; //top????????????????????°????????°
char s[100];
while (scanf("%s", s) != EOF) { //????????????????????????
if (s[0]=='+') { //+?????´???
x[top - 1] = x[top - 1] + x[top];
top--;
}
else if (s[0]=='-') { //????????´?... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_285967/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_285967/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 top,S[10000];
void push(int x){
S[++top]=x;
}
int pop(){
return S[top--];
}
int main(){
int a,b;
char s[50];
top=0;
while(scanf("%s",s)!=EOF){
if(s[0]=='+'){
b=pop();
a=pop();
push(a+b);
}else if(s[0]=='-'){
b=pop();
a... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286009/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286009/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@S = dso_local local_unname... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int top;
int isEmpty() {
return ((top == 0)? 1:0);
}
void push(int *s, int x) {
top++;
s[top] = x;
}
int pop(int *s) {
if (isEmpty()) {
fprintf(stderr, "underflow\n");
} else {
top--;
}
return s[top + 1];
}
int main() {
int x,tmp;
int stack[1... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286052/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286052/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@top = dso_local local_unna... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define N 100
#define TRUE 1
#define FALSE 0
int IsEmpty(int);
void push(int);
int pop(int);
int top=1,pocky[N];
char s[N];
int main(){
int x;
int i,a,b,Sdata;
while( scanf("%s", s) != EOF ){
if ( s[0] == '+' ){
a=pop(pocky[top]);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286102/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286102/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@top = dso_local local_unna... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#define MAX 101
void initialize(void);
int isEmpty(void);
int isFull(void);
void push(int);
int pop(void);
int top;
int S[MAX];
int main(){
int x,i,j;
char s[100];
initialize();
while( scanf("%s", s) != EOF ){
if ( s[0] == '+' ){
i = pop();
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286146/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286146/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int i, j;
int sol[55];
char s[5];
int otv [55];
scanf ("%d %d\n",&n,&k);
for (i=1; i<=n-k+1; i++) {
scanf ("%s", s);
if (s[0] == 'Y') {
otv [i] = 1;
} else {
otv [i] = 0;
}
}
int last;
int tek... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_28619/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_28619/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
int top,S[1000];
void push(int x){
top++;
S[top]=x;
}
int pop(){
top--;
return S[top+1];
}
int main(){
int a,b;
top=0;
char s[100];
while((scanf("%s",s))!=EOF){
if(s[0]=='+'){
a=pop();
b=pop();
push(a+b);
}
else if... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286232/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286232/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@top = dso_local local_unna... |
#include <stdio.h>
#include <stdlib.h>
int main(void){
char c[10000];
int a[2000];
int i=0,j=0;
while(scanf("%s",c) != EOF){
switch(c[0]){
case '%':
a[i-2]=a[i-1]/a[i-2];
i--;
break;
case '*':
a[i-2]=a[i-1]*a[i-2];
i--;
break;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286283/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286283/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 top, S[1000];
int pop()
{
top--;
return S[top + 1];
}
void push(int x)
{
S[++top] = x;
}
int main()
{
int a, b;
top = 0;
char s[100];
while(scanf("%s", s) != EOF)
{
if(s[0] == '+')
{
a = pop();
b = pop();
push(a + b);
}
else if ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286333/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286333/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@top = dso_local local_unna... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int data[200];
int sp=0;
void push(int x){
data[sp++] = x;
}
int pop(){
return data[--sp];
}
void stack_plus(){
push( pop() + pop() );
}
void stack_minus(){
int x = pop();
push( pop() - x );
}
void stack_load(){
push( pop() * pop() );... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286377/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286377/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@sp = dso_local local_unnam... |
#include <stdio.h>
#include <stdlib.h>
int top,S[100];
void push(int x){
top++;
S[top] = x;
}
int pop(void){
top--;
return S[top+1];
}
int main(void){
int a,b;
top = 0;
char s[100];
while(scanf("%s", s) != EOF){
if(s[0] == '+'){
a = pop();
b = pop();
push(a + b);
}e... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286434/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286434/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@top = dso_local local_unna... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#define OPR 100
#define ENZ 99
int stack[OPR+ENZ],pointer;
void push(int op){
stack[++pointer]=op;
}
int pop(void){
pointer--;
return stack[pointer+1];
}
int main(){
int x,y;
pointer=0;
char data[OPR];
while(scanf("%s",data)!=EOF){
switch(data... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286485/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286485/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stack = dso_local local_un... |
#include<stdio.h>
#include<stdlib.h>
int top,S[1000];
void push(int x){
S[++top]=x;
}
int pop(){
top--;
return S[top+1];
}
int main(){
int a,b;
top=0;
char s[100];
while(scanf("%s",s)!=EOF){
if(s[0]=='+'){
a=pop();
b=pop();
push(a+b);
}else if(s[0]=='-'){
b=pop();
a=pop();
push(a-b);
}e... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286542/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286542/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@S = dso_local local_unname... |
#include <stdio.h>
#include <ctype.h>
int main()
{
int stack[100],top=0,n1,n2;
char buf[1000000],*p;
fgets(p=buf,400,stdin);
while (*p >= ' ') {
while (isspace(*p)) p++;
if (isdigit(*p)) {
n1=0;
while (isdigit(*p))n1=(10*n1)+(*p++ & 0xf);
stack[top++] = n1;
} else {
n1 = ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286586/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286586/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = external local_unn... |
#include <stdio.h>
#include <stdlib.h>
int count[199];
int number=0;
void push(int x);
int pop();
int main(){
char s[199];
int y;
while(scanf("%s",s)!=EOF){
switch(s[0]){
case '+':
push(pop()+pop());
break;
case '*':
push(pop()*pop());
break;
case '-':
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286629/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286629/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@number = dso_local local_u... |
#include <stdio.h>
#include <stdlib.h>
int main(){
char str[16];
int st[100], sn = 0;
while(scanf(" %s", str) != EOF){
switch (*str) {
case '+':
sn--;
st[sn - 1] += st[sn];
break;
case '-':
sn--;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286672/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286672/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 push(int);
int pop(void);
int stack[100];
int stacksum=0;
int main(void)
{
int i,x,y,data1;
char data[100];
for(i=0;scanf("%s",data)!= EOF;i++){
if(data[0]=='+') {
x = pop();
y = pop();
push(x+y);
}
else if(data[0]=='-'){
x =... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286715/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286715/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stacksum = dso_local local... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int top = 0, S[1000];
void push(int x) {
S[++top] = x;
}
int pop(void) {
top--;
return S[top+1];
}
int main(void) {
int a, b;
top = 0;
char s[100];
while(scanf("%s",s) != EOF) {
if(s[0] == '+') {
a = pop();
b = pop();
pus... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286766/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286766/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@top = dso_local local_unna... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int top = 0, S[1000];
void push(int x){
top += 1;
S[top] = x;
}
int pop(void){
top--;
return S[top + 1];
}
int main(void){
int a, b;
top = 0;
char s[100];
while(scanf("%s", s) != EOF){
if(s[0] == '+'){
a = po... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286809/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286809/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@top = dso_local local_unna... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int top , S[1000] ;
void push(int t){
S[++top] = t ;
}
int pop(){
top-- ;
return S[top + 1] ;
}
int main(void){
int m , b ;
top = 0 ;
char a[100] ;
while(scanf("%s" , a) != EOF){
if(a[0] == '+'){
m = pop() ;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286852/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286852/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@S = dso_local local_unname... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int top,S[1000];
void push(int);
int pop();
int main(){
int x,y;
top=0;
char s[100];
while( scanf("%s",s) != EOF){
if( s[0] == '+'){
x = pop();
y = pop();
push(x+y);
}
else if( s[0] == '-'){
x = pop();
y = ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286902/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286902/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@top = dso_local local_unna... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int top,n[1000];
void push(int x){
n[++top]=x;
}
int pop(){
top--;
return n[top+1];
}
int main(){
int a,b;
top=0;
char s[100];
while( scanf("%s",s) != EOF ){
if ( s[0] == '+'){
a=pop();
b=pop();
push(a+b);
} else if ( s[... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286946/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286946/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@n = dso_local local_unname... |
#include <stdio.h>
int par[2000];
int find(int x)
{
if (par[x] == x) return x;
return par[x] = find(par[x]);
}
void unite(int x, int y)
{
x = find(x);
y = find(y);
if (x == y) return;
par[x] = y;
}
int same(int x, int y)
{
x = find(x);
y = find(y);
if (x == y) {
return 1;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_28699/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_28699/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@par = dso_local local_unname... |
#include <stdio.h>
#include <stdlib.h>
#define N 100
void push(int);
int pop();
int top, calc[10000];
int main(){
top=0;
int x, y, result;
char str[N];
while( scanf("%s", str) != EOF){
if(str[0]=='+'){
x=pop();
y=pop();
push(x+y);
}else if(str[0]=='-'){
x=pop();
y=p... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287031/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287031/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@top = dso_local local_unna... |
#include <stdio.h>
#include <stdlib.h>
int top, S[100];
void push(int x){
top++;
S[top] = x;
}
int pop(){
top--;
return S[top + 1];
}
int main(void){
int a,b;
top = 0;
char str[11];
while(scanf("%s", str) != EOF){
if(str[0] == '+'){
a = pop();
b = pop();
push(b + a);
} else... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287075/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287075/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@top = dso_local local_unna... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int top, a[1000];
void push(int x){
top++;
a[top] = x;
}
int pop(){
top--;
return a[top+1];
}
int main(void)
{
int x, y;
top = 0;
char c[100];
while( scanf("%s", &c) != EOF ){
if( c[0] == '+' ){
x = pop();
y = pop();
push(x+y);
}else if... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287118/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287118/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@top = dso_local local_unna... |
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <math.h>
#define Max(a, b) ((a) > (b) ? (a) : (b))
#define Min(a, b) ((a) > (b) ? (b) : (a))
#define abs(x) ((x) > 0 ? (x) : -(x))
#define rep(i, n) for(int i = 0; i < (n); i++)
#define INF 1000000000000 //10^12
#define MOD 1000000... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287161/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287161/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = external local_unn... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int top = 0, S[1000];
void push(int x) {
S[++top] = x;
}
int pop(void) {
top--;
return S[top+1];
}
int main(void) {
int a, b;
top = 0;
char s[100];
while(scanf("%s",s) != EOF) {
if(s[0] == '+') {
a = pop();
b = pop();
pus... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287204/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287204/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@top = dso_local local_unna... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int top,S[1000];
void push(int x)
{
S[++top] = x;
}
int pop()
{
top--;
return S[top+1];
}
int main()
{
int a,b;
top = 0;
char s[100];
while (scanf("%s",s)!=EOF)
{
if(s[0]=='+')
{
a = pop();
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287248/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287248/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@S = dso_local local_unname... |
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#define MAX 200
void push(int);
int pop1(void);
int top = 1;
int s[MAX];
int main(){
int x,a,b;
char stack[MAX];
while(1){
if(scanf("%s", stack) == EOF) break;
if ( stack[0] == '+' )
{
a= pop1();
b= pop1();
push(b+a... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287291/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287291/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@top = dso_local local_unna... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.