Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include <stdio.h>
int main(void) {
int a, sum = 0;
scanf("%d", &a);
sum = sum + a + a * a + a * a * a;
printf("%d\n", sum);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_129560/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_129560/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a,sum;
scanf("%d",&a);
sum = a + pow(a,2) + pow(a,3);
printf("%d\n",sum);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_129610/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_129610/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
void main()
{
int a;
scanf("%d",&a);
printf("%d\n",a+(a*a)+(a*a*a));
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_129654/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_129654/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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()
{
unsigned long long int a;
scanf("%llu",&a);
a = a + a*a + a*a*a;
printf("%llu\n",a);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_129698/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_129698/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d",&a);
printf("%d",a+(a*a)+(a*a*a));
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_129740/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_129740/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d",&a);
printf("%d",a+a*a+a*a*a);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_129784/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_129784/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d",&a);
printf("%d",a+a*a+a*a*a);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_129827/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_129827/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 sum;
int be;
scanf("%d", &a);
be = a;
sum = be;
for (int i = 0; i < 2; i++)
{
be=be *a;
sum += be;
}
printf("%d\n",sum);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_129870/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_129870/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d", &a);
printf("%d", a*a*a + a*a + a);
return (0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_129913/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_129913/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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 #1109: Fermat's Last Theorem (ICPC Domestic 2000)
*/
#include <stdio.h>
#define CUBE(x) ((x)*(x)*(x))
/**
* Compute z^3 - max{ x^3+y^3 | x>0, y>0, x^3+y^3 <= z^3 }.
*/
int fermat(int z)
{
int x, y, max = 0;
for (x = 1; x < z; x++) {
for (y = x; CUBE(x) + CUBE(y) <= CUBE(z); y++) {
if (max... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_129964/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_129964/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int n,i,j,cnt=0;
scanf("%d",&n);
for(i=0;i<=n/7;i++){
for(j=0;j<=n/4;j++){if(n==7*i+4*j){cnt=1;}}
}
printf(cnt?"Yes":"No");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_130005/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_130005/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/*2019/07/29 */
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
#define MOD 1000000007
typedef long long int ll;
void llswap(ll *x,ll *y){ll temp;temp=*x;*x=*y;*y=temp;}
void swap(int *x,int *y){int tmp;tmp=*x;*x=*y;*y=tmp;}
int rmax(int x,int y){return x>y?x:y;}
int rmin(int x,int y){return x>... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_130049/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_130049/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <stdbool.h>
#include <string.h>
#include <ctype.h>
#include <stdlib.h>
int main(void){
int n,i,j;
scanf("%d",&n);
for(i=0;i<=25;i++){
for(j=0;j<=15;j++){
if(i*4+j*7==n) {printf("Yes");return 0;}
}
}
printf("No");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_130092/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_130092/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, cake = 4, donut = 7, flag = 0;
scanf("%d", &n);
for (int i = 0; i <= 100 ;i++) {
for (int j = 0; j <= 100 ; j++) {
if (n == cake * i + donut * j) {
flag++;
break;
}
else if(n < cake * i + donut * j){
break;
}
}
if (n == cake * i) {
flag++;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_130135/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_130135/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int N,i,j;
scanf("%d",&N);
//int cmax=N/4;
//int dmax=N/7;
for(i=0;i<=(N/4);i++){
for(j=0;j<=(N/7);j++){
if(N==(i*4+j*7)){
printf("Yes");
return 0;
}
}
}
printf("No");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_130186/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_130186/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d",&n);
for(i=0;i<=25;i++){
for(j=0;j<14;j++){
if(n==i*4+j*7){
puts("Yes");
return 0;
}
}
}
puts("No");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_130229/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_130229/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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 2292 Common Palindromes
// 2019.8.16 bal4u
#include <stdio.h>
#include <string.h>
typedef long long ll;
#if 1
#define gc() getchar_unlocked()
#else
#define gc() getchar()
#endif
int ins(char *s) // 文字列の入力 スペース以下の文字で入力終了
{
char *p = s;
do *s = gc();
while (*s++ > ' ');
*--s = 0;
return s - p;
}
#define... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_130272/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_130272/source.c"
target datalayout = "e-m:e-p270: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<string.h>
char O[28]="A""B""C""D""E""F""G""H""I""J""K""L""M""N""O""P""Q""R""S""T""U""V""W""X""Y""Z";
char o[28]="a""b""c""d""e""f""g""h""i""j""k""l""m""n""o""p""q""r""s""t""u""v""w""x""y""z";
void trade(char a[]){
int i=0,n;
while(1){
if(a[i]==o[28])break;
for(n=0;n<28;n++){
if(a[i]=... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_130344/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_130344/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O = dso_local local_unname... |
#include <stdio.h>
#include <string.h>
int main(void)
{
char W[11];
char T[1001];
int i;
int wcounter = 0;
scanf("%s", W);
for (i = 0; W[i] != '\0'; i++){
if ('A' <= W[i] && W[i] <= 'Z'){
W[i] += 32;
}
}
scanf("%s", T);
while (strcmp(T, "END_OF_TEXT") != 0){
for (i = 0; T[i] != '\0'; i++){
if ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_130388/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_130388/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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()
{
long long int d1,d2,d3,min=0;
scanf("%I64d %I64d %I64d",&d1,&d2,&d3);
if(d1>d2){
min=d2;
if(d1+d2>d3)min+=d3;
else min+=d1+d2;
if(d3+d2>d1)min+=d1;
else min+=d3+d2;
}
else{
min=d1;
if(d1+d2>d3)min+=d3;
else ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13046/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13046/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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()
{
long long int a,b,c,i,j,k;
int s[5];
scanf("%lld %lld %lld",&a,&b,&c);
s[0]=(a+a)+(b+b);
s[1]=a+b+c;
s[2]=(a+a)+(c+c);
s[3]=(b+b)+(c+c);
j=s[0];
for(i=0;i<4;i++){
if(s[i]<j) j=s[i];
}
printf("%lld",j);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13051/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13051/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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%d",&a,&b);
if (a==2 || b==2){
printf ("No");
}
else {
if (a==4 || a==6 || a==9 || a==11){
if (b==4 || b==6 || b==9 || b==11){
printf ("Yes");
}
else {printf ("No");}
}
else{
if(b==4 || b==6 || b==9 || b==11){
printf ("No");
}
else{
p... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_130553/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_130553/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main() {
int x, y;
int flag = 0;
scanf("%d %d", &x, &y);
int group[12] = {1, 3, 5, 7, 8, 10, 12, 4, 6, 9, 11, 2};
int group2[12] = {0};
for (int i = 0; i < 12; i++){
if (x == group[i]){
group2[i]++;
}
if (y == group[i]){
gro... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_130597/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_130597/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 d1,d2,d3,min;
scanf("%d %d %d",&d1,&d2,&d3);
min=2*d1+2*d2;
if (d1+d2+d3<min)
min=d1+d2+d3;
if (2*d1+2*d3<min)
min=2*d1+2*d3;
if (2*d2+2*d3<min)
min=2*d2+2*d3;
printf("%d",min);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13064/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13064/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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){
// Here your code !
int x,y;
scanf("%d %d", &x, &y);
if(( (x == 1 || x == 3 || x == 5 || x == 7 || x == 8 || x == 10 ) && (y == 3 || y == 5 || y == 7 || y == 8 || y == 10 || y == 12) )||
((x == 4 || x == 6 || x == 9 ) && (y == 6 || y == 9 || y ==11) )){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_130683/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_130683/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
double f;
int a, b, d, r;
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_130726/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_130726/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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()
{
long long d1, d2, d3, i, j, x, gjhg = 100000000000007456;
scanf("%I64d %I64d %I64d", &d1, &d2, &d3);
x = ((d1 + d2)*2);
if(x <= gjhg){
gjhg = x;
}
x = ((d1 + d3)*2);
if(x <= gjhg){
gjhg = x;
}
x = (... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13077/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13077/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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;
scanf("%d %d",&a,&b);
printf("%d %d %f\n",a/b,a%b,(double)a/b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_130812/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_130812/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int a,b,c,d;
double e;
scanf("%d %d",&a,&b);
c = a / b;
d = a % b;
e = (double)a / b;
printf("%d %d %.5f",c,d,e);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_130856/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_130856/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,k,n,t,a[200000];
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&a[i]);
}
for(i=n-1;i>=0;i--){
if(a[i]^a[i-1]==1){
printf("%d",i);
break;
}
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_1309/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_1309/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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()
{
int a,b;
int 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_130942/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_130942/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 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_130986/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_130986/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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\n",&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_131035/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131035/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 f=0;
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_131079/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131079/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
scanf("%d",&a);
scanf("%d",&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_131129/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131129/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
printf("%d %d %f\n", d, r, (double)a/b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_131172/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131172/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
double f;
scanf("%d %d",&a,&b);
f=(double)a/b;
printf("%d %d %f\n",a/b,a%b,f);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_131215/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131215/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
printf("%d %d %lf", a/b, a%b, (double)a/b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_131259/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131259/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 d, r;
double f;
scanf("%d %d", &a, &b);
d = a/b;
r = a%b;
f = (double)a/b;
printf("%d %d %.5lf\n", d, r, f);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_131301/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131301/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
printf("%d %d %lf\n", a/b, a%b, (double)a/b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_131345/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131345/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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",&a);
scanf("%d",&b);
printf("%d %d %lf\n",a/b,a%b,(double)a/b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_131389/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131389/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 f=0;
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_131453/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131453/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int 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_131510/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131510/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int
main (
int argc,
char *argv[ ]
)
{
int a, b;
scanf ( "%d%d", &a, &b );
printf ( "%d %d %.5f\n", a / b, a % b, (double)a / b );
return ( 0 );
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_131554/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131554/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
double f;
scanf("%d %d", &a, &b);
f = (double)a / (double)b;
printf("%d %d %f\n", a/b, a%b, f);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_131611/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131611/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
void main()
{
int n,i,j,k,x,u,l;k=0;u=0;
scanf("%d",&n);
int d[n];
for(l=0;l<n;l++)
{
scanf("%d",&x);
for(i=0;i<=x/7;i++)
for(j=0;j<=x/3;j++)
if(7*i+3*j==x){
k=1;i=x;break;}
if(k==1){
d[u]=1;u++;k=0;}
else{
d[u]=0;u++;}
}
for(i=0;i<u;i++){
if(d[i]==1)
printf("YES\n");
else
pr... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13167/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13167/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,c;
scanf("%d %d \n",&a,&b);
printf("%d %d %f",a/b,a%b,1.0 * a / b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_131734/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131734/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int d, r;
double f;
scanf("%d %d", &a, &b);
printf("%d %d %f\n", a / b, a % b, (double)a / (double)b);
return (0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_131778/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131778/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ax,bx,f;
scanf("%d%d",&a,&b);
ax=a;
bx=b;
f=ax/bx;
d=a/b;
r=a%b;
printf("%d %d %f",d,r,f);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_131820/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131820/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
double f;
int a,b,d,r;
a=b=f=d=r=0;
scanf("%d %d",&a,&b);
d=a/b;
r=a%b;
f=(double) a/(double) b;
printf("%d ",d);
printf("%d ",r);
printf("%lf\n",f);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_131871/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131871/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
double ans = (double) a / (double) b;
printf("%d %d %f\n", a/b, a%b, ans);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_131914/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131914/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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/(double)b;
printf("%d %d %.5lf\n",d,r,f);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_131958/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_131958/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 chunk(int x){
if(x%3 == 0 || x%7 == 0 )
return 1;
if(x>7)
return chunk(x-7);
else
return 0;
}
int main(){
int t;
scanf("%d",&t);
while(t--){
int x;
scanf("%d",&x);
int c = chunk(x);
if(c)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13200/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13200/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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, d, r;
double f;
scanf("%d %d", &a, &b);
d = a / b;
r = a%b;
f = 1.0 * a / b;
printf("%d %d %.5lf\n", d, r, f);
return(0);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132043/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132043/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,s,r;
double f;
scanf("%d%d",&a,&b);
s=a/b;
r=a%b;
f=(double)a/b;
printf("%d %d %f\n",s,r,f);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132087/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132087/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>
#include <limits.h>
#include <stdbool.h>
int main() {
int size;
scanf("%d",&size);
int temp;
for (int i = 0; i < size; i++) {
scanf("%d",&temp);
if( temp < 3 || temp == 5 || temp == 8 ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13213/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13213/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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, c, d;
double a2, b2, e;
scanf("%d%d", &a, &b);
c = a / b;
d = a % b;
a2 = a;
b2 = b;
e = a2 / b2;
printf("%d %d %f\n", c, d, e);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132173/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132173/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 buf[31];
int a, b, n;
fgets(buf, sizeof(buf), stdin);
n = sscanf(buf, "%d %d", &a, &b);
printf("%d %d %.5f\n", a/b, a%b, (double)a/b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132223/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132223/source.c"
target datalayout = "e-m:e-p270: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>
int main(void) {
int a, b;
scanf("%d %d",&a,&b);
printf("%d %d %lf\n",a/b,a%b,(double)a/b);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132267/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132267/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int t;
scanf("%d",&t);
while(t--){
int n;
scanf("%d",&n);
int m = n;
if(n >= 3){
while(n % 3 != 0 && n >= 0)
n = n-7;
if(n % 3 == 0 && n >= 0){
printf("YES\n");
continue;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13231/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13231/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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;
scanf("%d %d", &a, &b);
printf("%d %d %.5f", a / b, a % b, (double)a / b);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132353/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132353/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
printf("%d %d %f\n",a/b,a%b,a*1./b);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132397/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132397/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(int argc, const char * argv[]) {
int a,b;
int d,remainder;
double function;
scanf("%d %d", &a,&b);
function = (double)a/b;
d = (int)function;
remainder = a%b;
printf("%d %d %f\n",d,remainder,function);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132483/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132483/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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=1.00000*a/b;
printf("%d %d %f\n",d,r,f);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132526/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132526/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#define MAX 207
int main()
{
int n, i, j, a[26], count = 0, ans = 0;
char str[MAX];
for(i=0;i<26;++i)
{
a[i] = 0;
}
scanf("%d", &n);
scanf("%s", str);
for(i=0;i<n;++i)
{
if(str[i] >= 97 && a[str[i] - 97] == 0)
{
++count;
a[str[i] - 97] = 1;
}
else if(str[i] <= 90)
{
ans... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13257/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13257/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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;
int d,r;
double f;
scanf("%d %d",&a,&b);
d = a/b;
r = a%b;
f = (double)a/b;
printf("%d %d %.5f\n",d,r,f);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132612/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132612/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int 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_132663/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132663/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x,y,f;
scanf("%d%d",&a,&b);
d=a/b;
r=a%b;
x=a;y=b;
f=x/y;
printf("%d %d %lf\n",d,r,f);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132706/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132706/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 int as[1001][1001];
int main(void)
{
long long int a,b,x[1001],s[1001],A=9223372036854775800,min=9223372036854775800,i,j;
scanf("%lld %lld",&a,&b);
for(i=1;i<=a;i++){
scanf("%lld",&x[i]);
}
for(i=1;i<=b;i++){
scanf("%lld",&s[i]);
}
for(i=0;i<=b;i++){
for(j=0;j<=a;j++){
as[i][... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132757/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132757/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int m,i,c=0;
scanf("%d",&m);
int arr[5];
for(i=1;i<=500005;i++)
{
int x=i;
int ans =0;
while(x>0)
{
ans+=x/5;
x/=5;
}
if(ans==m)
{
arr[c]=i;
++c;
}
}
printf("%d\n",c);
if(c>0)
for(i=0;i<5;++i)
printf("%d ",arr[i]);
return 0;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13280/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13280/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 ... |
/*
cat <<EOF >mistaken-paste
*/
#pragma GCC diagnostic ignored "-Wincompatible-pointer-types"
#define _USE_MATH_DEFINES
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <math.h>
#include <time.h>
#define BIG 2000000007
#define VERYBIG 2000000000000007LL
#d... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132850/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132850/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@a = dso_local local_unname... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#define MOD1 1000000007
#define MOD2 998244353
#define LIMIT1 200002
#define LIMIT2 500002
typedef long long ll;
typedef long double ld;
typedef const void cv;
#define rep(i,n) for((i)=0;(i)<(n);(i)++)
#define per(i,n) for((i)=(n)-1;(i)>=0;(i)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132894/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132894/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@dx = dso_local local_unnam... |
#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';
}
}
// 入力
for(i=0; i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132944/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132944/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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
Y_Aizaki */
#include <stdio.h>
#include <stdlib.h>
int main(void){
int row, col;
// 行数、列数
char **matrix;
// マス目入力を受け取る配列(動的)
scanf("%d%d", &row, &col);
// マス目入力を受け取る配列(動的)
matrix = (char**)calloc(row, sizeof(char*));
if (matrix == NULL){
exit(1);
}
for ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_132988/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_132988/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int c;
int p=0;
scanf("%d %d %d",&a,&b,&c);
int d=c/a;
int i=0;
while (i<=d)
{
int e;
e=(c-(i*a))%b;
if (e==0)
{
p++;
}
else{}
i++;
}
if (p!=0)
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13303/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13303/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 ... |
/* h-ex7_3
Ohshima */
#include <stdio.h>
#include <stdlib.h>
int main(void){
int height, width, i, j, k, cnt = 0;
char **array;
scanf("%d %d", &height, &width);
//各行の配列へのポインタ分のメモリ領域を確保
array = (char**)malloc(sizeof(char*) * height);
if(array == NULL) exit(1);
//各行の要素分のメモリ領域を確保
for(i = 0; i < height... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133080/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133080/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/* ex5_3
UMAboogie */
#include<stdio.h>
int main(void){
int height,width;
scanf("%d %d",&height,&width); //マスのたての数、横の数を入力
char grid[height][width]; //マス目の配色を入れる配列
int row_exist[height]; //その行のマスに黒があるかの真偽値を入れる配列
int col_exist[width]; //その列のマスに黒があるかの真偽値を入れる配列
for(int i = 0;i < height;i++){
for(int j =... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133123/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133123/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/* ex5_3
YSK722 */
#include <stdio.h>
int main(void){
int height, width;
char box[3][100][100];
scanf("%d %d", &height, &width);
// 白黒を読み取る
for (int i = 0; i < height; i++){
for (int j = 0; j < width; j++){
scanf(" %c", &box[0][i][j]);
}
}
/* i行の要素が全て白のとき、2つめ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133167/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133167/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i,j,f=0,p=0;
scanf("%d %d %d",&a,&b,&c );
for(i=0;i<=c;i++)
{
for(j=0;j<=c;j++)
{
p=i*a+j*b;
if(p==c) f=1;
}
}
if(f)
printf("Yes\n");
else
printf("No\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_13321/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_13321/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 <math.h>
#include <stdbool.h>
#include <string.h>
/*以下便利なマクロを定義する。*/
#define rep(i, min, max) for(i=min; i<=max; i=i+1)
#define if_forall(i, min, max, prop)\
\
rep(i, min, max)\
{\
if(!(prop))\
{\
break;\
}\
}\
\
if(i==max+1)\
#define if_exists(i, m... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133253/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133253/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
char s[100][100];
int row[100], line[100];
int main(){
int a, b, i, j, k = 0;
scanf("%d %d", &a, &b);
for(i = 0; i < a; i++){
scanf("%s", s[i]);
}
for(i = 0; i < a; i++){
for(j = 0; j < b; j++){
if(s[i][j] == '#'){
break;
}
}
if(j != b){
for(j ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133303/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133303/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, i, j, f;
scanf("%d%d", &H, &W);
char **a = (char **)malloc(sizeof(char *) * H);
for(i = 0; i < H; i++){
a[i] = (char *)malloc(sizeof(char) * (W + 1));
scanf("%s", a[i]);
}
int *reductR = (int *)malloc(sizeof(int) * H);
int *reductC = (int *)malloc... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133347/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133347/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <math.h>
#include <limits.h>
int main(void){
int h,w,count;
scanf("%d%d",&h,&w);
char a[h][w+2];
for (int i=0; i<h; i++){
scanf("%s",a[i]);
}
for (int i=0; i<h; i++){
count=0;
for (i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133390/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133390/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 h,w;
while(1){
scanf("%d%d",&H,&W);
if(H == 0 && W == 0)break;
for(h = 0; h < H; h++){
for(w = 0; w < W; w++)putchar('#');
putchar('\n');}
putchar('\n');}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133440/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133440/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_133484/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133484/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 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_133527/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133527/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(w==0&&h==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_133570/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133570/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, H, W;
for(;;){
scanf("%d %d", &H, &W);
if(H == 0 && W == 0)
break;
for(h = 0; h < H; h++){
for(w = 0; w < W; w++)
printf("#");
printf("\n");
}
printf("\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133613/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133613/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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) == 2) {
if (H == 0 && W == 0) break;
for (i = 1; i < H + 1; i ++) {
for (j = 1; j < W + 1; j ++) printf("#");
printf("\n");
}
printf("\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133664/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133664/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133707/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133707/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133750/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133750/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,h,w;
while(1){
scanf("%d %d",&H,&W);
if(H==0 && W==0)
break;
for(h=0; h<H; h++){
for(w=0; w<W; w++)
putchar('#');
putchar('\n');
}
putchar('\n');
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133815/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133815/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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++){
printf("#");
}
printf("\n");
}
printf("\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133859/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133859/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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=1, w=1,countah,countaw;
while (h != 0 && w != 0){
scanf("%d", &h);
scanf("%d", &w);
for (countah = 1; countah <= h; countah++){
for (countaw = 1; countaw <= w; countaw++){
printf("#");
}
printf("\n");
}
if (h != 0 && w != 0){
printf("\n");
}
}
retu... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133901/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133901/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int h, w;
scanf("%d %d",&H ,&W);
do{
for(h=1; h<=H; h++){
for(w=1; w<=W; w++)
printf("#");
printf("\n");
}
printf("\n");
scanf("%d %d",&H ,&W);
}while(H!=0 && W!=0);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133945/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133945/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,s,i=0,j,h[300],w[300];
while(1)/*for(i=0;i>300;i++)*/{
scanf("%d",&h[i]);
scanf("%d",&w[i]);
if(h[i]==0 && w[i]==0){
break;
}
i++;
}
d=i;
for(s=0;s<d;s++){
for(i=h[s];i>0;i--){
for(j=w[s];j>0;j--) printf("#");
printf("\n");
}
printf("\n");
}
return 0... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_133989/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_133989/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,a,b;
while(1){
scanf("%d %d",&H,&W);
if(H==0 && W==0){
break;
}
for(a=0;a<H;a++){
for(b=0;b<W;b++){
printf("#");
}
printf("\n");
}
printf("\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134030/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134030/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 (W==0 && H==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_134074/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134074/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(){
for( ; ; ){
int h, w, i, j;
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_134131/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134131/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[300];
int w[300];
int i = -1,j,k,l;
do{
i++;
scanf("%d%d", &h[i], &w[i]);
} while (h[i] != 0 || w[i] != 0);
for (j = 0; j <= i; j++){
for (l = 0; l < h[j]; l++){
for (k = 0; k < w[j]; k++) { printf("#"); }
printf("\n");
}
if(j != i)printf("\n");
}
ret... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_134182/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_134182/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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.