Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include <stdio.h>
int main(void)
{
int n;
int cnt;
unsigned int candy;
scanf("%d", &n);
for (candy = 0, cnt = 1; cnt <= n; cnt++) {
candy += cnt;
}
printf("%d\n", candy);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_163686/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_163686/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i,r=0;
scanf("%d",&a);
for(i=1;i<=a;i++)
{
r=r+i;
}
printf("%d\n",r);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_163743/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_163743/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
int N;
scanf("%d", &N);
int ans = 0;
for(int i = 1; i <= N; i++){
ans += i;
}
printf("%d\n", ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_163800/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_163800/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,s=0;
scanf("%d",&n);
for(i=1;i<=n;i++)
{
s=s+i;
}
printf("%d",s);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_163844/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_163844/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d",&num);
printf("%d\n",num*(num+1)/2);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_163888/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_163888/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
#include<stdbool.h>
#include<assert.h>
#include<ctype.h>
typedef long long ll;
typedef long double ld;
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k))
#define rrep(i,l,r)for(ll i=(l);i>=(r);i--)
#define IN... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_163930/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_163930/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
typedef struct {
int key, id;
} data;
typedef struct {
data obj[51];
int size;
} max_heap;
void push(data x, max_heap* h)
{
int i = ++(h->size), j = i >> 1;
data tmp;
h->obj[i] = x;
while (j > 0) {
if (h->obj[i].key > h->obj[j].key) {
tmp = h->obj[j];
h->obj[j] = h->obj[i];
h->ob... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_163974/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_163974/source.c"
target datalayout = "e-m:e-p270: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.max_heap = type { [... |
#include <stdio.h>
#include <stdlib.h>
int num(){
char s[11];
int i, n;
for(i=0; i<sizeof(s); i++){
s[i] = getchar();
if(s[i] == ' ' || s[i] == '\n'){
s[i] = '\0';
break;
}
}
sscanf(s, "%d", &n);
return n;
}
void sort(int x[], int n){
int y, i,... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_164016/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_164016/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<math.h>
int lol(int p,int i)
{
int a;
int x=sqrt(i);
for(a=2;a<=p&&a<=x;a++)
{
if(i%a==0)
return 0;
}
return 1;
}
int main()
{
int p,y,i,c=0;
scanf("%d %d",&p,&y);
for(i=y;i>=p+1;i--)
{
if(lol(p,i))
{
pri... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16406/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16406/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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<malloc.h>
#include<math.h>
int isPrime(int n)
{
// Corner cases
if (n <= 1) return 0;
if (n <= 3) return 1;
// This is checked so that we can skip
// middle five numbers in below loop
if (n % 2 == 0 || n % 3 == 0) return 0;
for (int i = 5; i*i <= n; i = i + 6)
if (n%i == 0 || n ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16411/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16411/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
int main(void) {
int n,k,i,j,temp;
int sum = 0;
scanf("%d%d",&n,&k);
int l[n];
for(i=0;i<n;i++) {
scanf("%d",&l[i]);
}
for(i=0;i<n-1;i++) {
for(j=n-1;j>i;j--) {
if(l[j-1] > l[j]) {
temp = l[j];
l[j] = l[j-1];
l[j-1] = temp;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_164168/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_164168/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 number[100];
int N, K;
int tmp;
int sum = 0;
scanf("%d %d", &N, &K);
for(int p = 0; p < N; ++p){
scanf("%d", &number[p]);
}
for (int i = 0; i < N; ++i){
for (int j = i+1; j < N; ++j){
if (number[i] < number[j]){
tmp = number[i];
numbe... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_164218/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_164218/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d", &x);
int ans;
if(x%100 > (x/100)*5)
ans = 0;
else
ans = 1;
printf("%d\n", ans);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_164261/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_164261/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d", &X);
int c = X / 100;
if (100 * c <= X && X <= 105 * c) printf("1\n");
else printf("0\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_164304/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_164304/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,a,b;
scanf("%d\n",&x);
a=x/100;
b=x%100;
a=a*5;
if(b<=a){
printf("1\n");
}
else{
printf("0\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_164348/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_164348/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,a,b,p[100],i,A=0,B=0,C=0;
scanf("%d%d%d",&n,&a,&b);
for(i=0;i<n;i++){
scanf("%d",&p[i]);
if(p[i] <= a) A++;
else if(p[i] <= b) B++;
else C++;
}
if(A>B)A=B;
if(A>C)A=C;
printf("%d",A);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_164399/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_164399/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, char const *argv[]) {
int N,A,B;
scanf("%d%d%d",&N,&A,&B);
int P[N];
for (size_t i = 0; i < N; i++) {
scanf("%d", &P[i]);
}
int Q,R,S;
Q=0;R=0;S=0;
for (size_t i = 0; i < N; i++) {
if (P[i]<=A) {Q++;}
if (A+1<=P[i] && P[i]<=B) {R++;}
if (B+1<=P[i]) ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_164441/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_164441/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
long GCD(long a, long b){
long dividend, divisor;
if (a >= b) {
dividend = a;
divisor = b;
} else {
dividend = b;
divisor = a;
}
long remainder;
while (1) {
if (divisor == 1) {
return 1;
}
remainder = dividend % divisor;
if (remainder == 0) {
b... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_164485/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_164485/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 count(int *a, int num, int b) {
int count = 0;
for (int i=0; i<num; i++) {
if (a[i]%b != 0) count++;
if (count > 1) return 0;
}
return 1;
}
int main() {
int num = 0;
scanf("%d\n", &num);
int a[num];
for (int i=0; i<num; i++) {
scanf("%d", ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_164528/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_164528/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int a[100001];
int b[100001];
int c[100001];
void quicksort(int left, int right)
{
int tmp, pivot;
if (left < right) {
int i = left, j = right;
pivot = a[(right-left+1)/2];
while (1) {
while (a[i] > pivot) i++;
while (pivot > a[j]) j--;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_164571/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_164571/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@a = dso_local global [1000... |
// AOJ ITP2_10_B Bit Operation II
// 2019.3.8 bal4u
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#if 1
#define gc() getchar_unlocked()
#define pc(c) putchar_unlocked(c)
#else
#define gc() getchar()
#define pc(c) putchar(c)
#endif
unsigned in() // 非負整数の入力
{
unsigned n = 0;
int c = gc();
do n = 10 *... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_164614/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_164614/source.c"
target datalayout = "e-m:e-p270: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... |
//
// main.c
// GrandContest009_A_MultipleArray
//
// Created by T.T on 2017/01/22.
// Copyright © 2017年 T.T. All rights reserved.
//
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
//#define DEBUG
#define MAXAB 100000
unsigned long long N=0;
unsigned long long A[MAXAB+1] = {};
unsigned long long B[MAX... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_164672/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_164672/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@N = dso_local global i64 0... |
// AOJ ALDS1_13_C 15 Puzzle
// 2018.5.9 bal4u
#include <stdio.h>
typedef unsigned long long ull;
#define GOAL 0x123456789ABCDEF0LL
#define ABS(a) ((a)>=0?(a):-(a))
typedef struct {
ull s; // パズルの状態。4bitで数字1つに対応。計64bit
char x; // 0の位置(0-origin)
char v; // ステップ数
} TBL; TBL tbl[500000]; int sz;
int hi[16] = {2,... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_164715/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_164715/source.c"
target datalayout = "e-m:e-p270: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.QUE = type { i32, i... |
#include <stdio.h>
#include <stdlib.h>
//枝刈り全探索……
int ans=45;
int p;
int a[16];
int L1dist(){
int ret=0;
for(int i=0;i<16;i++)if(a[i]!=15)ret+=abs(i/4-a[i]/4)+abs(i%4-a[i]%4);
return ret;
}
int swap(int i,int j){int t=a[i];a[i]=a[j];a[j]=t;}
void f(int pre,int movs){
int d=L1dist();
if(movs+d>ans)return;
if(d==... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_164759/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_164759/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ans = dso_local local_unna... |
#include<stdio.h>
void trace(int A[],int n){
int i;
for(i=1;i<=n;i++){
if(i!=1) printf(" ");
printf("%d",A[i]);
}
printf("\n");
}
int main(void){
int n,i,j;
int A[100000];
int ans;
while(1){
scanf("%d",&n);
if(n==0) break;
A[0]=-1;
for(i=1;i<=n;i++){
scanf... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_164816/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_164816/source.c"
target datalayout = "e-m:e-p270:32: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>
int main(void){
double a,b,c,d;
int c1=0,c2=0;
while(scanf("%lf,%lf,%lf",&a,&b,&c)!=EOF){
d=c/2;
if(a*a+b*b==c*c)
c1++;
else if(a==b&&a+b>c)
c2++;
}
printf("%d\n%d\n",c1,c2);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_164902/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_164902/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,x=0,y=0;
while(scanf("%d,%d,%d",&a,&b,&c)!=EOF){
if((a*a+b*b)==c*c) x++;
if(a==b) y++;
}
printf("%d\n%d\n",x,y);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_164982/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_164982/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 l1,l2,l3,rec=0,loz=0;
while(scanf("%d,%d,%d",&l1,&l2,&l3)!=EOF) {
if(l1*l1+l2*l2==l3*l3) rec++;
if(l1==l2) loz++;
}
printf("%d\n%d\n",rec,loz);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_165031/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_165031/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
int h,w,n;
scanf("%d%d%d",&h,&w,&n);
if (h > w)
{
if (n % h == 0)
printf("%d",n/h);
else
printf("%d",n/h+1);
}
else
{
if (n%w == 0)
printf("%d",n/w);
else
printf("%d",n/w+1);
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_165075/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_165075/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int H,W,N;
int n=0,count=0; //nは塗った数,countは塗った回数
scanf("%d", &H);
scanf("%d", &W);
scanf("%d", &N);
while(n<N){
if(H>W){
n += H;
count++;
}
else{
n += W;
count++;
}
}
printf("%d", count);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_165118/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_165118/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int H,W,N,ANS;
int K=1,c=1;
scanf("%d %d %d",&H,&W,&N);
if(H>=W){
K=H;
}else{
K=W;
}
for(c=1;c<N;c++){
ANS=K*c;
if(ANS>=N){
break;
}else{
}
}
printf("%d",c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_165161/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_165161/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int h, w, n;
scanf("%d%d%d", &h, &w, &n);
if (h < w)
h = w;
printf("%d\n", (n + h - 1) / h);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_165204/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_165204/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(){
double h[10000], max = 0, min = 100000;
int i = 0;
while(scanf("%lf", &h[i]) != EOF){
if (h[i] > max) max = h[i];
if (h[i] < min) min = h[i];
i++;
}
printf("%.1f\n", max - min);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_165248/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_165248/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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)
{
double min=(double)(1ll<<32);
double max=0;
double h;
while (scanf("%lf", &h) != EOF) {
if (min > h) min = h;
if (max < h) max = h;
}
printf("%f\n", max-min);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_165291/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_165291/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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()
{
double max=-1.0,min=1000000000.0,temp;
while(scanf("%lf",&temp)!=EOF)
{
if(temp<min)
min=temp;
if(temp>max)
max=temp;
}
printf("%.1f\n",max-min);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_165341/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_165341/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(){
double i ,max ,min ,tmp;
scanf ( "%lf" ,&tmp );
max = tmp;
min = tmp;
while ( scanf ( "%lf" ,&tmp ) != EOF ){
if ( tmp < min ){ /* 山の最大の高さ */
min = tmp;
}
else if ( tmp > max ){ /* 山の最小の高さ */
max = tmp;
}
}
i = max - min;
printf (... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_165385/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_165385/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
int h, w;
char s[50+5][50+5];
scanf("%d %d", &h, &w);
for(int i=0; i<h; i++)scanf("%s", s[i]);
for(int y=0; y<h; y++){
for(int x=0; x<w; x++){
if(s[y][x]=='.'){
int cnt=0;
for(int yy=-1; yy<2; yy++){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_165435/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_165435/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,h,w,j;
scanf("%d%d",&h,&w);
char f[h][w+1];
for(i=0;i<h;i++)scanf("%s",f[i]);
for(i=0;i<h;i++){
for(j=0;j<w;j++){
if(f[i][j]=='#')printf("#");
else {
int tmp=0;
if(i!=0&&f[i-1][j]=='#')tmp++;
if(i!=h-1&&f[i+1][j]=='#')tmp++;
if(j!=0&&f[i][j-1]=='#')tmp++;
if(j!=w-1&&f[i][j+1]=='#')t... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_165529/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_165529/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <math.h>
#include <stdlib.h>
#include <stdbool.h>
#define MOD 1000000007
#define END printf("\n");return 0;
#define QS09(how_data,data) qsort(data,how_data,sizeof(long),(int (*)(const void *,const void *))qsort_09);
#define QS90(how_data,data) qsort(da... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_165615/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_165615/source.c"
target datalayout = "e-m:e-p270: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.wdg = type { i64, i... |
#include <stdio.h>
int main()
{
int a, b, c, d;
int ans;
int division_right;
scanf("%d %d %d %d", &a, &b, &c, &d);
if (a <= c)
{
// cが区間の左端?
// a---b c---d
// 区間は重なっている?
if (b < c)
{
ans = 0;
}
else
{
if (b <= d) // a---c--b---d
{
division_right = b;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_165659/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_165659/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,v=0;
scanf("%d %d %d %d", &a, &b, &c, &d);
if((c>=a)&&(c<=b)){
if(d<b)
v=d-c;
else
v=b-c;
}
if((a>=c)&&(a<=d)){
if(b<d)
v=b-a;
else
v=d-a;
}
printf("%d\n",v);
ret... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_165709/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_165709/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main(void) {
int a, b, c, d, e, f, ans;
if(scanf("%d %d %d %d", &a, &b, &c, &d) == 1);
if(a < c) {
e = c;
} else {
e = a;
}
if(b > d) {
f = d;
} else {
f = b;
}
if(f < e) {
ans = 0;
} else{
ans = f - e;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_165752/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_165752/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int c,d;
int sum;
int max;
scanf("%d%d%d%d",&a, &b, &c, &d);
if(a>=c)
{
if(b>=d)
sum = d-a;
else
sum = b-a;
}
else
{
if(b>=d)
sum = d-c;
else
sum = b-c;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_165802/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_165802/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,re,x,y;
while (scanf("%d%d%d%d",&a,&b,&c,&d)!=EOF)
{
if (a>=c)
x=a;
else
x=c;
if (b>=d)
y=d;
else
y=b;
if (y>x)
re=y-x;
else
re=0;
printf("%d\n",re);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_165846/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_165846/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i,j,k,s,m;
int a[100000];
int b[100000];
int a1[100000];
int b1[100000];
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d",&a[i]);
scanf("%d",&b[i]);
}
k=n/2;
for(i=0;i<n;i++)
{
a1[i]=0;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16589/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16589/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 a,b,c,d,p,sum,q;
scanf("%d%d%d%d",&a,&b,&c,&d);
if(b<c||d<a)
{
sum=0;
}
else
{
if(b>d)
p=d;
else
p=b;
if(a>c)
q=a;
else
q=c;
sum=p-q;
}
printf("%d\n",sum);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_165932/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_165932/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,sum=100000;
scanf("%d",&n);
for(int i=1;i<=n;i++){
sum*=1.05;
if(sum%1000>=1){
sum=sum-(sum%1000)+1000;
}
}
printf("%d\n",sum);
return(0);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_165983/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_165983/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int n;
int s = 100000;
int r = 0;
scanf("%d",&n);
for(i = 0; i < n; i++){
r = s * 0.05;
s = s + r;
if(s % 1000 != 0){
s = s - s % 1000 + 1000;
}
}
printf("%d\n",s);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166032/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166032/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int debt = 100000;
int i;
scanf("%d", &n);
for (i = 0; i < n; i++){
debt *= 1.05;
if (debt % 1000 != 0){
debt = (debt / 1000 + 1) * 1000;
}
}
printf("%d\n", debt);
return (0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166083/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166083/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 money,i,n,k,num;
money = 100000;
scanf("%d",&n);
for( i=0;i<n;i++ ){
money *= 1.05;
num = money /1000;
k = money % 1000;
if( k > 0 ){
money = (num * 1000) + 1000;
}
}
printf("%d\n",money);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166133/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166133/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
int n;
scanf("%d", &n);
int num = 100000;
int i;
for( i = 0; i < n; i++ ){
num = (int)(num * 1.05 );
if( num % 1000 ) num += 1000;
num /= 1000;
num *= 1000;
}
printf("%d\n", num );
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166177/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166177/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,awin,bwin,common,tie;
scanf("%d %d",&a,&b);
if(a==b)
{
printf("0 6 0");
}
else if(a<b)
{
awin=a;
bwin=7-b;
if((b-a)%2==1)
{
awin+=(b-a)/2;
bwin+=(b-a)/2;
tie=0;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16622/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16622/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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, i, d = 100000;
scanf("%d", &n);
for (i = 0; i < n; i ++) {
d += d/20;
d = (d+999)/1000*1000;
}
printf("%d\n", d);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166270/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166270/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,n;
int debt=100000;
scanf("%d",&n);
for(i = 0 ; i < n ; i++)
{
debt *= 1.05;
if(debt % 1000 != 0)
{
debt += 1000 - (debt % 1000);
}
}
printf("%d\n",debt);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166320/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166320/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int n;
scanf("%d",&n);
int i;
int syakkinn = 100000;
for(i=0;i<n;i++){
syakkinn *= 1.05;
int n = syakkinn%1000;
if(n != 0){
syakkinn = syakkinn-n+1000;
}
}
printf("%d\n",syakkinn);
scanf("%d",&n);
return 0;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166371/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166371/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,m =100000;
scanf("%d",&n);
for( i=1; i<=n; i++){
m = m*1.05;
if(m%1000)
m = (m/1000+1)*1000;
}
printf("%d\n",m);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166436/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166436/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a[200005];
int b[200005];
int main()
{
int t,oo,pp,i,j,n;
scanf("%d",&n);
for (i=1;i<=n;i++)
scanf("%d",&a[i]);
b[0]=0;
for (i=1;i<n;i++)
{
scanf("%1d",&t);
if (i==1) b[i]=t;
else
b[i]=b[i-1]+t;
}
for (i=1;i<=n;i++)
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16648/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16648/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main(void){
int i,n,money=100000;
scanf("%d",&n);
for(i=0;i<n;i++){
money*=1.05;
money+=999;
money-=money%1000;
}
printf("%d\n",money);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166522/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166522/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
int n,x,i,s,z;
scanf("%d",&n);
s=100000;
for(i=1;i<=n;i++){
s=s*1.05;
if(!(s%1000==0)){
s=(s/1000)*1000+1000;
}
}
printf("%d\n",s);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166566/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166566/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[200];
int i, j, n, S[200], sum = 0, key;
while ( scanf("%s", s) != EOF ) {
key = 0;
for ( i = 0, j = strlen(s) - 1; i < strlen(s) / 2 + 1; i++, j-- ) {
if ( s[i] == s[j]) {key++; /*printf("s[%d]:%c s[%d]:%c key:%d\n", i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166623/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166623/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[110], str2[110];
int i, n, s;
s = 0;
while (scanf("%s", str) != EOF){
n = strlen(str) - 1;
for (i = 0; i < strlen(str); i++){
str2[i] = str[n];
n--;
}
str2[strlen(str)] = '\0';
if (strcmp(str, str2) == 0){
s++;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166674/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166674/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int n;
scanf("%d",&n);
printf("%d\n",n*n*n);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166717/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166717/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <math.h>
int main()
{
double n;
scanf("%lf",&n);
printf("%d",(int)pow(n,3));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166760/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166760/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
int n;
scanf("%d", &n);
printf("%d", n * n * n);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166810/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166810/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int N;
scanf("%d",&N);
printf("%d",N*N*N);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166854/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166854/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
int n;
scanf("%d", &n);
printf("%d\n", n * n * n);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166898/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166898/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, answer = 1;
scanf("%d", &N);
for (int i = 0; i < 3; i++)
answer *= N;
printf("%d", answer);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166940/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166940/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main() {
int N;
scanf("%d", &N);
printf("%d\n", N*N*N);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166984/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166984/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int N;
scanf("%d", &N);
printf("%d", N*N*N);
rewind(stdin);
getchar();
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167026/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167026/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
int n;
scanf("%d", &n );
printf("%d", n*n*n);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167077/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167077/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 m,n;
while(scanf("%d%d",&m,&n)>0){
int a;
if (n==0){
a=1;
}
else if(m>=2*n){
a=n;
}
else {
a=m-n;
}
printf("%d\n",a);
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16712/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16712/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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;
a=n*n*n;
printf("%d\n",a);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167163/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167163/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
int n;
scanf("%d", &n);
printf("%d\n",n*n*n);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167206/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167206/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
// 課題6_2 AtCoder Beginner Contest 069 B - i18n
// nk777
#include<stdio.h>
// 文字列操作に関するヘッダファイル
#include<string.h>
#define MAX 101
int main(void){
// 英単語の長さlength
int length;
// 英単語を格納する文字列word[]
char word[MAX];
// word[]を受け取る
scanf("%s", word);
// 文字列の長さを読み込む
length = strlen(wor... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167264/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167264/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/* 6_2
Y_Aizaki */
#include <stdio.h>
#include <string.h>
#define SIZE 120
int main(void){
char word[SIZE]; // 文字列
int wordlen, mwordlen; // 文字列の長さ(null込み)、挟むべき文字列中身の長さ
fgets(word, SIZE, stdin);
wordlen = strlen(word);
mwordlen = wordlen - 3;
printf("%c", word[0]);
while (mword... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167307/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167307/source.c"
target datalayout = "e-m:e-p270: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... |
/* ex6_2
Rikuta */
#include <stdio.h>
#include <string.h>
#define LIM 101
int main(void){
char word[LIM];
fgets(word,LIM,stdin);
for (int i = 0; i < LIM; i++)
{
if (word[i]=='\n')
{
word[i]='\0';
}
}
printf("%c%d%c\n",word[0],(int)strlen(w... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167350/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167350/source.c"
target datalayout = "e-m:e-p270: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 main(){
char s[100];
scanf("%s",s);
printf("%c%d%c\n",s[0],strlen(s)-2,s[strlen(s)-1]);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167394/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167394/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
int main(){
char s[101];
scanf("%s",s);
int str = strlen(s);
printf("%c%d%c\n", s[0],str-2,s[str-1]);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167437/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167437/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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_MATH_DEFINES
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <limits.h>
#include <stdbool.h>
#define inf (INT_MAX-1)
#define INF 9223372036854775807
#define PI 3.14159265358979323846;
#define EPS 1e-10
#define sq(n) ((n)*(n))
#define rep(i,n) for(i=0;i<... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167480/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167480/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@mod = dso_local local_unna... |
#include <stdio.h>
#include <stdlib.h>
int main(){
char s[150];
int count=0;
scanf("%s",s);
for(int i=0;s[i]!='\0';i++){
if(i==0) printf("%c",s[i]);
else if(s[i+1]=='\0'){
printf("%d%c",count,s[i]);
break;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167530/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167530/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 st[105];
int i, midchar;
int charcount=0;
for(i=0; i<100; i++)
{
scanf("%c",&st[i]);
if((st[i]<'a')|(st[i]>'z')) break;
charcount++;
}
midchar=charcount-2;
printf("%c%d%c\n",st[0],midchar,st[charcount-1]);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167589/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167589/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,tmp;
scanf("%d%d%d",&a,&b,&c);
if(a>b){tmp;tmp=a;a=b;b=tmp;}
if(b>c){tmp;tmp=b;b=c;c=tmp;}
if(a>b){tmp;tmp=a;a=b;b=tmp;}
printf("%d %d %d\n",a,b,c);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167631/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167631/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int a,b,c;
scanf("%d %d %d", &a, &b, &c);
if(a<=b && 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){
printf("%d %d %d\n", b, c, a);
}else if(c<=a &&... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167675/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167675/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 max(int x,int y){
if(x>y){
return x;
}else{
return y;
}
}
int min(int x, int y){
if(x<y){
return x;
}else{
return y;
}
}
int main()
{
int x,y,z;
scanf("%d %d %d",&x,&y,&z);
printf("%d %d %d\n",min(x,min(y,z)),x+y+z-min(x,min(y,z))-max(x,max(y,z)),max(x,max(y,... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167718/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167718/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,x,y,z;
scanf("%d %d %d",&a,&b,&c);
if(a>b){
x=b;
b=a;
a=x;
}
if(b>c){
x=b;
b=c;
c=x;
}
if(a>b){
x=b;
b=a;
a=x;
}
printf("%d %d %d\n",a,b,c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167761/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167761/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(a > b){
temp = a;
a = b;
b = temp;
}
if(b > c){
temp = b;
b = c;
c = temp;
}
if(a > b){
temp = a;
a = b;
b = temp;
}
prin... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167811/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167811/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void) {
/*
int a;
int b;
int c;
scanf("%d%d%d",&a,&b,&c);
//a,b,c?????????????????¨??¨??§3!=6??????????????§??????????????¨??¨????????°??????
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) prin... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167855/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167855/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,f;
scanf("%d %d %d",&a,&b,&c);
if(a<b){
d=a;
e=b;
}
else{
d=b;
e=a;
}
if(e<c)
f=c;
else{
f=e;
e=c;
}
if(d>e){
a=d;
d=e;
e=a;
}
printf("%d %d %d\n",d,e,f);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167899/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167899/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 number[3],i,j,k;
scanf("%d %d %d", number, number + 1, number + 2);
for (i = 0; i < 2; i++){
if (number[i]>number[i + 1]){
j = number[i];
number[i] = number[i + 1];
number[i + 1] = j;
}
}
if (number[0] > number[1]){
k = number[0];
number[0] = number[1];
numb... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167941/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167941/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
//
// main.c
// Practice
//
// Created by hoshino on 2015/10/19.
// Copyright ?? 2015??´ hoshino. All rights reserved.
//
#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;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167985/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167985/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,work;
scanf("%d %d %d",&a,&b,&c);
if(a > b){
work = a;
a = b;
b = work;
}
if(a > c){
work = a;
a = c;
c = work;
}
if(b > c){
work = b;
b = c ;
c = work;
}
printf("%d %d %d\n",a,b,c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168027/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168027/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 flip(int *a, int *b)
{
int c;
if(*a > *b) {
c = *a;
*a = *b;
*b = c;
}
}
int main(void)
{
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
flip(&a,&b); flip(&b,&c); flip(&a,&b);
printf("%d %d %d\n", a, b, c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168070/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168070/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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<=a){
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){
printf("%d %d %d\n",b,c,a);
}else if(c<=a && a<=b){
pri... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168128/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168128/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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){
int t;
t=a;
a=b;
b=t;
}
if(b>c){
int t;
t=b;
b=c;
c=t;
}
if(a>b){
int t;
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_168171/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168171/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,x;
scanf("%d %d %d",&a,&b,&c);
if(b<a){
x=a;
a=b;
b=x;
}
if(c<a){
x=a;
a=c;
c=x;
}
if(c<b){
x=b;
b=c;
c=x;
}
printf("%d %d %d\n",a,b,c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168214/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168214/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d %d %d",&a,&b,&c);
if(b < a) {
d=a;
a=b;
b=d;
}
if(c < b) {
d=b;
b=c;
c=d;
if(b < a) {
d=a;
a=b;
b=d;
}
}
printf("%d %d %d\n",a,b,c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168258/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168258/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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) {
// 1_2-C Sorting Three Numbers
int num[3];
int i,j,wk;
scanf("%d %d %d",&num[0],&num[1],&num[2]);
for(i=2; 0<=i; i--){
for(j=0; j<i; j++){
if(num[j] > num[j+1]){
wk = num[j];
num[j] = num[j+1];
num[j+1] = wk;
}
}
}
printf("%d %d %d\n",num[0],num[1],nu... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168308/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168308/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, temp;
scanf("%d%d%d", &a, &b, &c);
if (a > b) {
temp = b;
b = a;
a = temp;
}
if (b > c) {
temp = c;
c = b;
b = temp;
}
if (a > b) {
temp = b;
b = a;
a = temp;
}
printf("%d %d %d\n", a, b, c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168351/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168351/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(c > b){
d = b;
b = c;
c = d;
}
if(b > a){
d = a;
a = b;
b = d;
}
if(c > b){
d = b;
b = c;
c = d;
}
printf ("%d %d %d\n", c, b, a);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168395/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168395/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,x,y,z;
scanf("%d%d%d",&a,&b,&c);
if(a > b){
x = a;
a = b;
b = x;
}
if(b > c){
y = b;
b = c;
c = y;
}
if(a > b){
z = a;
a = b;
b = z;
}
printf("%d %d %d\n",a,b,c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168438/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168438/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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.