Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include <stdio.h>
int main(void)
{
int n[3], sub;
scanf("%d %d %d", &n[0], &n[1], &n[2]);
sub = 0;
if (n[0] > n[1]) {
sub = n[0];
n[0] = n[1];
n[1] = sub;
}
if (n[1] > n[2]) {
sub = n[1];
n[1] = n[2];
n[2] = sub;
}
if (n[0] > n[1]) {
sub = n[0];
n... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_285049/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_285049/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 data[3];
int i,j;
scanf("%d%d%d",&data[0],&data[1],&data[2]);
for(i=0;i<3;i++){
for(j=i+1;j<3;j++){
if(data[i]>data[j]){
data[i]^=data[j];
data[j]^=data[i];
data[i]^=data[j];
}
}
}
printf("%d %d %d\n",data[0],data[1],data[2]);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_285092/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_285092/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(a>c){
d=a;
a=c;
c=d;
}
if(b>c){
d=b;
b=c;
c=d;
}
printf("%d %d %d\n",a,b,c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_285142/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_285142/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 quicksort(int a[],int start,int end)
{
int pivot=a[start],i=start+1,j=end,temp;
while(i<=j)
{
while(i<=j)
{
if(a[i]<=pivot)
i++;
else
break;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_28520/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_28520/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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=0, c=0, i;
scanf("%d %d %d", &a, &b, &c);
if(a>b){
i = a;
a = b;
b = i;
}
if(a>c){
i = a;
a = c;
c = i;
}
if(b>c){
i = b;
b = c;
c = i;
}
printf("%d %d %d\n", a, b, c);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_285243/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_285243/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int i;
scanf("%d %d %d",&a,&b,&c);
if(a>b){
tmp=a;
a=b;
b=tmp;
}
if(b>c){
tmp=b;
b=c;
c=tmp;
}
if(a>b){
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_285300/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_285300/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
char s[101][101];
int i,j;
char t[101];
scanf("%d%d",&n,&l);
for(i=0;i<n;i++){
scanf("%s",s[i]);
}
for(i=0;i<n;i++){
for(j=0;j<n;j++){
strcpy(t,s[i]);
if(strcmp(s[i],s[j])<0){
strcpy(s[i],s[j]);
strcpy(s[j],... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_285344/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_285344/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 asc(const void *a, const void *b){
char *x=(char*)a, *y=(char*)b;
return strcmp(x,y);
}
int main(void){
int n, l, i;
char s[200][200];
scanf("%d %d", &n, &l);
for(i=0; i<n; i++) scanf("%s",s[i]);
qsort(s,n,sizeof(s[0]), asc);
fo... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_285388/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_285388/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 cmpstr(const void * a, const void * b){
const char *x = a, *y = b;
return strcmp(x,y);
}
int main(){
int n, l;
scanf("%d%d", &n, &l);
char s[100][101];
//printf("%p %p\n", s, s[1]);
scanf("%*c");
for (int i = 0; i < n; ++... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_285430/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_285430/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 s[n][l+1];
char temp[l+1];
for(int i=0;i<n;i++)scanf("%s",&s[i]);
for(int i=0;i<n-1;i++)for(int j=0;j<n-1;j++){
if(0<strcmp(s[j],s[j+1])){
strcpy(temp,s[j]);
strcpy(s[j],s[j+1]);
strcpy(s[j+1],temp);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_285474/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_285474/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include <stdint.h>
#include <string.h>
#include <wchar.h>
#define MIN(a, b) (a < b ? a : b)
#define MAX(a, b) (a > b ? a : b)
#define ABSS(a, b) (a > b ? a - b : b - a)
char S[100][101];
int compare_str(const void *a, const void *b) {... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_285517/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_285517/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
int main(){
int i,j;
int n,l;
scanf("%d",&n);
scanf("%d",&l);
char moji[110][110],tmp[110];
for(i=0;i<n;i++){
scanf("%s",moji[i]);
}
for(i=1;i<n;i++){
for(j=1;j<n;j++){
if(strcmp(moji[j-1], moji[j])>0){
strcpy(tmp, ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_285560/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_285560/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#if 0
cat <<EOF >mistaken-paste
#endif
// thanks for @rsk0315_h4x
#pragma GCC diagnostic ignored "-Wincompatible-pointer-types"
#define _USE_MATH_DEFINES
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <math.h>
#include <time.h>
#define BIG 2000000007
#def... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_285603/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_285603/source.c"
target datalayout = "e-m:e-p270: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.hwll = type { i64, ... |
#include <stdio.h>
#include <stdlib.h>
static int stack[100];
static int top = 0;
int isEmpty(void) {
if (top == 0) {
return -1;
}
return 0;
}
int isFull(void) {
if (top == 100) {
return -1;
}
return 0;
}
void push(int v) {
if (isFull() < 0) {
puts("push ERROR: stack full");
exit(EXIT_... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_285654/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_285654/source.c"
target datalayout = "e-m:e-p270: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 = internal unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main(void){
int t,top=0,x[100];
char a[99];
while( scanf("%s",a) != EOF ){
if(a[0] == '+'){
x[top-2] = x[top-2] + x[top-1];
top--;
}
else if(a[0] == '-'){
x[top-2] = x[top-2] - x[top-1];
top--;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_285704/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_285704/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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];
void push(int x) {
S[++top] = x;
}
int pop(void) {
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... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_285777/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_285777/source.c"
target datalayout = "e-m:e-p270: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>
#define N 199
#define MAX 100
void initialize();
int isFull();
void push(int);
int pop();
int S[MAX];
int top;
int main()
{
char Y[MAX];
int i=0,a,b;
while(1){
if(scanf(" %s",&Y) == EOF) break;
if(Y[0] >= '0' && Y[0] <='9') push(atoi(Y));
if(Y[0] == '... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_285827/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_285827/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include<string.h>
int main(){
int i=0,A[100];
char stuck[100];
while(scanf("%s",stuck)!=EOF){
if(stuck[0]=='+'){
A[i-2]=A[i-2]+A[i-1];
i--;
}
else if(stuck[0]=='-'){
A[i-2]=A[i-2]-A[i-1];
i--;
}
else if(stuck[0]=='*'){
A... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_285870/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_285870/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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];
void push(int);
int pop();
int main(){
int x, y;
char s[100];
top = 0;
while(scanf("%s", s) != EOF){
if(s[0] == '+'){
x = pop();
y = pop();
push(x + y);
}else if(s[0] == '-'){
y = pop();
x = pop(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_285913/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_285913/source.c"
target datalayout = "e-m:e-p270: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[10000];
void push(int x){
S[++top]=x;
}
int pop(){
return S[top--];
}
int main(){
int a,b;
char s[1000];
top=0;
while(scanf("%s",s)!=EOF){
if(s[0]=='+'){
b=pop();
a=pop();
push(a+b);
}else if(s[0]=='-'){
b=pop();
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_285979/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_285979/source.c"
target datalayout = "e-m:e-p270: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>
#define MAX 201
void initialize();
int isEmpty();
int isFull();
void push(int x);
int pop();
int top;
int S[MAX] = {0};
int main(void) {
int x, y;
char s[10];
while ( scanf("%s", s) != EOF) {
// printf("%s", s);
switch (s[0]) {
case '+':
x = pop() + pop();
push(x... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286020/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286020/source.c"
target datalayout = "e-m:e-p270: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 tameru[100];
int dasiire=0;
void ireru(int);
int nuku(void);
int main(){
int a,b,c;
char kazu[100];
while(scanf("%s",kazu)!=EOF){
if(strcmp(kazu,"+")==0){
a=nuku();
b=nuku();
ireru(a+b);
}
else if(strcmp(kazu,"-")==0){
a=nuku... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286064/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286064/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@dasiire = dso_local local_... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main(){
int x,a[101],count=1;
char str[100];
while(scanf("%s",str) != EOF){
if(str[0]=='+'){
a[count-2] += a[count-1];
count--;
}
else if(str[0]=='-'){
a[count-2]-=a[count-1];
count--;
}
else if( str[0]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286107/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286107/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
void push(int );
int pop(void);
int S[100];
int top = 0;
int main(){
int x,y;
char s[100];
while( scanf("%s", s) != EOF ){
if ( s[0] == '+' ){
x = pop() + pop();
push(x);
}
else if ( s[0] == '-' ){
y = pop();
x =... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286150/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286150/source.c"
target datalayout = "e-m:e-p270: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) {
/* top ?????????????????????????????????????????\ */
S[++top] = x;
}
int pop() {
top--;
/* top ??????????????????????´?????????? */
return S[top+1];
}
int main() {
int a, b;
char s[100];
top = 0;
while( sca... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286208/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286208/source.c"
target datalayout = "e-m:e-p270: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 ans[200];
int i=-1;//top.array
///bunnki ???????????\????????????????????????????????????????????????
char s[100];
while(scanf("%s",s)!= EOF)
{
if(s[0]=='+')
{
ans[i-1]=ans[i]+ans[i-1];
i--;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286251/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286251/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
typedef float Item;
static Item *s;
static int N;
void STACKinit(int);
int STACKempty(void);
void STACKpush(Item);
Item STACKpop(void);
int main(void){
char a[400];
int i=0;
scanf("%[^\n]",a);
int n=strlen(a);
int stackin=0;
STACKinit(214748364);
for... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286309/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286309/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/* Stack */
#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... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286367/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286367/source.c"
target datalayout = "e-m:e-p270: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[100];
void push(int x) {
S[++top] = x;
}
int pop() {
top--;
return S[top + 1];
}
int main() {
int a, b;
top = 0;
char s[99];
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_286417/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286417/source.c"
target datalayout = "e-m:e-p270: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 push(int *s,int x);
int pop(int *s);
static int top=1;
int main(){
int s[100],a,b,c,st;
char bash[100];
while(st=(scanf(" %s",bash))!=EOF){
/* if(bash[0]=='\n')break; */
if(bash[0]=='+')
push(s,(pop(s)+pop(s)));
else if(bash[0]=='-... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286475/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286475/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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];
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();
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286525/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286525/source.c"
target datalayout = "e-m:e-p270: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>
void pop();
void push(int);
int top=0;
int stack[200];
int main(){
int i=0;
char s[4];
while((scanf("%s",s))!=EOF){
if(strcmp(s,"+")==0){
stack[top-1]=(stack[top])+(stack[top-1]);
pop();
}
else if(strcmp(s,"-")==0){
stack[top... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286576/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286576/source.c"
target datalayout = "e-m:e-p270: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>
#define N 200
#define MAX 200
int top;
int S[MAX];
void initialize();
int isEmpty();
int isFull();
void push(int x);
int pop();
int main()
{
int i,num,l,k;
char n[N];
initialize();
while((scanf("%s",n)) != EOF){
if(n[0] == '+'){
l = pop();
k = pop();
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286619/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286619/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 count=0;
int Stack[100];
int main(void){
int i,j;
char s[100];
while( scanf("%s",s) != EOF ){
if ( s[0] == '+' ){
i=pop();
j=pop();
push(i+j);
} else if ( s[0] == '-' ){
i=pop();
j=pop();
push(j... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286662/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286662/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@count = dso_local local_un... |
#include<stdio.h>
#include<stdlib.h>
int main(void){
int data[200],cnt=0,i;
char input[100];
while(scanf("%s",input)!=EOF){
//演算子の処理
if(input[0]=='+' || input[0]=='-' || input[0]=='*'){
switch(input[0]){
case '+':
data[cnt-2]=data[cnt-2]+data[cnt-1];
break;
case '-':
data[cnt-2]=dat... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286712/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286712/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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];
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] == '-'){... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286763/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286763/source.c"
target datalayout = "e-m:e-p270: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 = 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();
push(a + b);... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286806/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286806/source.c"
target datalayout = "e-m:e-p270: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>
int main()
{
int n,i,j,t;
scanf("%d",&n);
int a[n];
for(i=0;i<n;i++)
{
scanf("%d",&a[i]);
}
for(i=0;i<n;i++)
{
for(j=0;j<n;j++)
{
if(a[j]<a[i])
{
t=a[i];
a[i]=a[j];
a[j]=t;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_28685/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_28685/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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=0,s[100];
void push(int);
int pop();
int main(){
char c[100];
int ans,popn;
while(scanf("%s",c)!=EOF){
ans=0;
switch(c[0]){
case '+':
ans=pop();
ans+=pop();
push(ans);
break;
case '-':
ans=(-1)*pop();
ans+=pop();
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286914/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286914/source.c"
target datalayout = "e-m:e-p270: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>
int A[1000];
int p;
void push(int);
int pop();
int main() {
p=0;
char A[10];
while(scanf("%s",A)==1) {
if(A[0]=='+' || A[0]=='-' || A[0]=='*'){
int x=pop();
int y=pop();
if(A[0]=='+') push(x+y);
else if(A[0]=='-') push(y-x);
else push(x*y);
}
else {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286958/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286958/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@p = dso_local local_unname... |
#include<stdio.h>
int stack[100], top=0;
void push(int);
int pop(void);
int main(){
int i, num;
char data;
while(scanf("%c",&data)!=EOF && data!='\n'){
//+
if(data=='+'){
num=pop()+pop();
push(num);
}
//-
else if(data=='-'){
num=pop()-pop();
num*=-1;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287007/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287007/source.c"
target datalayout = "e-m:e-p270: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>
void push(int);
int pop();
int top,s[1000];
int main(){
int x,y;
char a[100];
top=0;
while(scanf("%s",a)!=EOF){
if(a[0]=='+'){
x=pop();
y=pop();
push(x+y);
}
else if(a[0]=='-'){
y=pop();
x=pop();
push(x-y... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287058/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287058/source.c"
target datalayout = "e-m:e-p270: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];
int max=1000;
int isEmpty(){
int a=0;
if(top==0){
a=1;
return a;
}
return a;
}
int isFULL(int max){
int b=0;
if(top>=max-1){
b=1;
return b;
}
return b;
}
void push(int x){
if(isFULL(max)==1){
exit(1);
}
top++;
S[top]=x... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287100/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287100/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@max = dso_local local_unna... |
#include <stdio.h>
#include <stdlib.h>
int S[1000];
int top = 0;
int pop() {
top--;
return S[top + 1];
}
void push(int x) {
S[++top] = x;
}
int main() {
char s[100];
int a, b;
while (scanf("%s", &s) != EOF){
if (s[0] == '+') {
a = pop();
b = pop();
push(a + b);
} else if(s[0] == '*'){
a = po... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287144/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287144/source.c"
target datalayout = "e-m:e-p270: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[100];
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();... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287188/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287188/source.c"
target datalayout = "e-m:e-p270: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, 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] == '-'... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287230/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287230/source.c"
target datalayout = "e-m:e-p270: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>
void push(int);
int pop(void);
int top = 0;
int simbol[100];
void initialize(){
top = 0;
}
int isEmpty(){
return top == 0;
}
int main(){
int a,b,x;
char n[100];
while( scanf("%s", n) != EOF ){
if ( n[0] == '+' ){
a=pop();
b=pop();... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287274/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287274/source.c"
target datalayout = "e-m:e-p270: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>
void push(int);
int pop(void);
int top,S[1000];
int main(){
int x;
char s[100];
int n,m;
top = 0;
while(scanf("%s",s) != EOF ){
if ( s[0] == '+' ){
n = pop();
m = pop();
push(n+m);
} else if ( s[0] == '-' ){
m = pop... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287317/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287317/source.c"
target datalayout = "e-m:e-p270: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 A[100],n;
void push(int a){
A[++n] = a;
}
int pop(){
n--;
return A[n + 1];
}
int main(){
int x,y;
char s[100];
n = 0;
while(scanf("%s",s) != EOF){
if ( s[0] == '+' ){
y = pop();
x = pop();
push(x + y);
}
el... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287360/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287360/source.c"
target datalayout = "e-m:e-p270: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 local_unname... |
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
int main(){
int i = 0, tmp;
char array[100];
int stack[99];
while(scanf("%s",array) != EOF){
if ( array[0] == '+' ){
tmp = 0;
tmp += stack[i];
stack[i] = 0;
i -= 1;
tmp += stack[i];
stack[i] = tmp;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287403/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287403/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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];
void push(int x) {
/* top加一之后把元素插入
top所指的位置 */
S[++top] = x;
}
int pop() {
top--;
/* 返回top所指的元素 */
return S[top+1];
}
int main() {
int a, b;
top = 0;
char s[100];
while ( scanf("%s", s) != EOF ) {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287454/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287454/source.c"
target datalayout = "e-m:e-p270: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>
int main(void){
long n,k,c;
scanf("%ld %ld %ld", &n, &k, &c);
char s[n];
scanf("%s", s);
long first[k];
long last[k];
long work = 0;
long day;
for (day = 0; work < k; day++) {
if (s[day] == 'o') {
first[work] = day;
day += c;
work++;
}
}
work = 0;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287498/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287498/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include <ctype.h>
#include <stdint.h>
#include <string.h>
#include <wchar.h>
#include <math.h>
#define N_MAX (100)
#define P_MAX (100)
#define DP_ARRAY_SIZE (N_MAX * P_MAX / 32 + 1)
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287548/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287548/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,M,R,ans=100000000;
int r[8];
int dist[200][200];
int visit[8];
int min(int a,int b){
if(a<b)return a;
return b;
}
void dfs(int c,int v,int dis){
if(c==R)ans=min(ans,dis);
for(int i=0;i<R;i++){
if(visit[i]==0){
visit[i]=1;
dfs(c+1,i,dis+dist[r[v]][r[i]]);
visit[i]=0;
}
}
}
i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287591/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287591/source.c"
target datalayout = "e-m:e-p270: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>
int main(void) {
int a,b,i,y,z = 0;
while(scanf("%d%d",&a,&b) , a != 0){
if(z) printf("\n");
y = 0;
for(i = a;i <= b;i++){
if((!(i % 4))&&((i % 100)||(!(i % 400)))){
printf("%d\n",i);
y++;
}
}
if(!(y)) printf("NA\n");
z++;
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287634/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287634/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, cy, d, m=0;
while(1){
d=0;
scanf("%d %d", &a, &b);
if(a==0 && b==0){
goto S;//I¹ð
}
if(m!=0) printf("\n");
for(cy=a; cy<=b; cy++){
if(cy%4==0 && cy%100!=0){
printf("%d\n", cy);
d++;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287692/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287692/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
#define N 100
#define MD 0x7fffffff
#define M (1 << 15)
int count(int x) {
return x == 0 ? 0 : count(x & x - 1) + 1;
}
int X, Y;
void srand_() {
struct timeval tv;
gettimeofday(&tv, NULL);
srand(tv.tv_sec ^ tv.tv_usec);
X = (rand... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_28775/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_28775/source.c"
target datalayout = "e-m:e-p270: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.timeval = type { i64,... |
#include<stdio.h>
int main(void){
int w,sum=0;
for(;;){
scanf("%d",&w);
if(w == -1 ) break;
sum = 0;
if(w<11){
sum += 1150;
}else if(w <21){
sum += 1150 + (w-10) * 125;
}else if(w <31){
sum += 1150 + 10 * 125 + (w-20) *140;
}else if(30<w){
sum += 1150 + 10 * 125 + 10 * 140 + (w-30) *160;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287814/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287814/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 w;
while(1){
scanf("%d",&w);
if(w==-1)break;
if(w<=10)printf("3130\n");
else if(w<=20)printf("%d\n",3130-125*(w-10));
else if(w<=30)printf("%d\n",1880-140*(w-20));
else printf("%d\n",480-160*(w-30));
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287872/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287872/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,m,i;
long long sum=0;
scanf("%d",&n);
for(i=0;i<n&&scanf("%d",&m);i++){
sum+=(long long)m;
}
printf("%d\n",(int)(sum/(long long)n));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287915/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287915/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <math.h>
int main(void) {
long int quantity, amount, i, ave, sum = 0;
scanf("%ld", &quantity);
for(i = 0; i < quantity; i++) {
scanf("%ld", &amount);
sum += amount;
}
ave = floor(sum / quantity);
printf("%ld\n", ave);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287966/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287966/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
#define MOD 1000000007
#define MIN 999999999
#define MAX -999999999
typedef long long int ll;
typedef unsigned long long int ull;
void llswap(ll *x,ll *y){ll temp;temp=*x;*x=*y;*y=temp;}
void swap(int *x,int *y){int tmp;tmp=*x;*x=*y;*y=tmp;}
int r... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_288015/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_288015/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 quant;
int sum = 0;
scanf("%d\n", &quant);
int score[quant];
int is10n[quant];
for (int i = 0; i < quant; i++) {
(void)scanf("%d", &score[i]);
if (score[i] % 10 == 0) { // true-> 0, false -> 1;
is10n[i] = 0;
}else{
is... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_288066/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_288066/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,w,h;
unsigned long long in;
int flg=0;
scanf("%llu",&in);
for(n=1;n<3500;n++){
for(w=n;w<3500;w++){
if(4*n*w-in*(n+w)==0) continue;
if((in*n*w)%(4*n*w-in*(n+w))==0){
h=(in*n*w)/(4*n*w-in*(n+w));
printf("%d %d %d\n",h,n,w);
flg=1;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_288123/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_288123/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
typedef long long ll;
typedef struct _data
{
char s[3];
int q;
} data;
int q_cmp(const void *a, const void *b)
{
return ((data*)a)->q - ((data*)b)->q;
}
int main()
{
char ac[3] = "AC";
char wa[3] = "WA";
int N, M;
scanf("%d%d", &N, &M);
data set[M+1];... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_288167/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_288167/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct._data = type { [3 x... |
#include<stdio.h>
int main()
{
int t, n,x,a,b,y,z,c, i;
scanf("%d", &t);
while(t--)
{
scanf("%d%d%d%d", &n, &x, &y, &z);
if(y>=z)
{a=y;b=z;}
else
{
a=z;b=y;
}
if(n==a&&b==1)
i=a-b;
else if((n-a)+(b-1)<=x)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_28821/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_28821/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 ... |
// Twitter@KonoLv1 2020年春からエンジニア見習いデビュー!
// 標準入出力を扱うヘッダーファイルの読み込み
#include <stdio.h>
// "atoi" "atof"などのキャスト、"rand" 疑似乱数を発生させるヘッダーファイルの読み込み
#include <stdlib.h>
// "strcpy" "strcat"などの文字列操作や"strlen"文字列長さ取得などを行うヘッダーファイルの読み込み
#include <string.h>
// "sqrtl" "fmax"などの数値操作を行うヘッダーファイルの読み込み
#include <math.h>
int main(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_288260/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_288260/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d %d",&a,&b);
if(a>b){
printf("a > b\n");
}else if(a<b){
printf("a < b\n");
}else{
printf("a == b\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_288303/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_288303/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d %d",&a,&b);
if(a<b){
printf("a < b\n");
}
if(a>b){
printf("a > b\n");
}
if(a==b){
printf("a == b\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_288369/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_288369/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d %d",&a,&b);
if(a<b){
printf("a < b");
}
if(a>b){
printf("a > b");
}
if(a==b){
printf("a == b");
}
printf("\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_288411/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_288411/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf ("%d %d",&a,&b);
if(a < b)
{
printf("a < b");
}else if(a > b)
{
printf("a > b");
}else
{
printf("a == b");
}
printf("\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_288462/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_288462/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d%d",&a,&b);
if (a > b) {
printf("a > b\n");
} else if (a < b) {
printf("a < b\n");
} else {
printf("a == b\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_288512/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_288512/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d %d", &a, &b);
if(a < b) printf("a < b\n");
else if(a > b) printf("a > b\n");
else printf("a == b\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_288563/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_288563/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d%d",&a,&b);
if(a<b){
printf("a < b\n");
}if(a>b){
printf("a > b\n");
}if(a==b){
printf("a == b\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_288635/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_288635/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d %d",&a,&b);
if(a>b) printf("a > b\n");
else if(a<b) printf("a < b\n");
else printf("a == b\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_288686/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_288686/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d %d",&i,&j);
if(i==j)
printf("a == b\n");
else if(i>j)
printf("a > b\n");
else
printf("a < b\n");
//scanf("%d %d",&i,&j);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_288729/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_288729/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d%d",&a,&b);
if(a==b)
printf("a == b\n");
else if(a>b)
printf("a > b\n");
else if(a<b)
printf("a < b\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_288772/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_288772/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d %d\n", &a, &b);
if(a < b) {
printf("a < b\n");
} else if(a > b) {
printf("a > b\n");
} else {
printf("a == b\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_288822/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_288822/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <limits.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <math.h>
#define P 1000000007
int comp(const void *a, const void *b){return *(int*)a-*(int*)b;}
int d[2][101][4];
int main(void){
char s[103];
int n, k, i, j;
scanf("%s%d", s+1, &k);
n=... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_288880/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_288880/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ads(int a,int b){
if(a < b){
int temp = a;
a = b;
b = temp;
}
if(b == 0){
return a;
}
ads(b, a%b);
}
int main(void){
int n , k;
scanf("%d %d",&n ,&k);
int a[n] , max = 0;
for(int i = 0;i < n;i ++){
scanf("%d",&a[i]);
if(max < a[i]){
max = a[i];
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_288923/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_288923/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i1,j,j1,h,w,S,S1,S2;
while(1)
{
scanf("%d%d",&h,&w);
if(h==0 && w==0) break;
S=h*h+w*w;
S2=150*150;
for(i=1;i<=150;i++)
{
for(j=150;j>=i+1;j--)
{
S1=i*i+j*j;
if(S<S1 && S2>S1 || S==S1 && h<i && S2>S1)
{
S2=S1;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_288981/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_288981/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, t2, t2_a, i, j, h_a, w_a, ans;
while(1){
scanf("%d %d", &h, &w);
if( (h == 0)&&(w == 0)) break;
t2 = h*h + w*w;
h_a = w_a = 0;
ans = 22500;
for(i = 1; i <= 149; i++){
for(j = i+1; j <= 150; j++){
t2_a = i*i + j*j;
if( t2 <=... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_289023/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_289023/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 N 100000
#define nil -1
#define WHITE 0
#define BLACK 1
#define INF 1<<21
typedef struct
{
int prev,next,cost;
}Edge;
int n,d[N];
Edge e[500000];
void dijkstra(int);
int main(){
int i,j,u,k,c,ed=0,v,w=INF,r;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d%d",&u,&k... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_289089/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_289089/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.Edge = type { i32, ... |
#include<stdio.h>
#define M 100000
#define IN 300000
typedef struct{
int g,bac;
int co;
}B;
int n,b[M];
B A[600000];
void Troo(int x);
int main(){
int i,j;
int a,k,cut=0;
scanf("%d",&n);
for(i=0;i<n;i++){
b[i]=IN;
}
for(i=0;i<n;i++){
scanf("%d %d",&a,&k);
for(j=0;j<k;j++){
A[c... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_289131/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_289131/source.c"
target datalayout = "e-m:e-p270: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.B = type { i32, i32... |
#include<stdio.h>
#include<stdlib.h>
#define INF (1<<30)
struct node{
int ID,cost;
struct node *next;
};
typedef struct node* nP;
nP List[10000],NIL;
int n,size;
struct node minHeap[500050],empty;
//{{{ Functions
void MinHeapify(int pos){
int L=pos*2, R=pos*2 +1,min=pos;
struct node tmp;
if(L<=size && minHeap... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_289175/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_289175/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node = type { i32, ... |
#include<stdio.h>
#include<stdlib.h>
#define INF 1000000001
typedef struct vertice
{
int cost;
int status;
int numOfAdj;
int *adjList;
int *costList;
} ver;
ver *v;
int n;//the number of vertices
void init();
void setArray(int);
void dijkstra(void);
int main(void)
{
int i,j;//counter
int key;
scanf("%d"... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_289218/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_289218/source.c"
target datalayout = "e-m:e-p270: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.vertice = type { i3... |
// Aizu Vol-2 0280: The Outcome of Bonze
// 2017.8.7
#include <stdio.h>
#include <ctype.h>
char *gets(char *);
char buf[150], *p;
int getInt(void)
{
int n = 0;
while (isspace(*p)) p++;
while (isdigit(*p)) n = 10 * n + (*p++ - '0');
return n;
}
int ba;
int f[12];
int main()
{
int N;
int i, j, k;
while (1) {... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_289269/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_289269/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@p = dso_local local_unname... |
#include <stdio.h>
#include <stdlib.h>
int main(int argc, const char * argv[]) {
while (1) {
int h,w;
scanf("%d %d",&h,&w);
if(h == 0 && w == 0){
break;
}
int i,j;
for(i=0;i<h;i++){
for(j=0;j<w;j++){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_289333/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_289333/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int h, w, i, j;
while (scanf("%d %d", &h, &w), h != 0 || w != 0){
for (i = 0; i < h; i++){
for (j = 0; j < w; j++){
printf("#");
}
printf("\n");
}
printf("\n");
}
return (0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_289377/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_289377/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 D[8];
int n,z=0,i;
scanf ("%i",&n);
for (i=1;i<8;i++)
scanf ("%i",&D[i]);
D[0]=D[1]+D[2]+D[3]+D[4]+D[5]+D[6]+D[7];
n=n%D[0];
for (i=7;i>0;i--)
{
if (D[i] != 0)
{
z=i;
break;
}
}
if (z==0)
return 1;
if (n==0... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_28942/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_28942/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,k,H,W;
while(1)
{
scanf("%d %d",&H,&W);
if(H==0&&W==0)
break;
for(i=0;i<H;i++)
{
for(k=0;k<W;k++)
printf("#");
printf("\n");
}
printf("\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_289470/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_289470/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int h, w;
while(1){
scanf("%d %d", &h,&w);
if(h==0 && w==0) break;
for(i=0; i<h; i++){
for(j=0; j<w; j++){
printf("#");
}
printf("\n");
}
printf("\... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_289535/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_289535/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
int h,w,i,j,k;
for(k=0;;k++){
scanf("%d %d",&h,&w);
if(h==0 && w==0){
break;
}
for(i=0;i<h;i++){
for(j=0;j<w;j++){
printf("#");
}
printf("\n");
}
printf("\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_289593/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_289593/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
char a = 0;
scanf("%c",&a);
if (97 <= a&&a <= 122) {
printf("a");
}
if (65<= a&&a <= 90) {
printf("A");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_289665/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_289665/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a;
scanf("%c", &a);
if(a>=65&&a<97)printf("A");
else printf("a");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_289708/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_289708/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
char input;
scanf("%c\n",&input);
if(input>=65 && input<=90) printf("A\n");
else printf("a\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_289751/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_289751/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a;
scanf("%c",&a);
if (a<'a') printf("A");
else printf("a");
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_289795/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_289795/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
char a;
scanf("%c", &a);
if ('A' <= a && a <= 'Z')
printf("A");
if ('a' <= a && a <= 'z')
printf("a");
return (0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_289845/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_289845/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
char a;
scanf("%c",&a);
if('a'<=a&&a<='z'){
printf("a");
}
else if('A'<=a&&a<='Z'){
printf("A");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_289889/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_289889/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a;
scanf("%c",&a);
if(a<='Z')
puts("A");
else
puts("a");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_289931/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_289931/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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.