Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include<stdio.h>
int main(void)
{
int d,r;
double a,b,f;
scanf("%lf %lf",&a,&b);
d=(int)a/b;
r=(int)a%(int)b;
f=a/b;
printf("%d %d %lf",d,r,f);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132216/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132216/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,d,r;
double f;
scanf("%d %d",&a,&b);
d=a/b;
r=a%b;
f=(double)a/(double)b;
printf("%d %d %f\n",d,r,f);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132302/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132302/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,d,r;
double f;
scanf("%d %d", &a, &b);
d = a / b;
r = a % b;
f = ((double)a / (double)b);
printf("%d %d %lf\n", d, r, f);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132346/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132346/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int n;
scanf("%d",&n);
while(n--){
int x,i,j;
scanf("%d",&x);
for(i=0;i<=x;i++){
for(j=0;j<=x;j++){
if(i*3+j*7==x){
printf("YES\n");
break;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13239/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13239/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 ... |
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main(void) {
int a,b;
double c;
scanf("%d%d", &a,&b);
printf("%d ",a/b);
printf("%d ", a%b);
c = a * 1.0;
printf("%f\n", c / b);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132432/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132432/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,d,r;
double f;
scanf("%d%d",&a,&b);
d=a/b;
r=a%b;
f=(double)a/b;
printf("%d %d %lf\n",d,r,f);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132476/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132476/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,r,a,b;
double f;
scanf("%d %d",&a,&b);
d=a/b;
r=a%b;
f=(double)a/(double)b;
printf("%d %d %f\n",d,r,f);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132519/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132519/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,d=0,r=0;
double z,x,f=0;
scanf("%d %d",&a,&b);
z = a;
x = b;
d = a / b;
r = a % b;
f = z / x;
printf("%d %d %f\n",d,r,f);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132562/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132562/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <math.h>
int main()
{
double x,y;
scanf("%lf %lf", &x, &y);
printf("%.0lf %.0lf %.5lf\n", floor(x/y), x-y*(int)(x/y), x/y);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132605/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132605/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, d, r;
double f;
scanf("%d%d", &a, &b);
//a/b(整数)
d = a / b;
//a/bの余り
r = a % b;
//a/b(浮動小数点数)
// f = (float)a / (float)b;
f = (0.1*a) / (0.1*b);
printf("%d %d %lf\n", d, r, f);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132656/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132656/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
int main()
{
int n,i;
scanf("%d\n",&n);
int ar[n];
for(i=0;i<n;i++)
{
scanf("%d ",&ar[i]);
}
int l=0,r=0,a=0,b=0;
for(i=0;i<n;i++)
{
if(ar[i]==0)
l++;
else if(ar[i]==1)
r++;
}
for(i=0;i<n;i++... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_1327/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_1327/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 co... |
#include<stdio.h>
typedef unsigned u;
u K[555555],Q[555555],Qi;
int main()
{
u m,i,j,k,l;
scanf("%u",&m);
for(i=j=k=l=0;j<=m;)
{
if(++i,++k==5){k=0;K[i]=K[++l]+1;}
if((j+=K[i])==m)Q[Qi++]=i;
}
printf("%u\n",Qi);
for(i=-1;++i<Qi;)printf("%u%c",Q[i],i+1==Qi?'\n':' ');
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13275/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13275/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
char f[6][6],s[6],i,j,a,y,x,p,b;
int main()
{
for(;i<9;++i,b=!b){
scanf("%s",s);
for(j=4+b;j--;)
a=s[j]-48,f[i/2][j]|=a<<1+b,f[i/2+b][j+!b]|=a<<3-b*3;
}
do{
while(!((f[y][x]>>(p=(p+1)%4))&1));
putchar("URDL"[p]);
x+=p?2-p:0;
y+=p==3?0:p-1;
p=(p+2)%4;
}while(y|x|**f==6&p==3);
retu... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132793/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132793/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@i = dso_local local_unname... |
#include <stdio.h>
#define INF 9999999
int n, m;
int c[10];
int memo[6][512];
int search(int leftMaisu, int leftKane) {
int answer = INF;
int i;
if (leftKane < 0) return INF;
if (leftMaisu <= 0) return 0;
if (memo[leftMaisu][leftKane]) return ~memo[leftMaisu][leftKane];
for (i = 0; i <= 9; i++) {
if (c[i] <... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132836/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132836/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@memo = dso_local local_unn... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
#define ll long long
int n;
ll a[100010];
int main(){
scanf("%d",&n);
for(int i=0;i<=n;i++){
scanf("%lld",&a[i]);}
ll fflag[100010]={};
ll ans =0;
ll count = 1;
ll tmp;
ll sum=0;
for(int i=0;i<=n;i++){
sum += a[i];}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132887/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132887/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <stdlib.h>
#include <string.h>
typedef long long ll;
const double PI = 3.1415926535897932384626433;
const int MOD = 1e9+7;
const int INF = 1e9;
#define rep(i, n) for(int i=0;i<(n);++i)
//prototype declaration
//gloval variable
int main(void){
int h, w;
scanf("%d %d... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132937/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132937/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PI = dso_local local_unnam... |
/* ex7_3
bonbonc */
#include <stdio.h>
#include <stdlib.h>
int main(void){
int row,column,copied_row,flag,i,j,k;
scanf("%d %d",&row,&column);
copied_row = row;//行数をコピー
char **squares;
// 各行の配列へのポインタ分のメモリ領域を確保
squares = (char**)calloc(row, sizeof(char*));
if (squares == NULL){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132980/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132980/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/* ex7_3
urah */
#include <stdio.h>
#include <stdlib.h>
int main(void){
int height, width;
int *row, *col;
char **matrix;
// 入力受け取り
scanf("%d\t%d", &height, &width);
// メモリ領域の確保
row = (int*)calloc(height, sizeof(int));
// エラーチェック
if (row == NULL){
exit(1);
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133022/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133022/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/* ex7_3
Graku */
#include<stdio.h>
#include<stdlib.h>
int main(void) {
int height, width;
char **table;
int *blank_rows, *blank_cols;
scanf("%d %d", &height, &width); //input
table = (char**)malloc(sizeof(char*) * height); //table[height]
for (int i = 0; i < height; ++i) { //table[heig... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133073/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133073/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/*5_3 hightierra*/
#include <stdio.h>
#define LIMIT 100
int main(void){
int row,col,i,j,rowjudge[LIMIT]={0},coljudge[LIMIT]={0};
char matrix[LIMIT][LIMIT];
scanf("%d %d",&row,&col);
// 初期化
for(i=0; i<LIMIT; i++){
for(j=0; j<LIMIT; j++){
matrix[i][j]=0;
}
}
// 入... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133116/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133116/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#include<stdlib.h>
#define prime 1000000007
int main()
{
int rem,flag=0,a,b,c,i;
scanf("%d %d %d",&a,&b,&c);
for(i=1;i<10000;i++)
{
if((i*a)<c)
{
rem=c%(i*a);
if((rem%b)==0)
{
flag=1;
break;
}
}
else
break;
}
for(i=1;i<10000;i++)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13316/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13316/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 ... |
/* ex5_3
kohei_suzuki */
#include <stdio.h>
int main(void){
int height,width;
scanf("%d %d",&height,&width);
char square[height][width];
for(int i=0; i<height ;i++){
for(int j=0; j<width ;j++){
scanf(" %c",&square[i][j]);
}
}
int ture_row[height], ture_col[width... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133202/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133202/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <unistd.h>
#include <stdlib.h>
void get_nums(int *array, char *s, int count)
{
int num;
int i;
i = 0;
while (s[i] && s[i] != 10)
{
if (s[i] != 32)
{
num = 0;
while ('0' <= s[i] && s[i] <= '9')
num = num * 10 + s[i++] - '0';
array[count++] = num;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133246/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133246/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <stdlib.h>
#include <assert.h>
#define MAX(a,b) (a>b?a:b)
#define MIN(a,b) (a<b?a:b)
#define TURN(a) (a==1?0:1)
#define SENTINEL 1000000007
typedef long long ll;
int main()
{
int h, w, i, j;
char s[100][100];
int maskh[100]={0}, maskw[100]={0};
scanf("%d %d... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133297/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133297/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int a,b,c,d=0,i,j,k=0,x;
scanf("%d %d %d",&a,&b,&c);
if(1<a<100&&1<b<100&&1<c<1000)
{
for(i=0;i<=c/a;i++)
{
for(j=0;j<=c/b;j++)
{
d=a*i+b*j;
if(d==c)
{ k=1;
break;}
}
}
if(k==1)
printf("Yes");
else
printf("No");
}
else
printf("Wrong input");
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13334/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13334/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 h,w,i,j,k,l;
char a[100][100];
scanf("%d %d",&h,&w);
for (i=0;i<h;) {
for (j=k=0;j<w;j++) {
scanf(" %c",&a[i][j]);
if (a[i][j]=='#') k=1;
}
if (k==0) h--;
else i++;
}
for (j=k=0;j<w;j++) {
for (i=l=0;i<h;i++) {... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133383/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133383/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
while (1){
scanf("%d %d",&h,&w);
if(h==0 && w==0){
break;
}else{
for (int i=0; i<h; i++){
for (int j=0; j<w; j++){
printf("#");
}
printf("\n");
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133433/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133433/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int a, b, i, j;
while(1){
scanf("%d%d", &a, &b);
if(a == 0 && b ==0) break;
for(i =1; i <=a;i++){
for(j =1; j <=b;j++) printf("#");
printf("\n");
}
printf("\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133477/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133477/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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()
{
long long i,j,a,b,c,l;
scanf("%lld %lld %lld",&a,&b,&c);
for(i=0;i<10000;i++)
{
for(j=0;j<10000;j++)
{
l=a*i+b*j;
if(l==c)
{
goto Yes;
}
if(l>c)
break;
}
}
Yes:
if(l==c)
printf("yes");
else
printf("No");
retu... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13352/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13352/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,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_133563/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133563/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int a,b,i,k;
while(1){
scanf("%d %d",&a,&b);
if(a==0 && b==0)break;
for(i=0;i<a;i++){
for(k=0;k<b;k++){
printf("#");
}
printf("\n");
}
printf("\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133606/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133606/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,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("#");
}
printf("\n");
}
printf("\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133657/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133657/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
long long int r,g,b,w;
scanf("%d",&t);
for(;t>0;t--)
{
int odd=0;
scanf("%lld %lld %lld %lld",&r ,&g,&b,&w);
if(r%2==1)
odd++;
if(g%2==1)
odd++;
if(b%2==1)
odd++;
if(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13370/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13370/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
int main(void){
char a = '#';
int h, w, i, ii, b;
scanf("%d %d", &h, &w);
for(b = 0; b < 1; b--)
{
if((h != 0)&&(w != 0))
{
for(i = 0; i < h; i++)
{
for(ii = 0; ii < w; ii++)
{
printf("%c", a);
}
printf("\n")... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133743/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133743/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i,j;
while(1)
{
scanf("%d %d",&h,&w);
if((h==w) && (h==0)) break;
for(i=0;i<h;i++){
for(j=0;j<w;j++){
printf("%s","#");
}
printf("\n");
}
printf("\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133808/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133808/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, 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++) {
putchar('#');
}
putchar('\n');
}
putchar('\n');
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133851/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133851/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d %d",&H,&W);
while( H !=0 || W != 0){
for( j= 1 ; j<=H ; j++ ){
for( i= 1 ; i<=W ; i++ ){
printf("#");
}
printf("\n");
}
scanf("%d %d",&H,&W);
printf("\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133895/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133895/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, 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");
}
printf("\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133938/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133938/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[1000];
int W[1000];
int i,j,k;
int lim=0;
while(1){
scanf("%d %d",&H[lim],&W[lim]);
if(H[lim]==0 && W[lim]==0){
break;
}
lim++;
}
for(k=0;k<lim;k++){
for(i=0;i<H[k];i++){
for(j=0;j<W[k];j++){
printf("#");
}
printf("\n");
}
printf("\n");
}
retu... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133981/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133981/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int W;
int 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("#");
}
printf("\n");
}
printf("\n");
}
return(0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134023/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134023/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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){
int H,W,i,j;
for(;;){
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_134124/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134124/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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)return 0;
for(i=0 ; i<H ; i++){
for(j=0 ; j<W ;j++)
printf("#");
printf("\n");
}
printf("\n");
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134175/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134175/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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+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_134218/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134218/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, H, W;
while (scanf("%d %d", &H, &W) != EOF) {
if(H == 0 && W == 0) {
break;
}
for (i = 1; i <= H; i++) {
for (j = 1; j <= W; j++) {
printf("#");
}
putchar('\n');
}
putchar('\n');
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134311/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134311/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,a,b;
while(1){
scanf("%d %d",&a,&b);
if(a == 0 &&b==0){
break;
}
for(i=0;i<a;i++){
for(j=0;j<b;j++){
printf("#");
}
printf("\n");
}
printf("\n")... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134355/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134355/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int 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("#");
}
printf("\n");
}
printf("\n");
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134399/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134399/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d %d", &H, &W);
while (H != 0 && W != 0){
int i, j;
for(i = 0;i < H;i++){
for (j = 0;j < W; j++){
printf("#");
}
printf("\n");
}
printf("\n");
scanf("%d %d", &H, &W);... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134449/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134449/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d %d",&H,&W);
while(!(H==0&&W==0)){
for(int i=0;i<H;i++){
for(int f=0;f<W;f++){
printf("#");
}
printf("\n");
}
printf("\n");
scanf("%d %d",&H,&W);
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134492/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134492/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 h, w, sum=0, min=1000000;
double p = 3.1415;
int max = 1-1000001;
while (1){
scanf("%d%d", &h, &w);
if(h==0 && w==0){
break;
}
else {
for (int i=0; i<h; i++){
for(int j=0... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134542/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134542/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, W, H;
while(1){
scanf("%d %d", &W, &H);
if(W == 0 && H == 0){
break;
}
for(i = 0; i < W; i++){
for(j = 0; j < H; j++){
printf("#");
}
printf("\n");
}
prin... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134593/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134593/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,d;
while(1){
scanf("%d %d",&H,&W);
if(H==0 && W==0){
break;
}
for(i=0;i<H;i++){
for(d=0;d<W;d++){
printf("#");
}
putchar('\n');
}
putchar('\n');
}
r... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134636/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134636/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int n,k,a[110]={0},d,i,cnt,j;
scanf("%d%d",&n,&k);
for(j=0;j<k;j++)
{
scanf("%d",&i);
a[i]++;
}
d=k/n;
while(d>0)
{
cnt=0;
for(i=0;i<110;i++)cnt+=a[i]/d;
if(cnt>=n)break;
d--;
}
printf("%d",d);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13468/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13468/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 temp,n,sum,k,j,i,b;
scanf("%d %d",&n,&k);
char str[n];
scanf("%s",&str);
int arr[n];
for(i=0;i<n;i++)
{
arr[i]=str[i]-96;
}
for(i=0;i<n-1;i++)
{
for(j=0;j<n-i-1;j++)
{
if(arr[j]>arr[j+1])
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13473/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13473/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 x,y,i,j;
for(;;){
scanf("%d %d",&y,&x);
if(x+y==0) break;
for(i=0;i<y;i++){
for(j=0;j<x;j++)
printf("#");
printf("\n");
}
printf("\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134780/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134780/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i,j;
while(1){
scanf("%d %d",&H,&W);
if(H == W && H == 0){
break;
}else{
for(j = 0; j < H ;j++){
for(i = 0; i < W;i++){
printf("#");
}
printf("\n");
}
printf("\n");
}
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134823/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134823/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 j, i, H, W;
while (1){
scanf("%d%d" ,&H ,&W);
if(H == 0 && W == 0) break;
for ( j = 0; j < H; j++ ){
for(i = 0; i<W; i++){
printf("#");
}
printf("\n");
}
printf("\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134867/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134867/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 cmp(const void *a, const void *b) {
return *(int*)a - *(int*)b;
}
int main() {
int t;
scanf("%d", &t);
while(t--) {
int n, p, k, r = 0, *a, *b, i;
scanf("%d %d %d", &n, &p, &k);
a = malloc(n*sizeof(int));
b = malloc(n*sizeof(int));
for(i = 0; i < n; i++)
scan... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13491/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13491/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <string.h>
#define ll long long
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k))
#define INF ((1LL<<62)-(1LL<<31))
#define max(p,q)((p)>(q)?(p):(q))
#define min(p,q)((p)<(q)?(p):(q))
ll n;
char s[300010];
ll a[300010];
ll ans=INF;
int main(){
scanf(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134960/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134960/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ans = dso_local local_unna... |
#include <stdio.h>
void swap(int *a,int *b)
{
int t=*a;
*a=*b;
*b=t;
}
int main(void)
{
int t;
scanf("%d",&t);
while(t--)
{
int a,b,c,r;
scanf("%d %d %d %d",&a,&b,&c,&r);
if(a>b) swap(&a,&b);
if(!r || c+r<a || c-r>b) printf("%d\n",b-a);
else if(c-r<a && c+r>b) printf("0\n");
else if(c-r<a && c+r<=b) ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13501/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13501/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 cmp(const void *a, const void *b){
return *(int *)a - *(int *)b;
}
int main()
{
int N, M, x[100000], d[100000];
scanf("%d%d", &N, &M);
int lmax = 0, lmaxindex = -1;
for(int m=0; m<M; m++){
scanf("%d", x+m);
}
/* sort at x */
qsort(x, M, sizeof(int), cmp);
for(i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135053/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135053/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
static int compare(const void* a, const void* b)
{
int aNum = *(int*)a;
int bNum = *(int*)b;
return aNum-bNum;
}
int main(void)
{
int n, m, x[10*10*10*10*10], i, ans=0, diff[10*10*10*10*10];
scanf("%d%d", &n, &m);
for(i=0;i<m;i++){
scanf("%d", &... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135097/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135097/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int p, q, a, b, c, d;
int x;
int arr[1001];
scanf("%d", &t);
for (int i = 0; i < t; i++)
{
scanf("%d%d%d%d", &p, &q, &c, &d);
a = p < q ? p : q;
b = p < q ? q : p;
if (c - d < a)
{
x = c + d<a ? b - a : c + d>b ? 0 : b - c - d;
}
else if (c - d < b)
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13514/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13514/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#define ZERO 0 /*0???????????????*/
#define ONE 1 /*1???????????????*/
#define TWO 2 /*2???????????????*/
#define THREE 3 /*3???????????????*/
#define FOUR 4 /*4???????????????*/
#define FIVE 5 /*5?????????????... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135190/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135190/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
typedef struct dice{
int men[6];
} Dice;
int main(void)
{
Dice dice[100], dice_memo;
int n;
int ans = 1;
int i, j, k, l, m, r;
scanf("%d", &n);
for(i = 0; i < n; i++)
for(j = 0; j < 6; j++)
scanf("%d", &dice[i].men[j]);
for(i = 0; i < 6; i++)
dice_memo.men[i] = di... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135233/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135233/source.c"
target datalayout = "e-m:e-p270: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.dice = type { [6 x ... |
#include <stdio.h>
#include <string.h>
struct dice {
char N[6];
char num[6];
};
struct dice DICE[2] = { 1, 2, 3, 4, 5, 6, 4, 3, 0, 2, 1, 5 };
void check_a(int l1, int no, char *str);
void check_b(int l1, int no, char *str);
int check_c(int x1, int x2);
void rot(int no, char *str);
int main(void) {
int d[6][100];... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135284/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135284/source.c"
target datalayout = "e-m:e-p270: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.dice = type { [6 x ... |
#include <stdio.h>
int rot[24][7] = {
{ 0,1,2,3,4,5,6 },{ 0,1,3,5,2,4,6 },{ 0,1,4,2,5,3,6 },{ 0,1,5,4,3,2,6 },
{ 0,2,6,3,4,1,5 },{ 0,2,3,1,6,4,5 },{ 0,2,1,4,3,6,5 },{ 0,2,4,6,1,3,5 },
{ 0,3,1,2,5,6,4 },{ 0,3,2,6,1,5,4 },{ 0,3,5,1,6,2,4 },{ 0,3,6,5,2,1,4 },
{ 0,4,1,5,2,6,3 },{ 0,4,2,1,6,5,3 },{ 0,4,5,6,1,2,3 },{ 0,... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135327/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135327/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@rot = dso_local local_unna... |
#include<stdio.h>
int D[107][7],i,j,N;
int G[55][6]={
{1,2,3},{1,3,5},{1,5,4},{1,4,2},
{2,1,4},{2,4,6},{2,6,3},{2,3,1},
{3,1,2},{3,2,6},{3,6,5},{3,5,1},
{4,1,5},{4,2,1},{4,6,2},{4,5,6},
{5,1,3},{5,3,6},{5,4,1},{5,6,4},
{6,2,4},{6,4,5},{6,5,3},{6,3,2}};
int ch(int a,int b)
{
int i;
fo... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135370/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135370/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@G = dso_local local_unname... |
#include <stdio.h>
typedef enum {
S = 0,
N,
W,
E
} cmd;
void showdice(int dice[7]) {
int i;
for (i = 1; i <= 6; ++i) {
printf("%d ", dice[i]);
}
printf("\n");
return;
}
void rotation(cmd command, int dice[7]) {
int tmp;
switch (command) {
case S:
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135413/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135413/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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<stdint.h>
#include<inttypes.h>
typedef int32_t i32;
typedef int64_t i64;
typedef struct RMQandRAQ {
i64 *add;
i64 *max;
i32 bit;
i32 size;
} RMQandRAQ;
RMQandRAQ* new_RMQandRAQ (const i32 n) {
i32 k = 0;
while ((1 << k) < n) ++k;
RMQandRAQ *s = (RMQandRAQ *... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135471/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135471/source.c"
target datalayout = "e-m:e-p270: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.RMQandRAQ = type { ... |
#include<stdio.h>
int main(){
int kaisuu ;
int N, X, T ;
scanf("%d %d %d", &N, &X, &T) ;
if ( N%X == 0 )
kaisuu = N/X ;
else
kaisuu = N/X + 1 ;
printf("%d", T * kaisuu ) ;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135536/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135536/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int n,i,j,x[100000],y[100000],a[100001]={0},b[100001]={0};
scanf("%d",&n);
for(i=0;i<n;++i)
{
scanf("%d%d",&x[i],&y[i]);
++a[x[i]];
++b[y[i]];
}
for(i=0;i<n;++i)
{
j=a[y[i]];
printf("%d %d\n",n-1+j,n-1-j);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13558/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13558/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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[2000];
int i,j;
int n;
while(scanf("%d",&n)!=EOF)
{
int k;
int s=0;
scanf("%d",&k);
for(i=0;i<n;i++)
scanf("%d",&a[i]);
for(i=0;i<n;i++)
{
if(a[i]+k<=5)
s++;
}
printf("%d\n",s/3);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13563/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13563/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main(){
int n,x,t;
scanf("%d %d %d\n",&n,&x,&t);
int time;
int a,d;
if(n<x) time = t;
else{
a = n/x;
time = a*t;
d = n%x;
if(d!=0) time = time + t;
}
printf("%d\n",time);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135673/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135673/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
int n, x, t;
int ans;
scanf("%d %d %d", &n, &x, &t);
if(n%x == 0){
ans = n / x * t;
} else {
ans = (n / x + 1) * t;
}
printf("%d", ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135723/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135723/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,x,t,r;
scanf("%d %d %d",&n,&x,&t);
r=n/x;
if(n%x!=0){
r++;
}
printf("%d\n",r*t);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135767/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135767/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ceiling(int a, int b){
int i;
int temp = 0;
for(i = 0; temp < a; i++)
temp += b;
return i;
}
int main(void){
int n, x, t, a;
scanf("%d %d %d", &n, &x, &t);
a = ceiling(n, x);
printf("%d\n", a * t);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135817/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135817/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#include<stdlib.h>
int main()
{
int a, b, c,d=0;
scanf("%d%d%d", &a, &b, &c);
if (a % b != 0)
{
d = 1;
}
d = d + a / b;
printf("%d", d * c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135860/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135860/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main( void )
{
int a ,b ,c ;
scanf( "%d %d %d" ,&a ,&b ,&c ) ;
c -= a ;
b -= c ;
if( b < 0 )
{
puts( "NA" ) ;
}
else if( c < 0 )
{
puts( "0" ) ;
}
else
{
printf( "%d\n" ,c ) ;
}
return 0 ;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135903/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135903/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int a,b,c,d;
scanf("%d %d %d",&a,&b,&c);
d=c-a;
if(a>=c){
printf("0\n");
}
else if(d<=b){
printf("%d\n",d);
}
else{
printf("NA\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135947/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135947/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
int n;
int flag = 0;
scanf("%d", &n);
for(int i = 1; i < 10; i++){
for(int j = 1; j < 10; j++){
if(i*j==n){
flag = 1;
goto out;
}
}
}
out:
if(flag) printf("Yes\n");
else printf("No\n")... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_135998/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_135998/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <stdlib.h>
#include <string.h>
#include <limits.h>
#define maxn 2001
int cmp(const void *i, const void *j){
return *(int *)i - *(int *)j;
}
int main(void){
int n, k, i, kk = 0;
scanf("%d %d", &n, &k);
int * a;
a = (int*) malloc(n*sizeof(int));
for (i = 0; i < n; i++... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13604/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13604/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 ... |
/*
* kadai3_4
* kamecha
*/
#include<stdio.h>
int main(void){
int num;
scanf("%d", &num);
/*
* 1~9のどれかで割り切れたらOK
*/
int flag = 0; //どれかで割り切れたらflag = 1
for(int i = 1; i <= 9; i++){
if(num%i == 0){
/*
* 商が1~9だとOK
*/
int devided = n... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_136083/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_136083/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/* ex3_2
moka223711 */
#include <stdio.h>
int main(void){
int N, d = 0;
scanf("%d", &N);
for(int i = 1; i <= 9; i++){
if(N % i == 0 && N / i <= 9){
d = 1;
break;
}
}
if(d){
printf("Yes");
}
else{
printf("No");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_136126/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_136126/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 b,m,n,i,j,k;
int a[2000];
while(scanf("%d%d",&n,&k)!=EOF)
{
m=0;
for(i=0;i<n;i++)
{
scanf("%d",&a[i]);
}
for(i=0;i<n;i++)
{
if(a[i]+k<=5)
m++;
}
m=m/3;
printf("%d\n",m);
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13617/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13617/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
int main(void)
{
int n, i, f, s;
scanf("%d",&n);
f=0;s=0;
for(i=1;i<10;i++){
if((n % i == 0) && (n / i <= 9))
f=1;
}
if(f==1) printf("Yes\n");
else printf("No\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_136212/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_136212/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,n,f=0;
scanf("%d",&n);
for(i=1;i<=9;i++){
for(j=1;j<=9;j++){
if(i*j==n){f=1;break;}
}
}
if(f==1)printf("Yes");
else printf("No");
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_136256/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_136256/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
void s(){
int n;
scanf("%d", &n);
int a[n];
for(int i = 0; i < n; i++){
scanf("%d", &a[i]);
}
int mx=a[0];
for(int i = 1;i<n;i++){
mx=mx|a[i];
}
printf("%d\n",mx);
}
int main(){
int t;
scanf("%d",&t);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_1363/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_1363/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 co... |
#include <stdio.h>
int main(void) {
int n;
scanf("%d", &n);
for (int i = 1; i <= 9; ++i) {
if (n % i == 0 && n / i <= 9) {
printf("Yes\n");
return 0;
}
}
printf("No\n");
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_136342/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_136342/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 product;
int a, b;
scanf("%d", &product);
for(a=1; a<10; a++){
for(b=1; b<10; b++){
if(product == (a*b)){
printf("Yes");
return 0;
}
}
}
printf("No");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_136386/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_136386/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n,flg=0;
scanf("%d",&n);
for(int i=1;i<10;i++){
for(int j=1;j<10;j++){
if(i*j==n)flg=1;
}
}
if(flg){
printf("Yes");
}else{
printf("No");
}
return(0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_136429/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_136429/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int a, b, i, j;
scanf("%d",&a);
for(i=1;i<10;i++){
for(j=1;j<10;j++){
b = i * j;
if(a==b){
printf("Yes");
return 0;
}
}
}
printf("No");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_136472/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_136472/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,flag=0;
scanf("%d\n",&N);
for(int n=1;n<=9;n++){
for(int j=n;j<=9;j++){
if(n*j==N){
flag=1;
break;
}
}
}
if(flag==1)
printf("Yes\n");
else
printf("No\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_136515/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_136515/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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=0;
scanf("%d",&N);
int count=0;
for(int i=1;i<10;i++){
for(int j=1;j<10;j++){
if(N==i*j){
count++;
}
}
}
if(count==0){
printf("No\n");
}else{
printf("Yes\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_136566/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_136566/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
typedef long long int int64;
const int mod=1000000007;
int *fact=NULL;
int *iFact=NULL;
void init(const int n){
fact=(int *)calloc(n+1,sizeof(int));
fact[0]=1;
for(int i=1;i<=n;i++) fact[i]=(int64)i*fact[i-1]%mod;
int t=1;
int a=fact[n];
while(a>1){
t=(int64)t*(mo... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_136609/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_136609/source.c"
target datalayout = "e-m:e-p270: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.point = type { i32,... |
#include<stdio.h>
#include<stdbool.h>
#include<stdlib.h>
int compare(const void *a, const void *b) {
return *(int*)a - *(int*)b;
}
int sum(int *data, int n) {
int i;
int result = 0;
for (i = 0; i < n; i++) {
result += data[i];
}
return result;
}
int main(void) {
int n,i;
int r... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_136717/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_136717/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int n,a,b,i,j;
long long v[50];
scanf("%d%d%d",&n,&a,&b);
for(i=0;i<n;i++)scanf("%lld",&v[i]);
for(i=0;i<n;i++){
for(j=0;j<n;j++){
if(v[i]>v[j]){
long long tmp=v[i];
v[i]=v[j];
v[j]=tmp;
}
}
}
long long ans=0;
for(i=0;i<a;i++)ans... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_136760/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_136760/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a[11];
char b[11];
char c[11];
scanf("%s %s %s", a, b, c);
int lena = strlen(a);
int lenb = strlen(b);
int lenc = strlen(c);
if(a[lena-1] == b[0] && b[lenb-1] == c[0])
{
printf("YES\n");
} else
{
printf("NO\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_136803/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_136803/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
int main(void)
{
char A[10],B[10],C[10];
int a,b;
scanf("%s%s%s",A,B,C);
a = strlen(A);
b = strlen(B);
if((A[a-1] == B[0])&&(B[b-1] == C[0]))
printf("YES\n");
else
printf("NO\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_136847/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_136847/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a[102],b[102],c[102];
int s,d,f,g,h,j,k,len;
scanf("%s%s%s",a,b,c);
len=strlen(a);
for(s=0;s<len;s++){
if(s==len-1) {
d= a[s];
}
}
len=strlen(b);
for(j=0;j<len;j++) {
if (j ==0) {
f = b[... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_136890/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_136890/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[10], b[10], c[10];
int i=0, j=0;
scanf("%s %s %s", a, b, c);
while(a[i] != '\0'){
i++;
}
while(b[j] != '\0'){
j++;
}
if(a[i-1] == b[0] && b[j-1] == c[0])
printf("YES\n");
else
printf("NO\n");
return ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_136933/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_136933/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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.