Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include <stdio.h>
#include <math.h>
int main() {
int inNum;
int result;
scanf("%d", &inNum);
if (inNum < 1 || inNum > 100) {
printf("error\n");
return 0;
}
result = pow(inNum, 3.0);
printf("%d\n", result);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_108447/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_108447/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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\n",a*a*a);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_108490/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_108490/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int a;
int i;
scanf("%d",&a);
a = a * a * a;
printf("%d\n",a);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_108533/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_108533/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int x;
scanf("%d",&x);
printf("%d\n",x*x*x);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_108577/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_108577/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main()
{
int x, y, z, i, j, k, a, b, c, n, m, t, arr[5][2];
scanf("%d",&t);
while(t--)
{
c = 0;
for(x = 0; x < 3; x++)
scanf("%d %d", &arr[x][0], &arr[x][1]);
for(x = 0; x < ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_10862/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_10862/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 x;
scanf("%d" ,&x);
printf("%d\n",x*x*x);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_108663/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_108663/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int num;
scanf("%d", &num);
printf("%d\n", num * num * num);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_108713/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_108713/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 cube(int x)
{
return x * x * x;
}
int main(void)
{
char buf[256];
int x;
fgets(buf, 256, stdin);
buf[255] = '\0';
sscanf(buf, "%d", &x);
printf("%d\n", cube(x));
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_108757/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_108757/source.c"
target datalayout = "e-m:e-p270: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(int argc, char const *argv[])
{
int x;
scanf("%d", &x);
printf("%d\n", x*x*x);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_108807/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_108807/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x;
scanf("%d",&x);
x=x*x*x;
printf("%d\n",x);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_108850/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_108850/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x;
scanf("%d",&x);
x=x*x*x;
printf("%d\n",x);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_108894/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_108894/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 num;
char buf[16];
fgets(buf, 16, stdin);
sscanf(buf, "%d", &num);
printf("%d\n", num*num*num);
return(0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_108951/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_108951/source.c"
target datalayout = "e-m:e-p270: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 x,y;
scanf("%d",&x);
y=x*x*x;
printf("%d\n",y);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_108995/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_108995/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 argc, char *argv[] ){
int input;
if( scanf( "%d", &input ) != 1 ){
exit( 1 );
}
printf( "%d\n", input * input * input );
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109059/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109059/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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\n",a*a*a);return 0;} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109109/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109109/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 = 0;
scanf("%d",&x);
if((1<=x)&&(100>=x))
{
printf("%d\n",x*x*x);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109152/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109152/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int x;
scanf("%d",&x);
printf("%d\n",x*x*x);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109196/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109196/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int x;
scanf("%d", &x);
printf("%d\n", x*x*x);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109239/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109239/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x;
scanf("%d", &x);
printf("%d\n", x*x*x);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109282/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109282/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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\n",a*a*a);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109325/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109325/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int n;
scanf("%d",&n);
printf("%d\n",n*n*n);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109383/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109383/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 char String[1024];
int main(void)
{
String str;
scanf("%s", str);
int num = atoi(str);
printf("%d\n", (num * num * num));
return (0);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109426/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109426/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x;
scanf("%d", &x);
printf("%d\n", x*x*x);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109491/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109491/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x;
scanf("%d", &x);
printf("%d\n", x * x * x);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109541/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109541/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x;
scanf("%d",&x);
printf("%d\n",x*x*x);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109585/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109585/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d", &x);
y = x * x * x;
printf("%d\n", y);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109628/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109628/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x;
scanf("%d",&x);
printf("%d\n",x*x*x); // Your code here!
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109679/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109679/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 data;
scanf("%d",&data);
data=data*data*data;
printf("%d\n",data);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109721/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109721/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
int x;
scanf("%d", &x);
printf("%d\n",x*x*x);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109772/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109772/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int x;
scanf("%d",&x);
printf("%d\n",x*x*x);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109837/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109837/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int x;
scanf("%d",&x);
printf("%d\n", x*x*x);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109880/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109880/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x=0;
scanf("%d",&x);
printf("%d\n",x*x*x);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109923/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109923/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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",&a);
b=a*a*a;
printf("%d\n",b);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109967/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109967/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x;
scanf("%d", &x);
printf("%d\n", x*x*x);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110015/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110015/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x, y;
scanf("%d", &x);
y = x*x*x;
printf("%d\n", y);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110059/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110059/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main() {
int x;
scanf("%d",&x);
printf("%d\n", x*x*x);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110101/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110101/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
b=a*a*a;
printf("%d\n",b);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110145/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110145/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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 1024 Cleaning Robot 2.0
// 2018.2.4 bal4u
#include <stdio.h>
#include <string.h>
char map[65][65];
int mv[4][2] = {{-1,0},{0,1},{1,0},{0,-1}};
char ch[2] = {'.', 'E' };
int main()
{
int n, n1, i, r, c, nr, nc;
long long k;
while (scanf("%d%lld", &n, &k) && n) {
k--, n1 = n-1;
if ((n & 1) |... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110196/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110196/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@mv = dso_local local_unnam... |
#include <stdio.h>
int main()
{ int n;
scanf("%d",&n);
long long a[n];
for(int i=0;i<n;i++){
scanf("%d",&a[i]);
}
long long ans=1,odd=a[0]%2==0?2:1;
for(int i=0;i<n;i++)ans*=3;
for(int i=1;i<n;i++){
if(a[i]%2==0)odd*=2;
}
printf("%lld",ans-odd);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110246/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110246/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <string.h>
#include <stdio.h>
int main()
{
char a[30],b[30],s[1005],c[30],d[30];
scanf("%s",a);
scanf("%s",b);
scanf("%s",s);
int i,j;
for(j=0;j<strlen(a);j++)
{
c[j]=a[j]-32;
d[j]=b[j]-32;
}
//printf("%s\n%s\n%s\n%s",a,b,c,d );
for(i=0;i<strlen(s);i++)
{
for(j=0;j<strlen(a);j++)
{
i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_11029/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_11029/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 <math.h>
int main(void) {
int n, i;
double t, l;
while (scanf("%d", &n) != EOF && n != -1) {
for (i = 2, t = 0; i <= n; i++) {
t += atan2(1, sqrt(i - 1));
}
l = sqrt(n);
printf("%.2lf\n%.2lf\n", l * cos(t), l * sin(t));
}
retu... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110332/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110332/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n, roop;
double length[1000], theta[1000], sum = 0;
length[1] = 1, theta[1] = atan(1 / length[1]);
scanf("%d", &n);
while (n != -1) {
for (roop = 1; roop < n; roop++) {
length[roop + 1] = sqrt(1 * 1 + length[roop] * length[roop]);
theta... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110383/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110383/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
//set many funcs template
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<stdbool.h>
#include<time.h>
#define inf 1072114514
#define llinf 4154118101919364364
#define mod 1000000007
#define pi 3.1415926535897932384
int max(int a,int b){if(a>b){return a;}return b;}
int min(int a,int b){if(a<b){return a... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110440/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110440/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 struct {
int h,m;
} zikoku_t;
int qsc(const void *x,const void *y) {
zikoku_t *a=(zikoku_t*)x;
zikoku_t *b=(zikoku_t*)y;
int aa=a->h*60+a->m;
int bb=b->h*60+b->m;
if(aa>bb)return 1;
if(aa<bb)return -1;
return 0;
}
int main(void) {
int N,M;
int i;
zikoku_t zik... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110491/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110491/source.c"
target datalayout = "e-m:e-p270: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.zikoku_t = type { i... |
#include <stdio.h>
int main(void) {
// your code goes here
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if(a <= c && b >= c){
printf("Yes");
}
else{
printf("No");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110534/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110534/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if(a<=b&&b>=c)printf("Yes\n");
else printf("No\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110578/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110578/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,m,a;
while(~scanf("%d %d %d",&n,&m,&a))
{
if(a<=m&&a>=n)
{
printf("Yes\n");
}
else
{
printf("No\n");
}
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110620/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110620/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
(a<=c && c<=b)? puts("Yes"):puts("No");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110671/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110671/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
if(a<=c&&c<=b)puts("Yes");
else puts("No");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110721/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110721/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if(c>=a&&c<=b)
printf("Yes\n");
else
printf("No\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110765/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110765/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void) {
int a;
int b;
int c;
char buf1[20];
fgets(buf1, 20, stdin);
sscanf(buf1, "%d" "%d"" %d" , &a, &b, &c);
if(a <= c && b >= c){
printf("Yes \n");
}
else{
printf("No \n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110808/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110808/source.c"
target datalayout = "e-m:e-p270: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,c;
scanf("%d %d %d",&a,&b,&c);
if(a<= c && c<=b){
printf("Yes\n");
}
else printf("No\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110859/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110859/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include "stdio.h"
int main()
{
int A, B, C;
scanf("%d %d %d", &A, &B, &C);
if ((C >= A) && (C <= B)) {
printf("Yes\n");
}
else {
printf("No\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110901/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110901/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
printf("%s\n",a<=c&&c<=b?"Yes":"No");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110945/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110945/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
int main( void ) {
int n, sum, key;
const char ch[ 9 ][ 6 ] = { ".,!? ", "abc", "def", "ghi", "jkl", "mno", "pqrs", "tuv", "wxyz" };
for ( scanf( "%d ", &n ); n--; putchar( '\n' ) )
while ( ( key = getchar() ) != '\n' ) {
if ( key == '0' )
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110996/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110996/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.ch = private ... |
#include <stdio.h>
int main( void ) {
int n, sum, elmNum[ 9 ] = { 5, 3, 3, 3, 3, 3, 4, 3, 4 };
char ch[ 9 ][ 6 ] = { ".,!? ", "abc", "def", "ghi", "jkl", "mno", "pqrs", "tuv", "wxyz" }, key, tmp;
scanf( "%d%*c", &n );
while ( n-- ) {
while ( ( key = getchar() ) != '\n' ) {
if ( key == '0' )
continue;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111045/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111045/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.elmNum = priv... |
#include <stdio.h>
#include <string.h>
int main(void)
{
int a[1100],b,m,n,i,j=0,k=0,l=0,p=0,x=0,y=0,z=0;
char s[1000],ss[1000],c;
scanf("%d%d%d",&x,&y,&z);
scanf("%d",&l);
if(x<y){
k=x;
x=y;
y=k;
}
if(x<z){
k=x;
x=z;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111096/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111096/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,k,i,sum;
scanf("%d%d%d%d",&a,&b,&c,&k);
int max=a>b?a:b;
max=max>c?max:c;
int ans=a+b+c-max;
for(i=0;k>i;++i)
max*=2;
printf("%d",ans+max);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111139/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111139/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,k;
scanf("%d %d %d\n%d",&a,&b,&c,&k);
int answer;
answer = a;
if(a < b) answer = b;
if(a < c && b < c) answer = c;
int answer0 = answer;
for(int i = 0; i < k; ++i) answer *= 2;
answer += a + b + c - answer0;
printf("%d\n",answer);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111182/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111182/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <time.h>
int main(void)
{
int a[3], k;
int tmp;
scanf("%d%d%d", &a[0], &a[1], &a[2]);
scanf("%d", &k);
for (int i = 1; i < 3; i++) {
if (a[0] < a[i]) {
tmp = a[0];
a[0] = a[i];
a[i] = tmp;
}
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111225/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111225/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/*
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 200000000000007LL
#de... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111269/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111269/source.c"
target datalayout = "e-m:e-p270: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.hw = type { i32, i3... |
#include<stdio.h>
int main(void){
int A, B, C, K, max=0, sum=0;
scanf("%d %d %d", &A, &B, &C);
scanf("%d", &K);
sum = A + B + C;
max = A;
if(B > max){
max = B;
}
if(C > max){
max = C;
}
sum -= max;
for(int i=0; i<K; i++){
max *= 2;
}
printf(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111319/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111319/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 IN 1
#define OUT 0
#define RETURN -1
void MAX( int kale ,int d )
{
static int max ;
if( d == IN )
{
max = max < kale ? kale : max ;
}
else
{
printf( "%d\n" ,max ) ;
}
}
int MIN( int kale ,int d )
{
static int min ;
if( d == IN )
{
min = min > kale ? kale : min ;
}
re... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111362/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111362/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@MAX.max = internal unnamed... |
#include <limits.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <math.h>
#define P 1000000007
int comp(const void *a, const void *b){return *(int*)a-*(int*)b;}
int compw(const void *a, const void *b){return (*(int*)a>*(int*)b)-(*(int*)a<*(int*)b);}
int ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111405/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111405/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,k,n=0;
int c[10][10];
int a[200][200];
scanf("%d %d",&h,&w);
if(h<=200&&h>=1&&w<=200&&w>=1){
for(i=0;i<10;i++){
for(j=0;j<10;j++)
scanf("%d",&c[i][j]);
}
for(i=0;i<h;i++){
for(j=0;j<w;j++)
scanf("%d",&a[i][j]);
}
for(k=0... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111456/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111456/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <stdio.h>
void swap(int *a, int *b) {
int t = *a;
*a = *b;
*b = t;
}
void input_arr(int *a, int n) {
for (int i = 0; i < n; i++) {
scanf("%d", &a[i]);
}
}
void output_arr(int *a, int n) {
for (int i = 0; i < n; i++) {
printf("%d ", a[i]);
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_1115/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_1115/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 L,A,B,C,D,x,y,z;
scanf("%d \n %d \n %d \n %d \n %d",&L,&A,&B,&C,&D);
if(A%C == 0){
x = A/C;
}else{
x = A/C+1;
}
if(B%D == 0){
y = B/D;
}else{
y = B/D+1;
}
if(x >=y){
z = L-x;
}else{
z = L-y;
}
printf("%d\n",z);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111542/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111542/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 l, a, b, c, d,x=0,y=0,g=0;
scanf("%d%d%d%d%d", &l, &a, &b, &c, &d);
if (a%c == 0) {
x = a / c;
}
else {
x = a / c + 1;
}
if (b%d == 0) {
y = b / d;
}
else {
y = b / d + 1;
}
if (x > y){
g = l - x;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111586/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111586/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int a,b,c,d,e,f,g;
scanf("%d\n%d\n%d\n%d\n%d",&a,&b,&c,&d,&e);
if(b%d==0){
f=b/d;
}
else{
f=b/d+1;
}
if(c%e==0){
g=c/e;
}
else{
g=c/e+1;
}
if(f>g){
printf("%d\n",a-f);
}
else{
printf("%d\n",a-g);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111658/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111658/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int count = 0;
int n;
while (scanf("%d", &n) != EOF){
count = 0;
if (n <= 36){
for (a = 0; a <= 9; a++){
for (b = 0; b <= 9; b++){
for (c = 0; c <= 9; c++){
d = n - (a + b + c);
if (d >= 0 && d <= 9)count++;
}
}
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111700/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111700/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
#include <math.h>
#define rep(i,l,n) for(i=l;i<n;i++)
int main(void){
int n,ans,a,b,c,d;
while(scanf("%d",&n)!=EOF){
ans=0;
rep(a,0,10){
rep(b,0,10){
rep(c,0,10){
rep(d,0,10){
if(a+b+c+d==n) ans++;
}
}
}
}
printf("%d\n",ans);
}
return 0;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111744/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111744/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, a, b, c, d, count = 0;
while(scanf("%d", &n) != EOF){
for(a = 0; a <= 9; a++)
{
for(b = 0; b <= 9; b++)
{
for(c = 0; c <= 9; c++)
{
for(d = 0; d <=9; d++)
{
if(a + b + c + d == n)
count += 1;
}
}
}
}
printf("%d\n", cou... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111795/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111795/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,n;
int i=0;
while(scanf("%d",&n)!=EOF){
for(a=0;a<10;a++){
for(b=0;b<10;b++){
for(c=0;c<10;c++){
for(d=0;d<10;d++){
if(a+b+c+d==n)
i++;
}
}
}
}
printf("%d\n",i);
i=0;
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111881/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111881/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, n, count;
while (1) {
count = 0;
if (scanf("%d", &n) == EOF)
break;
for (a = 0; a < 10; a++) {
for (b = 0; b < 10; b++) {
for (c = 0; c < 10; c++) {
for (d = 0; d < 10; d++) {
if (a + b + c + d == n)
count++;
}
}
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111946/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111946/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,n,x,y,i,j,c;
scanf("%d",&n);
for (i = 0; i < n; i++){
scanf("%d %d",&x,&y);
a = x;
c =((x-1)*y)/2+(y/2)+(y%2);
printf("%d\n",c);
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_11201/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_11201/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 t,ans,c1,c2,c3,c4;
while(~scanf("%d",&t)){
ans=0;
for(c1=0;c1<10;c1++){
for(c2=0;c2<10;c2++){
for(c3=0;c3<10;c3++){
for(c4=0;c4<10;c4++){
if(c1+c2+c3+c4==t)ans++;
}
}
}
}
printf("%d\n",ans);
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112053/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112053/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,cnt,num;
while(scanf("%d",&num) != EOF){
cnt = 0;
for(a = 0;a <= 9;a++){
for(b = 0;b <= 9;b++){
for(c = 0;c <= 9;c++){
for(d = 0;d <= 9;d++){
if(a + b + c + d == num){
cnt++;
}
}
}
}
}
printf("%d\n",cnt);
}
return 0;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112097/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112097/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/*
Amit Kumar Bala Antu
Bangladesh
Remember the name. Best is yet to come.
National Anthem of Bangladesh
Written By: Rabindranath Tagore
আমার সোনার বাংলা
আমি তোমায় ভালবাসি
চিরদিন তোমার আকাশ
চিরদিন তোমার আকাশ
তোমার বাতাস আমার প্রাণে
ও মা
আমার প্রাণে বাজায় বাঁশি
সোনার বাংলা
আমি তোমায় ভালবাসি
ও মা
ফাগুনে তোর আমের ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_11214/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_11214/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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, a, b, c, d, sum;
for ( ; scanf( "%d", &n ) == 1; printf( "%d\n", sum ) ) {
sum = 0;
for ( a = 0; a < 10; a++ )
for ( b = 0; b < 10; b++ )
for ( c = 0; c < 10; c++ )
for ( d = 0; d < 10; d++ )
sum += a + b + c + d == n;
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112183/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112183/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, l;
int num;
int count = 0;
int res;
while(1){
res = scanf("%d", &num);
if(res == EOF) break;
if(num <= 36){
for(i = 0 ; i <= 9 ; i++){
for(j = 0 ; j <= 9 ; j++){
for(k = 0 ; k <= 9 ; k++){
for(l = 0 ; l <= 9 ; l++){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112226/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112226/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 T,n,m;
scanf("%lld",&T);
while(T--){
scanf("%lld",&n);
scanf("%lld",&m);
if(n*m%2==1)
printf("%lld\n",(n*m/2)+1);
else
printf("%lld\n",(n*m)/2);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_11232/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_11232/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main(){
int n;
scanf("%d",&n);
if(n%2==0){
printf("%d\n",n/2);
}else{
printf("%d\n",n/2+1);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112363/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112363/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
N=N+1;
printf("%d\n",N/2);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112406/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112406/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 tc,n,m,i;
scanf("%d",&tc);
for(i=0;i<tc;i++)
{
scanf("%d %d",&n,&m);
int l;
if((n*m)%2==0)
{
l = ((n*m)/2);
}
else
{
l = ((n*m)/2)+1;
}
printf("%d\n",l);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_11245/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_11245/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
#include<ctype.h>
#include<math.h>
int main(){
//freopen("in.txt.txt","r",stdin);
//freopen("out.txt.txt","w",stdout);
int n;
scanf("%d",&n);
printf("%d",n%2==0 ? n/2 : (n+1)/2);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112493/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112493/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int i,n;
scanf("%d",&n);
if(n%2==0) printf("%d",n/2);
else printf("%d",n/2+1);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112536/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112536/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int m,n,l,t;
scanf("%d",&t);
while(t--){
scanf("%d%d",&m,&n);
if(m%2==0 || n%2==0)
l=m*n/2;
else if(m==1 || n==1)
l=(m+n)/2;
else
l=(m+1)/2 +m*(n-1)/2;
printf("%d\n",l);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_11258/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_11258/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
int call(int x,int y)
{
int i=0,j=0;
return x<y?x:y;
}
int main()
{
long long int ch[1000000];
char arr[100000];
int cp[4]= { 0,0,0,0 };
int a,b,c,d,e=0,g,i=0,tep=0,temp=0,j=0,k=0,l=0,m=0,n=0;
scanf("%d",&a);
// printf("%d\n",a*10000);
for(i=1; i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_11263/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_11263/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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;
int s;
scanf("%d",&n);
if(n%2==0){
s=n/2;
}
else{
s=n/2+1;
}
printf("%d",s);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112673/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112673/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void) {
int n;
scanf("%d", &n);
if (n % 2) {
printf("%d", n / 2 + 1);
}
else printf("%d", n / 2);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112716/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112716/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 min(a, b) ((a) < (b) ? (a): (b))
int main() {
int t;
scanf("%d", &t);
while (t--) {
long long a, b, m, n;
scanf("%lld%lld%lld%lld", &a, &b, &n, &m);
if (m + n > a+ b || m > min(a, b)) printf("No\n");
else printf("Yes\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_11276/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_11276/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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;
scanf("%d", &n);
if(n % 2 == 1) printf("%d", n/2+1);
else printf("%d", n/2);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112802/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112802/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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){
while(1){
char a[1010]={0};
int ans=0,i,nb;
scanf("%s",a);
if(a[0]=='0'){
break;
}
for(i=0;i<strlen(a);i++){
nb=a[i] - '0';
ans=ans+nb;
}
printf("%d\n",ans);
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112846/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112846/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 t,i,n;
scanf("%lld",&t);
for(i=0;i<t;i++)
{
scanf("%lld",&n);
if(n%2==1)
printf("%lld\n",n/2+1);
else
{
printf("%lld\n",n/2);
}
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_11289/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_11289/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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()
{
unsigned long long int t,a,b,n,m;
scanf("%llu",&t);
while(t--)
{
scanf("%llu%llu%llu%llu",&a,&b,&n,&m);
if(a+b<n+m)
printf("No\n");
else if(a<=b)
{
if(a<m)
printf("No\n");
else
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_11294/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_11294/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 x[1000];
int i;
int sum;
while (1){
i = 0;
sum = 0;
scanf("%s", x);
if (x[0] == '0'){
break;
}
for (i = 0; x[i] != '\0'; i++){
sum += x[i] - '0';
}
printf("%d\n", sum);
}
return (0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112983/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112983/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <inttypes.h>
char S[222222];
int main(void) {
int i, len;
uint64_t kugyu = 0, kitaeri = 0;
if (scanf("%222221s", S) != 1) return 1;
len = (int)strlen(S);
for (i = 0; i < len; i++) {
if (S[i] == 'B') {
kitaeri++;
} else if (S[i] == 'W') {
kugyu += kitaeri;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_113047/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_113047/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 text[200001];
text[0] = '\0';
long int len=0;
long int Bcount=0;
long int Wcount=0;
long int a=0;
long int b=0;
long long int answer=0;
scanf("%s",text);
len = strlen(text);
for (int i = 0; i < len; i++){
if (strncmp(&text[i],"B",1) == 0){
Bcount+... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_113090/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_113090/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define N 36
struct cards{
char Name;
char Value;
};
void bubble(struct cards p[],int n){
int i,j;
struct cards tmp;
for(i=0;i<n;i++){
for(j=n-1;j>=i;j--){
if(p[j].Value<p[j-1].Value){
tmp=p[j];
p[j]=p[j-1];
p[j-1]=tmp;
}
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_113140/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_113140/source.c"
target datalayout = "e-m:e-p270: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.cards = type { i8, ... |
#include <stdio.h>
#define n 36
struct Card{
char suit;
char value;
};
void BubbleSort(struct Card C[],int N){
int i,j;
struct Card a;
for(i=0;i<N;i++){
for(j=N-1;j>=i+1;j--){
if(C[j].value < C[j-1].value){
a = C[j];
C[j] = C[j-1];
C[j-1] = a;
}
}
}
}
void Sele... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_113184/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_113184/source.c"
target datalayout = "e-m:e-p270: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.Card = type { i8, i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.