Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include<stdio.h>
int main(void){
int a,b,c,t;
scanf("%d %d %d" ,&a,&b,&c);
if(a>b){
t=a;
a=b;
b=t;
}
if(b>c){
t=b;
b=c;
c=t;
if(a>b){
t=a;
a=b;
b=t;
}
}
printf("%d %d %d\n" ,a,b,c);
return(0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_285116/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_285116/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
int main()
{
char s[10001];
char saida[10001];
int i,tam,*set,indiceInicio,temp,cont,j;
saida[0]='\0';
scanf("%s",s);
set=(int*)calloc(sizeof(int),10001);
sscanf(&s[i],"%d",&temp);
set[temp]=1;
for(i=0;i<strlen(s);i+... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_28516/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_28516/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 a[3];
int b ,c ,d;
scanf("%d %d %d" ,&a[0] ,&a[1] ,&a[2]);
for(b = 0; b < 3; ++b){
for(c = b + 1; c < 3; ++c){
if(a[b] > a[c]){
d = a[b];
a[b] = a[c];
a[c] = d;
}
}
}
printf("%d %d %d\n" ,a[0] ,a[1] ,a[2]);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_285202/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_285202/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
int a[3];
int i, b;
scanf("%d %d %d", &a[0], &a[1], &a[2]);
if(a[0] > a[1]){
b = a[0];
a[0] = a[1];
a[1] = b;
}
if(a[1] > a[2]){
b = a[1];
a[1] = a[2];
a[2] = b;
}
if(a[0] > a[1]){
b = a[0];
a[0] = a[1];
a[1] = b;
}
printf("%d %d %d\n", a[0],... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_285253/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_285253/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
// Aizu 1102: Calculation of Expressions
// 2017.9.12 bal4u@uu
#include <stdio.h>
#include <ctype.h>
#define abs(a) ((a)>=0?(a):-(a))
#define B 10000
int calc();
char buf[200], *p;
int factor(int *r, int *i)
{
int r1, i1;
if (*p == '(') { p++; if (!calc(&r1, &i1)) return 0; p++; }
else if (*p == 'i') p++, r1 ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_285310/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_285310/source.c"
target datalayout = "e-m:e-p270: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<string.h>
int main(){
int N,L;
scanf("%d%d",&N,&L);
int i,j;
char s[N][L+1];
char tmp[L+1];
char str[10001];
for(i=0;i<N;i++){
scanf("%s",s[i]);
}
//printf("%s\n",s[0]);
for(i=1;i<N;i++){
for(j=1;j<N;j++){
if(strcmp(s[j-1],s[j])>0){
strcpy(tmp,s... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_285376/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_285376/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#define N 529
int main(void)
{
char s[N][N],a[N];
int n,l,i,j;
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++){
if(strcmp(s[j-1],s[j])>0){
strcpy(a,s[j-1]);
strcpy(s[j-1],s[j]);
strcpy(s[j],a);
}
}
}
for... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_285419/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_285419/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
int cmp(const void *a, const void *b)
{
return strcmp(a,b);
}
int main(void)
{
int n,l;
char s[110][110];
scanf("%d%d", &n, &l);
for(int i=0;i<n;i++) scanf("%s", s[i]);
qsort(s,n,sizeof(s[0]),cmp);
for(int i=0;i<n;i++) printf("%s",s[... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_285462/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_285462/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 argc, char *argv[]) {
int n, l;
char str[100][100 + 1];
char tmp[101];
scanf("%d%d", &n, &l);
for (int i = 0; i < n; i++) {
scanf("%s", str[i]);
}
for (int j = 0; j < n - 1; j++) {
for (int i = 0; i < n - 1; i++) {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_285527/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_285527/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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){
int n,l,i,j;
char s[100][101],c[101];
scanf("%d %d",&n,&l);
for(i=0;i<n;i++)
scanf("%s",s[i]);
for(i=0;i<n-1;i++){
for(j=n-1;j>i;j--){
if(strcmp(s[j-1],s[j])>0){
strcpy(c,s[j-1]);
strcpy(s[j-1],s[j]);
strcpy(s[j],c);
} } }
for(i=0;i<n;i++)
printf("%s",s[i]);
putchar(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_285570/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_285570/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 thw(int,int);
void chng(char*,int*,int,int);
int thw(int s,int b)
{
for(int i=1;i<s;i++) b = b * 10;
//printf("b=%d\n",b);
return b;
}
void chng(char *box,int *A,int s,int cnt)
{
int tmp,bt=0;
for(int i=s-1;i>=0;i--)
{
tmp = box[i]-'0';
//printf("boxは?=%d,... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_285628/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_285628/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 computeRPN( int *stack, int n, int opt )
{
int res;
res=0;
if( '+'==opt ) {
res=stack[n-1]+stack[n];
} else if( '-'==opt ) {
res=stack[n-1]-stack[n];
} else if( '*'==opt ) {
res=stack[n-1]*stack[n];
} else if( '/'==opt ) {
res=stack[n-1]/stack[n];
}
return res;
}
int main( vo... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_285679/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_285679/source.c"
target datalayout = "e-m:e-p270: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()
{
int i=0;
int stack[100];
char s[100];
while(scanf("%s", s) != EOF){
if(s[0] == '+'){
stack[i-2] += stack[i-1];
i--;
}
else if(s[0] == '-'){
stack[i-2] -= stack[i-1];
i--;
}
else if(s[0] == '*'){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_285758/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_285758/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#define MAX 100
void push(int);
int pop(void);
void isEmpty(void);
void isFull(void);
int top=0,S[1000];
/*void isEmpty(){
return top=0;
}*/
/*void isFull(){
return top >= MAX-1;
}*/
void push(int x){
top++;
S[top]= x;
}
int pop(){
top--;
ret... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_285800/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_285800/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@top = dso_local local_unna... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#define MAX 100
void initialize(void);
int isEmpty(void);
int isFull(void);
void push(int);
int pop(void);
int top;
int stack[MAX];
int main(){
int a,b;
char s[100];
while( scanf("%s", s) != EOF ){
if ( s[0] == '+' ){
push(pop()+pop());
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_285851/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_285851/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 data[200];
int x=0;
char input[5];
int top = 1;
while((scanf("%s",input)) != EOF){
/* x = x + 1;*/
/* scanf("%s",input);*/
if(input[0] == '+'){
data[top - 2] = data[top -2] + data[top -1];
top = top- 1;
}
else if(i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_285895/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_285895/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <stdbool.h>
#include <assert.h>
#define MAX 1000010
#define MOD 1000000007
#define clr(ar) memset(ar, 0, sizeof(ar))
#define read() freopen("lol.txt", "r", stdin)
long long ar[MAX], fact[MAX];
long long expo(long long x, long long n){
long long res = 1;
while ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_28596/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_28596/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@fact = dso_local local_unnam... |
#define _CRT_SECURE_NO_WARNINGS
#define _USE_MATH_DEFINES
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
void push(int, int,int []);
int pop(int, int[]);
int main() {
char array[1000000];
char *pt=array,*tok;
int top=0,result[100],num,a,b;
scanf("%[^\n]*s", pt);
tok = strtok(pt, " ");
while (tok!=NULL) ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286001/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286001/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int pop();
void push();
int A[100],top=0;
int main(){
int a,b;
char s[100];
while(scanf("%s",s)!=EOF){
if(s[0]=='+'){
a=pop();
b=pop();
push(a+b);
}
else if(s[0]=='-'){
a=pop();
b=pop();
push(b-a);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286045/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286045/source.c"
target datalayout = "e-m:e-p270: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,S1[200];
void initialize(){
top = 0;
}
/*int isEmpty(){
if(top == 0)
return 1;
}*/
/*void push(int y, int *S){
top++;
S[top] = y;
}*/
void push(int x){
S1[++top] = x;
}
/*int pop(int *S){
if(isEmpty)
fprintf(stderr,"underflow\n");
top--;
retur... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286096/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286096/source.c"
target datalayout = "e-m:e-p270: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 MAX 199
void initialize(void);
int isEmpty(void);
int isFull(void);
void push(int x);
int pop(void);
int top;
int S[MAX];
int main(){
int y1,y2;
char x[100];
initialize();
while(scanf("%s",x)!=EOF){
if ( x[0] == '+' ){
y1=pop();
y2=pop();
push... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286139/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286139/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 num[1000];
int t;
void push(int x) {
num[++t] = x;
}
int pop() {
return num[t--];
}
int main(void) {
char formula[100];
int a, b;
t = 0;
while ( scanf("%s", formula) != EOF ) {
if (formula[0] == '+') {
a = pop();
b = pop();
push( a + b );
}else if (f... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286182/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286182/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@num = dso_local local_unna... |
#include<stdio.h>
#include<stdlib.h>
typedef int stack_data;
#define success 1
#define failure 0
typedef struct{
int data_num;
int stack_size;
stack_data *data;
}stack;
stack *make_stack(int stack_size){
stack *p;
p=malloc(sizeof(stack));
p->data=malloc(stack_size*sizeof(stack_data));
p->stack_size=... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286225/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286225/source.c"
target datalayout = "e-m:e-p270: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.stack = type { i32,... |
#include <stdio.h>
#include <stdlib.h>
int stack[1000];
int main(void) {
int top = 0, val;
char buf[100], *ptr;
while (scanf("%s", buf) != EOF) {
val = strtol(buf, &ptr, 10);
if (buf == ptr) {
switch (*buf) {
case '+': val = stack[top - 2] + stack[top - 1]; break;
case '-': val = stack[top - 2] - sta... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286276/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286276/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
char op[100];
int num[100];
for(i=0;i<100;i++){
num[i]=0;
}
i=0;
while(scanf("%s",op)!=EOF){ //scanf?????????????????§
if(op[0]=='+'){
num[i-2]=num[i-1]+num[i-2];
i--;
}else if(op[0]=='-'){
num[i-2]=... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286326/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286326/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 long gcd(long long a,long long b) {
return b?gcd(b,a%b):a;
}
void solve() {
long long p,q,b;
scanf("%I64d",&p);
scanf("%I64d",&q);
scanf("%I64d",&b);
long long gcd1=gcd(p,q);
p/=gcd1;
q/=gcd1;
gcd1=gcd(q,b);
while(gcd1!=1) {
q/=gcd1;
gcd1=gcd(q,gcd1);
}
if(q==1)puts("Finite");
el... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_28637/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_28637/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int top, S[1000];
void push(int x){
/*top
*/
S[++top]=x;
}
int pop(){
top--;
return S[top+1];
}
int main(){
int a,b;
top=0;
char s[100];
while(scanf("%s", s)!=EOF){
if(s[0]=='+'){
a=pop();
b=pop();
push(a+b);
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286427/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286427/source.c"
target datalayout = "e-m:e-p270: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, X[1000];
void push(int y)
{
X[++top] = y;
}
int pop()
{
top--;
return X[top+1];
}
int main()
{
int a, b;
char c[100];
top = 0;
while(scanf("%s", c) != EOF)
{
if(c[0] == '+')
{
a = pop();
b = pop();
push(a + b);
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286470/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286470/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@X = 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]=='-'){
b=pop();
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286535/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286535/source.c"
target datalayout = "e-m:e-p270: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(){
return S[top--];
}
int main(){
int a,b,ans;
top=0;
char s[100];
while(scanf("%s",s)!=EOF){
if (s[0]=='+'){
a=pop();
b=pop();
push(a+b);
}
else if (... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286579/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286579/source.c"
target datalayout = "e-m:e-p270: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>
#include<math.h>
void Push(int);
int Pop();
int t,P[199];
int main(int argc,char *argv[]){
int a,b;
char p[100];
t=0;
while(scanf("%s",p)!=EOF){
if(p[0]=='+'){
a=Pop();
b=Pop();
Push(a+b);
}
else if(p[0]=='-'){
b=Pop();... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286621/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286621/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@t = dso_local local_unname... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
void my_push(int);
int my_pop(void);
int count=0;
int stack[100];
int main(void){
int x;
int a,b;
char s[100];
while(1){
if(scanf("%s", s) == EOF)
break;
if ( s[0] == '+' ){
a = my_pop();
b = my_pop();
my_... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286665/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286665/source.c"
target datalayout = "e-m:e-p270: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>
#include<string.h>
int main(){
int sum[100],x,i=0,a1,a2;
char s[100];
while( scanf("%s", s) != EOF ){
if ( s[0] == '+' ){
i--;
a1=sum[i];
i--;
a2=sum[i];
sum[i]=a1+a2;
i++;
} else if ( s[0] == '-' ){
i--;
a1=su... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286708/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286708/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 S[1000];
int top = 0;
void push(int x)
{
S[top++] = x;
}
int pop()
{
top--;
return S[top];
}
int main()
{
int a, b;
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_286759/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286759/source.c"
target datalayout = "e-m:e-p270: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--;
return S[top + 1];
}
int main() {
int a, b;
top = 0;
char T[100];
while(scanf("%s", &T) != EOF) {
if(T[0] == '+') {
a = pop();
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286801/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286801/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@top = dso_local local_unna... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int top,S[1000];
void push(int x){
S[++top] = x;
}
int pop(){
top--;
return S[top+1];
}
int main(){
int a,b;
top = 0;
char s[100];
while(scanf("%s",s) != EOF){
if(s[0] == '+'){
a = pop();
b = pop();
push(a+b);
}
else if(s[0]=='-'){
b ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286845/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286845/source.c"
target datalayout = "e-m:e-p270: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... |
//stack
#include<stdio.h>
#define N 100
void workspace(char *);
void push(int*,int *,int);
int pop(int*,int *);
int char2i(char);
//char i2char(int);
int stack[N];
int count = 0;
int main()
{
int i=0;
char input[N];
//input data
while(scanf("%s",input) == 1) {
workspace(input);
}
//output da... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286896/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286896/source.c"
target datalayout = "e-m:e-p270: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 <string.h>
#include <stdlib.h>
int top,S[1000];
int pop();
void push(int);
int main(){
int x;
char s[100];
top=0;
while(scanf("%s",s)!=EOF){
if(s[0]=='+'){
x=pop();
x+=pop();
push(x);
}
else if(s[0]=='-'){
x=0;
x-=pop();
x+=pop();
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286939/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286939/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@top = dso_local local_unna... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define STSIZE 1000
void push(int);
int pop(void);
int stack[STSIZE];
int top=0;
int main(){
int num1,num2,num,s;
char array[100];
while(1){
scanf("%s",array);
if(array[0]=='+'){
num1=pop();
num2=pop();
push(num1+num... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286982/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286982/source.c"
target datalayout = "e-m:e-p270: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 MAX 200
typedef struct{
int top;
int number[MAX];
} STACK;
void initialize(STACK *);
void push(STACK *, int);
int pop(STACK *);
int isFull(STACK *);
int isEmpty(STACK *);
int main(){
STACK stack, *s;
char str[200];
int x, y;
s = &stack;
initialize(s);
w... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287024/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287024/source.c"
target datalayout = "e-m:e-p270: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.STACK = type { i32,... |
#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, x;
top = 0;
char s[100];
while( scanf("%s", s) != EOF )
{
if ( s[0] == '+' )
{
a = pop();
b = pop();
pu... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287068/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287068/source.c"
target datalayout = "e-m:e-p270: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>
int top, s[300];
void push(int n)
{
top++;
s[top] = n; //上に積む
}
int pop()
{
top--;
return s[top + 1]; //積んだものを返す
}
int main(void)
{
int i, j, n;
char s[100];
top = 0;
while(scanf("%s", s) != EOF){
if(s[0] == '+'){
i = pop();
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287110/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287110/source.c"
target datalayout = "e-m:e-p270: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 <string.h>
#include <stdlib.h>
#include <stdio.h>
int top;
int M[1000];
void push(int X) {
M[++top] = X;
}
int pop() {
top--;
return M[top+1];
}
int main() {
top = 0;
int A, B;
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_287154/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287154/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@M = dso_local local_unname... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int top = 0, S[1000];
void push(int x) {
S[++top] = x;
}
int pop(void) {
top--;
return S[top+1];
}
int main(void) {
int a, b;
top = 0;
char s[100];
while(scanf("%s",s) != EOF) {
if(s[0] == '+') {
a = pop();
b = pop();
pus... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287198/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287198/source.c"
target datalayout = "e-m:e-p270: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... |
/*--------------------------*/
// p.82
// 4.2 スタック
//
// 逆ポーランド記法
//
// 入力例: 1 2 + 3 4 - *
// 出力例:-3
/*--------------------------*/
// memo: scanf("%s", s) != EOF は,UNIXでは「Ctrl + D」がEOFになる
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int top, S[1000];
void push(int x){
/* topを加算してからその位置へ挿入 */
S[+... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287240/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287240/source.c"
target datalayout = "e-m:e-p270: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] == '+' ) {
b = pop();
a = pop();
push(a... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287284/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287284/source.c"
target datalayout = "e-m:e-p270: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>
#define N 1000
int top,S[N];
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);
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287334/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287334/source.c"
target datalayout = "e-m:e-p270: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>
#define MAX 101
int isEmpty(void);
int isFull(void);
void push(int);
int pop(void);
int top=0;
int S[MAX]={};
int main(){
int x,ans;
char s[100];
while(scanf("%s", s)!=EOF){
if (s[0] == '+' ){
push(pop()+pop());
} else if ( s[0] == '-' ){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287378/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287378/source.c"
target datalayout = "e-m:e-p270: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 <ctype.h>
int stack[102]; int top;
char buf[2000];
int main()
{
int v1, v2;
char *p;
fgets(p=buf, 500, stdin);
top = 0;
while (*p >= ' ') {
while (isspace(*p)) p++;
if (isdigit(*p)) {
v1 = 0;
while (isdigit(*p)) v1 = 10*v1 + (*p++ & 0xf);
stack[top++] = v1;
} else {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287435/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287435/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@buf = dso_local global [20... |
#include <float.h>
#include <inttypes.h>
#include <limits.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <math.h>
#ifdef __cplusplus
#include <bits/stdc++.h>
#endif
int comp(const void *a, const void *b){return (*(int*)a>*(int*)b)-(*(int... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287486/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287486/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct._IO_FILE = type { i... |
#include <stdio.h>
#define swap(type, x, y) do{ type t = x; x = y; y = t; }while(0)
void quick(int array[], int left, int right){
int pl = left, pr = right, x = array[(left + right) / 2];
do{
while(array[pl] < x) pl++;
while(array[pr] > x) pr--;
if(pl <= pr){
swap(int, array[pl], array[pr]);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287536/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287536/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 i,j,temp,testcase,*num1,*num2;
scanf("%d",&testcase);
num1 = (int*)malloc(sizeof(int*)*testcase);
num2 = (int*)malloc(sizeof(int*)*testcase);
for(i=0;i<testcase;i++)
{
scanf("%d",&num1[i]);
scanf("%d",&num2[i]);
}
for(i=0;i<testcase;i++)
{
temp = nu... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_28758/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_28758/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 a,b,ans,i,ansc,kk=0;
while(1){
ansc=0;
scanf("%d%d",&a,&b);
if(a==0&&b==0){
break;
}
if(kk!=0){
printf("\n");
}
for(i=a;i<=b;i++){
if (i%4==0 && i%100!=0||i%400==0){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287622/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287622/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 i;
int flg;
int first=1;
while(1){
flg=0;
scanf("%d %d",&a,&b);
if(a==0 && b==0)break;
if(first)first=0;
else printf("\n");
for(i=a;i<=b;i++)
if((i%4==0 && i%100!=0) || (i%4==0 && i%400==0)){printf("%d\n",i);flg=1;}
if(flg==0)printf("NA\n");
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287666/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287666/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <math.h>
int main()
{
int hajime[3000]={0};
int owari[3000]={0};
int i;
int x=0;
int count=0;
while(1){
scanf("%d %d",&hajime[x],&owari[x]);
if(hajime[x]==0&&owari[x]==0){
break;
}
x++;
}
x=0;
for(i=hajime[x]; i<=owari[x]; i++){
if(hajime[x]==0&&owari[x]==0){
break;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287730/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287730/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
int a = 0, b = 0;
char flg = 0, naflg = 0;
while ( scanf( "%d %d\n", &a, &b ) ) {
if ( a == 0 && b == 0 ) {
break;
}
if ( flg == 1 ) { printf( "\n" ); }
naflg = 1;
flg = 1;
for ( int i = a ; i <= b ; i++ ) {
if ( i % 4 == 0 && i % 100 != 0 || i % 400 == 0 ) {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287781/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287781/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 w,cost;
while(1){cost=0;
scanf("%d",&w);
if(!(w+1))break;
while(w>30){w--;cost+=160;}
while(w>20){w--;cost+=140;}
while(w>10){w--;cost+=125;}
cost+=1150;
printf("%d\n",4280-cost);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287824/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287824/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i,r;
for(;~scanf("%d",&w)&&w!=-1;)
{
for(r=0,i=10;i<w;i++)
{
if(i<20)
r+=125;
else if(i<30)
r+=140;
else
r+=160;
}
printf("%d\n",3130-r);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287882/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287882/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, in, i;
double sum;
sum = 0;
scanf("%d",&n);
for(i = 0; i < n; i++){
scanf("%d",&in);
sum += in;
}
printf("%.0f\n",sum/n);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287932/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287932/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
long v;
long sum=0;
for(int i=0;i<n;i++){
scanf("%ld",&v);
sum+=v;
}
printf("%ld\n",sum/n);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287976/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287976/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
// うそ
#include<stdio.h>
#include<stdlib.h>
int compare(const void* a, const void*b){
return *(int*)a - *(int*)b;
}
int main(void){
int n;
scanf("%d", &n);
int s[n];
int sum = 0;
for(int i=0; i<n; i++){
scanf("%d", &s[i]);
sum += s[i];
}
qsort(s, n, sizeof(int), compare... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_288025/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_288025/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
#include<math.h>
#define FOR(i,a,b) for(int i=a;i<b;i++)
#define lln long long int
int main(){
int n,s[102];
int min = 101, sum = 0;
scanf("%d",&n);
FOR(i,0,n){
scanf("%d",&s[i]);
sum += s[i];
if(min > s[i] && s[i] % 10 != 0) min = s[i];
}
if(sum % 10 != 0) printf("%d\... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_288069/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_288069/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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) {
long max;
long where;
long ue;
long sita;
long uebak;
long sitabak;
long kazu;
int kaeruiro;
int currentiro;
int retu[10000];
long i;
long result;
char kieta;
while(1) {
scanf("%d",&max);
if(max==0)break;
for(i=0;i<max;i++) {
scanf("%d",&retu[i]);
}
result... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_288111/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_288111/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,m,i;
scanf("%d %d",&n,&m);
int pi,acnum,x = 0,warongnum[n + 1],tyouhuku[n + 1];
char si[3],ac[] = "AC";
acnum = 0;
for (i = 1;i <= n; i ++) {
warongnum[i] = 0;
tyouhuku[i] = 0;
}
for (i = 1;i <= m;i ++) {
scanf("%d %s",&pi,&si);
if... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_288162/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_288162/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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) {
/* code */
int n,m,p;
int a = 0;
int w = 0;
int count[100001] = {0};
scanf("%d %d",&n, &m);
char s[3];
for (int i = 0; i < m; i++) {
scanf("%d %s", &p, s);
if(count[p] != -1){
if(strcmp(s,"AC")){
count[p] += 1;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_288212/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_288212/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<math.h>
#include<string.h>
int a[100010]= {0};
int b[100010]= {0};
int main()
{
int n,m;
int num,y=0,z=0;
scanf("%d%d",&n,&m);
char s[100000];
while(m--)
{
scanf("%d%s",&num,s);
if(num>n) continue;
if(strcmp(s,"AC")==0)
a[num]=1;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_288263/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_288263/source.c"
target datalayout = "e-m:e-p270: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>
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_288306/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_288306/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[128];
int n;
scanf (" %d", &n);
scanf (" %s", s);
int i;
int zeros = 0;
int ones=0;
for (i = 0; i < n; i++)
{
if (s[i] == '0')
{
zeros++;
}
else
{
ones++;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_28835/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_28835/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
typedef long long int LLI;
int main(int argc, char const *argv[])
{
LLI k;
LLI n,m;
scanf("%lli%lli%lli",&n,&m,&k);
if (k>=n*m-1)
printf("1 2\n");
else if (k<n)
printf("%lli 1\n",k+1 );
else if( k<m+n-1)
printf("%lli %lli\n",n,k-n+2 );
else{
LLI KA,KB;
KA=(k-(m+n... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_28840/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_28840/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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;
scanf("%d",&a);
scanf("%d",&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_288443/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_288443/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_288494/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_288494/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
char *s[]={"==","<",">"};
scanf("%d %d",&a,&b);
if(a==b) c=0;
else if(a<b) c=1;
else c=2;
printf("a %s b\n",s[c]);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_288537/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_288537/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 if(a==b) printf("a == b\n");
return (0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_288588/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_288588/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int 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_288630/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_288630/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_288689/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_288689/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_288731/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_288731/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_288775/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_288775/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_288825/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_288825/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
// AOJ 2334 Roads on Towns
// 2018.2.24 bal4u
#include <stdio.h>
#include <math.h>
#define EPS 1e-10
#define INF 1e20
typedef struct { double x, y; } PP;
PP p[2][1002];
PP vectorSub(PP p1, PP p2) { PP r; r.x = p1.x - p2.x, r.y = p1.y - p2.y; return r; }
double cross(PP a, PP b) { return a.x * b.y - a.y * b.x; }... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_288869/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_288869/source.c"
target datalayout = "e-m:e-p270: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.PP = type { double,... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#define df 0
int max(int a,int b,int c){
if(a>b)return a>c?a:c;
return b>c?b:c;
}
int min(int a,int b,int c){
if(a<b)return a<c?a:c;
return b<c?b:c;
}
int main(){
int count[3];
char s[100010];
scanf("%s",s);
int len=strlen(s),i;
for(i=0;i<len;i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_288919/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_288919/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 Euclid(int a,int b){
if(a<b){
int tmp = a;
a = b;
b = tmp;
}
int r = a % b;
while(r!=0){
a = b;
b = r;
r = a % b;
}
return b;
}
int main(void){
int N,K;
scanf("%d %d",&N,&K);
int max=0;
int euc;
scanf("%d",&euc);
max=euc;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_288962/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_288962/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#define _CRT_SECURE_NO_WARNINGS
//#define _USE_MATH_DEFINES
#include<stdio.h>
//#include<stdlib.h>
#include<math.h>
//#include<string.h>
//#include<time.h>
//#define pi acos(-1.0)
#define P(type,x) fprintf(stdout,"%"#type"\n",x)
int main() {
int i, j, h, w, s;
while (fscanf(stdin, "%d%d", &h, &w), h || w) {
s = h*h... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_289004/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_289004/source.c"
target datalayout = "e-m:e-p270: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>
typedef long long int int64;
#define MAX(a,b) ((a)>(b)?(a):(b))
#define MIN(a,b) ((a)<(b)?(a):(b))
#define ABS(a) ((a)>(0)?(a):-(a))
void run(void){
int n;
scanf("%d",&n);
int *a=(int *)calloc(n,sizeof(int));
int i;
for(i=0;i<n;i++) scanf("%d",a+i);
int64 p=0;
int64... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_289055/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_289055/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 INF (1e9+1)
typedef struct state{
int pos,cost;
} state;
state A[2000001];
int N=0;
int parent(int i){return i/2;}
int left(int i){return i*2;}
int right(int i){return i*2+1;}
void exchange(state* a,state* b){
state tmp=*a;
*a=*b;
*b=tmp;
}
void minHeapi... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_289105/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_289105/source.c"
target datalayout = "e-m:e-p270: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.state = type { i32,... |
#include<stdio.h>
#include<stdlib.h>
#define N 10001
#define M 10000001
struct node{
int key;
int cost;
struct node *next;
};
typedef struct node *GG;
GG G[10001];
GG MNode(int,int,GG);
void Insert(int,int,int);
int main()
{
int i,j,n,count=0,v,c,c1,v1;
int color[N],d[N],pi[N],mincost,ii;
GG GGG;
scanf(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_289156/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_289156/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node = type { i32, ... |
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
typedef struct edge_t{
int from;
int to;
int heavy;
}edge;
int main(void) {
int n,i,k,from,to,heavy,hantei,nedge=0,dis[10000];
edge *edges, *p;
edges = malloc(sizeof(edge)*500000);
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%d",&from);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_289206/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_289206/source.c"
target datalayout = "e-m:e-p270: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_t = type { i32... |
#include<stdio.h>
int main(void){
int page[7],n;
int i;
scanf("%d",&n);
for(i=0;i<7;i++) scanf("%d",page+i);
while(n>0){
for(i=0;i<7;i++){
n-=page[i];
if(n<=0) break;
}
}
printf("%d\n",i+1);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_28925/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_28925/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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, j;
while (1) {
int h, w;
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")... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_289307/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_289307/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int h,w,i,j;
while(1){
scanf("%d %d",&h,&w);
if(h==0&&w==0){
break;
}
else{
for(i=0;i<h;i++){
for(j=0;j<w;j++){
printf("#");
}
printf("\n");
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_289350/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_289350/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_289408/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_289408/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 height;
int width;
int i,j;
while( 1 ) {
scanf("%d %d" ,&height ,&width );
if( height == 0 && width == 0) {
break;
}
for( i = 0; i < height; i++ ) {
for( j = 0; j < width; j++ ) {
printf("#");
}
printf("\n");
}
printf("\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_289459/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_289459/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,H,W;
for ( i = 1; ; i++ ){
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_289501/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_289501/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
int h,w,i,j;
while(1){
scanf("%d %d",&h,&w);
if(h==0 && w==0) break;
for(i=0;i < h;i++){
for(j=0;j < w;j++){
printf("#");
}
puts("");
}
puts("");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_289552/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_289552/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int T,n,i;char a[100007];
int last;
scanf("%d",&T);
while(T--)
{
scanf("%d",&n);getchar();
scanf("%s",a);
for(i=0,last=0;i<n;i++)
{
if(a[i]=='1')
{
if(last==0){printf("1");last=2;continue;}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_28961/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_28961/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 h,w,h_cnt,w_cnt;
while(1)
{
scanf("%d %d",&h,&w);
if(h==0&&w==0)
break;
else
{
for(h_cnt=0;h_cnt<h;h_cnt++) {
for(w_cnt=0;w_cnt<w;w_cnt++) printf("#");
printf("\n");
}
printf("\n");
}
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_289660/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_289660/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_289710/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_289710/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 alphabet;
scanf("%c", &alphabet);
if(alphabet >= 'A' && alphabet <= 'Z'){
printf("A\n");
}
else if(alphabet >= 'a' && alphabet <= 'z'){
printf("a\n");
}
else{
printf("scan alphabet only\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_289754/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_289754/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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<=90)
{
printf("A\n");
}
else
{
printf("a\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_289798/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_289798/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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' && a <= 'z') puts("a");
else puts("A");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_289848/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_289848/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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<123 && a>96) printf("a");
else if (a<91 && a>64) printf("A");
else printf(" ");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_289891/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_289891/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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.