Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include <stdio.h>
int main()
{
int s;
scanf("%d",&s);
int a[1000000];
a[0]=s;
int judge=0;
for (int i = 1; i < 1000000; ++i)
{
if(a[i-1]%2==0){
a[i]=a[i-1]/2;
}else{
a[i]=a[i-1]*3+1;
}
for (int j = 0; j < i; ++j)
{
if(a[i]==a[j]){
judge++;
}
}
if(judge!=0){
printf("%d",i+1);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_366660/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_366660/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#if 0
cat <<EOF >mistaken-paste
#endif
// thanks for @rsk0315_h4x
#pragma GCC diagnostic ignored "-Wincompatible-pointer-types"
#define _USE_MATH_DEFINES
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <math.h>
#include <time.h>
#define BIG 2000000007
#def... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_366703/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_366703/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.hwll = type { i64, ... |
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
int keta(int number){
int n=0;
while(number!=0){
number=number/10;
n++;
}
return n;
}
int main(){
int n,i,m,j,count;
char *str,*newstr,*strstock,chk;
scanf("%d",&n);
while(n!=0){
str=(char *)malloc(sizeof(char)*101);
scanf("%s",str);
for(j=0;j<... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_366761/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_366761/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 num,i,j,count;
char digit[100000],now,new[100000],temp[100000];
while (scanf("%d\n",&num)!=EOF&&num) {
scanf("%s\n",digit);
for (i=0; i<num; i++) {
memset(new,'\0',sizeof(new));
for (j=0; j<strlen(digit); j++) {... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_366811/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_366811/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 search(int n,int k,int *hate){
int i;
for(i=0;i<k;i++){
if(n==hate[i]){
return 1;
}
}
return 0;
}
int main(){
int hate[9];
int n,k,i,ok=0,tmp;
scanf("%d %d",&n,&k);
for(i=0;i<k;i++){
scanf("%d",&hate[i]);
}
while(ok==0){
ok=1;
tmp=n;
while... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_366862/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_366862/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,l,tmp,i,flag;
int ng[11],check[11]={0};
scanf("%d %d",&n,&l);
for(i=0;i<l;i++){
scanf("%d",&ng[i]);
check[ng[i]]=1;
}
for(i=n;;i++){
tmp = i;
flag = 1;
for(;;){
if(tmp==0) break;
if(check[tmp... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_366905/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_366905/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,A,B,Left;
scanf("%d%d%d",&X,&A,&B);
Left = X - A;
printf("%d\n",(Left%B));
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_366956/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_366956/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
char ch;
int x;
int uflag = 0, dflag =0;
int count =0;
scanf("%c",&ch);
scanf("%d",&x);
//printf("%c %d\n",ch,x);
if(105 - (int)ch == 1 || 105 - (int)ch == 8)
{
uflag =1;
count += 1;
}
else
count += 2;
if(9 - x == 1 || 9-x == 8)
{
dflag = 1;
c... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_367/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_367/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 cons... |
#include<stdio.h>
int main(void){
int x,a,b;
scanf("%d%d%d",&x,&a,&b);
x-=a;
while(x>=0){
x-=b;
}
x+=b;
printf("%d",x);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_367049/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_367049/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,a,b;
scanf("%d %d %d",&x,&a,&b);
x=x-a;
while(x>=0)
x=x-b;
printf("%d",x+b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_367092/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_367092/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,a,b;
scanf("%d%d%d",&x,&a,&b);
x-=a;
int bs=(x/b)*b;
printf("%d",x-bs);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_367142/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_367142/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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){
// Your code here!
int X,A,B;
int Y;
scanf("%d %d %d",&X,&A,&B);
Y=X-A;
while( Y >= B ){
Y=Y-B;
}
printf("%d",Y);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_367186/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_367186/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,a,b;
scanf("%d", &x);
scanf("%d", &a);
scanf("%d", &b);
x=x-a;
x=x%b;
printf("%d",x);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_367229/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_367229/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[100],b[100],p,q,i,j,k,min,max,cnt;
cnt=max=q=0;
scanf("%d",&i);
for(j=0;j<i;j++)
scanf("%d",&a[j]);
min=a[0];
for(j=0;j<i;j++)
{
if(min>a[j])
{
min=a[j];
}
}
for(j=1;j... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_36728/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_36728/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,a,b;
scanf("%d%d%d",&x,&a,&b);
x=x-a;
x=x%b;
printf("%d",x);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_367322/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_367322/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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)
{
float g;
while (scanf("%f", &g) != EOF){
if (g <= 48.00){
printf("light fly\n");
}
else if ((48.00 < g)&&(g <= 51.00)){
printf("fly\n");
}
else if ((51.00 < g)&&(g <= 54.00)){
printf("bantam\n");
}
else if ((54.00 < g)&&(g <= 57.00)){
printf("feather\n"... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_367366/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_367366/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 w;
while (scanf("%lf", &w) != EOF) {
if (!(w > 48.0)) puts("light fly"); else
if (!(w > 51.0)) puts("fly"); else
if (!(w > 54.0)) puts("bantam"); else
if (!(w > 57.0)) puts("feather"); else
if (!(w > 60.0)) puts("light"); else
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_367409/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_367409/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a;
while(scanf("%lf",&a)!=EOF){
if(a <= 48.0) printf("light fly\n");
else if(a > 48.0 && a <= 51.0) printf("fly\n");
else if(a > 51.0 && a <= 54.0) printf("bantam\n");
else if(a > 54.0 && a <= 57.0) printf("feather\n");
else if(a... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_367467/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_367467/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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()
{
double a;
while(~scanf("%lf",&a))
{
if(a<=48.00)
printf("light fly\n");
else if(a>48.00&&a<=51.00)
printf("fly\n");
else if(a>51.00&&a<=54.00)
printf("bantam\n");
else if(a>54.00&&a<=57.... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_367517/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_367517/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
typedef long long int ll;
int main()
{
int n;
scanf("%d", &n);
int a[n];
for (int i = 0; i < n; ++i)
{
scanf("%d", &a[i]);
}
long long int sum=0, min=1e10, mini;
for (int i = 1; i < 101; ++i)
{
sum=0;
for(int j=0; j<n; j++)
{
if(abs(a[j]-i)>1)
sum+=abs(a[... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_36759/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_36759/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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> // printf(), scanf(), getchar()
#include <stdbool.h>
const char NUL = '\0';
bool
ope_line()
{
char train[52];
int t = 25, s = 25;
for (int i = 0; i < 52; ++i)
train[i] = NUL;
int c = getchar();
train[t] = c;
int a = getchar();
while (a != '\n' && a != EOF)
{
int b = getchar()... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_367647/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_367647/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@NUL = dso_local local_unna... |
#include <stdio.h>
#include <string.h>
#define NODE (100)
#define INF (100000000)
int U[NODE];
int dist[NODE];
int prev[NODE];
int cost[NODE][NODE];
int V;
void dijkstra(int s)
{
int i, j;
int v;
dist[s] = 0;
prev[s] = 0;
for (i = 0; i < V; i++){
U[i] = 1;
}
for (i = 0; i < V; i++){
v = -1;
for ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_367690/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_367690/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@dist = dso_local local_unn... |
/*
* JOI / Prelim 0642
* Sugoroku: find a maxium length of the series made only by one
*/
#include <stdio.h>
int main(void)
{
int max = 0;
int tmp_max = 0;
int n;
scanf("%d", &n);
int i;
for (i = 0; i < n; i++) {
int status;
scanf("%d", &status);
if (status == ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_367740/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_367740/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int N, K, X, Y;
int main(void)
{
scanf("%d %d %d %d", &N, &K, &X, &Y);
printf("%d\n", (N - K >= 0) ? (K * X + (N - K) * Y) : (N * X));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_367791/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_367791/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, k, x, y,ans;
scanf("%d %d %d %d", &n, &k, &x, &y);
if(n >= k){
ans = k * x + (n - k) * y;
}else{
ans = n * x;
}
printf("%d\n", ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_367834/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_367834/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a,b,c,d,e;
while(~scanf("%d%d%d%d",&a,&b,&c,&d))
{
if(a<=b)
printf("%d\n",a*c);
else
printf("%d\n",b*c+(a-b)*d);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_367878/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_367878/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main() {
int n, k, x, y;
scanf("%d %d %d %d", &n, &k, &x, &y);
int p;
if (n <= k) {
p = n * x;
} else {
p = k * x + ((n-k) * y);
}
printf("%d\n", p);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_367920/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_367920/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int N,K,X,Y;
scanf("%d %d %d %d",&N,&K,&X,&Y);
if(N <= K) printf("%d",N*X);
else printf("%d",K*X+(N-K)*Y);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_367971/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_367971/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n,k,x,y,sum=0;
scanf("%lld\n%lld\n%lld\n%lld",&n,&k,&x,&y);
if(n-k>0 && n>k)
{
printf("%lld",(x*k)+((n-k)*y));
}else{
printf("%lld",x*n);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_368013/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_368013/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int n,k,x,y,s;
scanf("%d%d%d%d",&n,&k,&x,&y);
if (n<=k){
s=n*x;
}
else if(n>k){
s=k*x+(n-k)*y;
}
printf("%d\n",s);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_368057/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_368057/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
int main()
{
char s[30];
int n,i,ans,pvi=0;
scanf("%s",s);
n=strlen(s);
ans=n*25+26;
/* for(i=0;i<=n;i++)
if(s[i]==s[pvi] && i!=n);
else
{
ans-=i-pvi;
pvi=i;
}
*/
printf("%d\n",ans);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_36810/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_36810/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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, k, x, y;
scanf("%d", &n);
scanf("%d", &k);
scanf("%d", &x);
scanf("%d", &y);
if(k < n)
printf("%d\n", (x*k) + (y*(n-k)));
else printf("%d\n", x*n);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_368143/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_368143/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ifcl(int p0[2],int p1[2],int p2[2],int p3[2]){
long long x=p0[0],x0=p1[0]-x,x1=p2[0]-x,x2=p3[0]-x,x3=x2-x1,x4=x1-x0,x5=x2-x0;
long long y=p0[1],y0=p1[1]-y,y1=p2[1]-y,y2=p3[1]-y,y3=y2-y1,y4=y1-y0,y5=y2-y0;
long long c1=(x0*y1-y0*x1)*(x0*y2-y0*x2),c2=(x3*y4-y3*x4)*(x3*y1-y3*x1... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_368187/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_368187/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int A,B;
scanf ("%d %d",&A,&B);
if (A<=B*2) printf ("%d",0);
else printf ("%d",A-(B*2));
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_368237/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_368237/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
int rea =a- (b*2);
if (rea<0)
rea=0;
printf ("%d\n",rea);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_368280/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_368280/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int asc(const void* a, const void* b) {
return *(int*)b - *(int*)a;
}
int main() {
int n, m;
scanf("%d %d", &n, &m);
if (n <= 2*m) printf("0");
else printf("%d",n-2*m);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_368330/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_368330/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int a,b;
scanf("%d %d",&a,&b);
if (a<2*b)
{
printf("0\n");
}else{
printf("%d\n",a-2*b);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_368381/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_368381/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int a,b;
scanf("%d %d",&a,&b);
if(a>2*b){
printf("%d",a-2*b);
}
else{
printf("0");
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_368424/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_368424/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
int c;
c = a - 2*b;
if(c < 0)
c = 0;
printf("%d", c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_368468/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_368468/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int ret;
ret = scanf("%d %d",&a,&b);
if(a<=(b*2)){
c=0;
} else{
c=a-(b*2);
}
printf("%d\n",c);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_368518/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_368518/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, ans;
scanf("%d %d", &a, &b);
ans = a - (b * 2);
if (ans < 0)
printf("%d\n", 0);
else
printf("%d\n", ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_368569/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_368569/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 answer = 0;
scanf("%d", &a);
scanf("%d", &b);
if(b * 2 >= a){
answer = 0;
}else{
answer = a - b*2;
}
printf("%d", answer);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_368611/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_368611/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main(void){
int a,b;
scanf("%d%d",&a,&b);
if(2*b>=a){
printf("%d",0);
return 0;
}
else
printf("%d",a-2*b);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_368655/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_368655/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 lot[100000];
int main(void) {
int n;
scanf("%d", &n);
for (int i = 0; i < n; i++) scanf("%d", &lot[i]);
long long max = 0;
for (long long c = 1; c < n-1; c++) {
long long sum = 0;
for (long long k = 1; (k+1)*c < n-1; k++) {
if ((n-1)%c == 0 && (n-1) < 2*k*c+c) break;
sum += lot[... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_368699/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_368699/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
const int INF = 1000000000;
#define NDEBUG
#ifndef NDEBUG
void print_grid(int h, int w, int grid[h][w])
{
for (int y = 0; y < h; y++) {
for (int x = 0; x < w; x++) {
if (grid[y][x] == 0) {
fprintf(stderr, " %c", '#');
} else if (grid[y][x] == INF) {
fprintf(st... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_368749/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_368749/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@INF = dso_local local_unna... |
#include<stdio.h>
int main()
{
int n,x,i,sum,min;
scanf("%d %d",&n,&x);
int a[n];
scanf("%d",&a[0]);
sum=a[0];
min=a[0];
for(i=1;i<n;++i)
{
scanf("%d",&a[i]);
sum=sum+a[i];
if(a[i]<min) min=a[i];
}
printf("%d",n+(x-sum)/min);
return 0;} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_368792/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_368792/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
int num(){
char s[11];
int i, n;
for(i=0; i<sizeof(s); i++){
s[i] = getchar();
if(s[i] == ' ' || s[i] == '\n'){
s[i] = '\0';
break;
}
}
sscanf(s, "%d", &n);
return n;
}
int main(void){
int n, x;
int m[... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_368835/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_368835/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
int n, x;
int m[101];
int i;
int a = 0;
int b;
int c;
m[0] = 0;
scanf("%d %d", &n, &x);
for (i = 0; i < n; i++) {
scanf("%d", &m[i]);
a += m[i];
}
b = x - a;
c = m[0];
for (i = 0; i < n; i++) {
if (c > m[i]) {
c = m[i];
}
}
printf("%d", (b / c)+n);
r... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_368879/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_368879/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,n,i,a[105];
int sum=0,j=0;
scanf("%d%d",&n,&x);
for(i=0;i<n;i++)
{
scanf("%d",&a[i]);
sum+=a[i];
}
int min=a[0];
for(i=1;i<n;i++)
{
if(a[i]<min)
min=a[i];
}
if((x-sum)>=min)
{
j=(x-sum)/min;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_368921/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_368921/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,moto;
int i,min=10000,count=0,donut;
scanf("%d %d",&n,&moto);
for(i=1;i<=n;i++){
scanf("%d",&donut);
moto-=donut;
if(donut<min) min=donut;
count++;
}
while(moto>=min){
count++;
moto-=min;
}
printf("%d",count);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_368965/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_368965/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 zai,n,m[10001];
scanf("%d %d",&n,&zai);
for(int i=0;i<n;i++)
{
scanf("%d",&m[i]);
zai -= m[i];
}
for(int i=n-1;i>0;i--)
{
if(m[i]<m[i-1])
{int f=0;
f = m[i];
m[i] = m[i-1];
m[i-1] = f;
}
}
while(zai>=m[0])
{
zai -= m[0];
n++;
}
printf("%d",n);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369007/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369007/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#include <stdbool.h>
#include <math.h>
int main(void){
int N, A;
scanf("%d%d", &N, &A);
printf("%d\n", N * N - A);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369050/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369050/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/* ex2_3
L40S38*/
#include <stdio.h>
int main() {
int N,A ;
scanf("%d\n",&N);//N*Nのマス目
scanf("%d",&A);//Aマスを白く塗る
printf("%d",N*N-A);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369094/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369094/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/* Kadai2_2
saitomo*/
#include <stdio.h>
int main(void){
int number;
int white;
//値を入力
scanf("%d",&number);
scanf("%d",&white);
number=number*number;
printf("%d",number-white);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369137/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369137/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/* ex2_3
potter0723sw */
#include <stdio.h>
int main() {
int N,A,answer;
scanf("%d", &N);
scanf("%d", &A);
answer = N*N - A;//全体のマス数-白のマス数
printf("%d\n", answer);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369180/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369180/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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\n",a*a-b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369223/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369223/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,a;
scanf("%d%d",&x,&y);
a = x*x;
printf("%d\n",a-y);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369267/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369267/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
int main()
{
char s[25];
int l,n;
scanf("%s",s);
l=strlen(s);
n=((l+1)*26)-l;
printf("%d\n",n);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_36931/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_36931/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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\n%d",&a,&b);
printf("%d\n",a*a-b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369353/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369353/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
int N,A,s,j;
scanf("%d",&N);
scanf("%d",&A);
s=N*N;
j=s-A;
printf("%d",j);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369397/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369397/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,x,y;
scanf("%d%d",&a,&b);
x=a*a;
y=x-b;
printf("%d\n",y);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369447/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369447/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main (){
int N,A;
scanf("%d",&N );
scanf("%d",&A );
printf("%d\n",N*N-A);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369490/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369490/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, m, x[100][100], y[100], a, b, z[100], k;
scanf("%d %d", &n, &m);
for (a = 0; a < n; a++)
{
z[a] = 0;
}
for (a = 0; a < n; a++)
{
for (b = 0; b < m; b++)
{
scanf("%d", &x[a][b]);
}
}
for (a = 0; a < m; a++)
{
scanf("%d", &y[a]);
}
for (a = 0; ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369533/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369533/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, M, n, m;
int nVector[100][100];
int mVector[100];
/* 情報数読取り */
scanf("%d %d\n", &N, &M);
/* 情報格納 */
for (n = 0; n < N; n++) {
for (m = 0; m < M; m++)
scanf("%d", &nVector[n][m]);
scanf("\n");
}
for (m = 0; m < M; m++) {
scanf("%d", &mVect... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369577/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369577/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 m,n,c,i,j;
scanf("%d %d",&n,&m);
int a[n][m],b[m];
for(i=0;i<n;i++)
{
for(j=0;j<m;j++)
scanf("%d",&a[i][j]);
}
for(i=0;i<m;i++)
scanf("%d",&b[i]);
for(i=0;i<n;i++)
{
c = 0;
for(j=0;j<m;j++)
c = c+ a[i][j]*b[j];
printf("%d\n",c);
}
r... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369663/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369663/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,m;
int i,j;
int ans;
scanf("%d %d", &n, &m);
int matA[n][m];
int matB[m];
for(i = 0; i < n; i++) {
for(j = 0; j < m; j++) {
scanf("%d", &matA[i][j]);
}
}
for(j = 0; j < m; j++) {
scanf("%d", &matB[j]);
}
for(i = 0; i < n; i++) {
ans = 0;
for(j = 0; j < m; j++) {
ans += matA[... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369713/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369713/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#define _CRT_SECURE_NO_WARNINGS
#define _USE_MATH_DEFINES
#include<stdio.h>
int mul(int n,int m,int Matrix[][100],int matrix[][1]);
int main() {
int Matrix[100][100] = { 0 };
int matrix[100][1] = { 0 };
int i, j;
int n, m;
scanf("%d%d", &n, &m);
for (i = 0; i < n; i++) for (j = 0; j < m; j++) scanf("%d",&Matrix... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369757/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369757/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
void print(int n, int k)
{
int rook_count = k;
for (int down_count = 0; down_count < n; down_count++)
{
for (int right_count = 0; right_count < n; right_count++)
{
if (down_count == right_count && right_count % 2 == 0 && rook_count > 0)
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_36980/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_36980/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str.4 = private unnamed_add... |
#include<stdio.h>
int main()
{
int b[100]={0}, c[100]={0}, a[100][100]={0}, m, n, i, j;
scanf("%d %d", &n, &m);
for(i = 0; i < n; i++){
for(j = 0; j < m; j++){
scanf("%d", &a[i][j]);
}
}
for(i = 0; i < m; i++){
scanf("%d", &b[i]);
}
for(i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369858/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369858/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ROW 100
#define COLUMN 100
int main()
{
int matA[ROW][COLUMN]={},matB[COLUMN]={},n,m,i,j,c=0;
scanf("%d %d", &n,&m);
for(i = 0 ; i < n ; i++)
{
for(j = 0 ; j < m ; j++) scanf("%d",&matA[i][j]);
}
for(i = 0 ; i < m ; i++)
{
scanf("%d",&matB[i]);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369900/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369900/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(void)
{
int i, j, m, n, **A, *v, c;
scanf("%d %d", &n, &m);
A = (int **)malloc(sizeof(int *) * n);
for (i = 0; i < n; i++) {
A[i] = (int *)malloc(sizeof(int) * m);
}
v = (int *)malloc(sizeof(int) * m);
for (i = 0; i < n; i++) {
for (j = 0; j < m; j++) {
sc... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369944/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369944/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,m,i,j;
int a[101][101], b[101],c[101];
scanf("%d %d",&n,&m);
for(i=0; i<n; i++){
for(j=0; j<m; j++){
scanf("%d",&a[i][j]);
}
}
for(j=0; j<m; j++){
scanf("%d",&b[j]);
}
for(i=0; i<n; i++){
c[i] =0;
for(j=0; j<m; j++){
c[i]+= a[i][j]*b[j];
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_369988/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_369988/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <ctype.h>
#include <stdlib.h>
int main() {
int a[101][101], b[101], c[101];
int i, j;
int n, m; scanf("%d%d", &n, &m);
for (i = 0; i < n; i++) {
for (j = 0; j < m; j++) scanf("%d", &a[i][j]);
}
for (j = 0; j < m; j++) scanf("%d", &b[j]);
for (i = 0; i < n; i++) {
c[i] = 0; for (... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_370029/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_370029/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, m;
scanf("%d %d", &n, &m);
int i, j;
int a[100][100];
int b[100];
int c[100] = { 0 };
for (i = 0; i < n; i++)
{
for (int j = 0; j < m; j++)
{
scanf("%d", &a[i][j]);
}
}
for (i = 0; i < ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_370072/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_370072/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 m,n;
scanf("%d %d", &m, &n);
int a[m][n],b[n];
int i,j;
for(i=0;i<m;i++){
for(j=0;j<n;j++){
scanf("%d", &a[i][j]);
}
}
for(i=0;i<n;i++){
scanf("%d", &b[i]);
}
int c[m];
for(i=0;i<m;i++){
c[i]=0;
for(j=0;j<n;j++){
c[i]+=a[i][j]*b[j];
}
printf("%d\... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_370122/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_370122/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int n, m;
scanf("%d %d",&n,&m);
int a[n][m]; //行列
for(int i = 0;i < n;i++){
for(int j = 0;j < m;j++){
scanf("%d",&a[i][j]);
}
}
int b[m]; //ベクトル
for(int i = 0;i < m;i++){
scanf("%d",&b[i]);
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_370173/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_370173/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, m, i, j;
scanf("%d %d", &n, &m);
int A[n][m];
int b[m];
for (i = 0; i < n; i++) {
for (j = 0; j < m; j++) {
int a_ij;
scanf("%d", &a_ij);
A[i][j] = a_ij;
}
}
for (i = 0; i < m; i++) {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_370216/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_370216/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int a,b;
scanf("%d %d\n",&a,&b);
int s[a][b], t[b];
int i,j;
for (i=0;i<a;i++)
{
for(j=0;j<b;j++)
{
scanf("%d",&s[i][j]);
}
}
for(j=0;j<b;j++)
{
scanf("%d",&t[j]);
}
int ans[a];
for (i=0;i<a;i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_370302/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_370302/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
double max(double a, double b){
if(b<a)return a;
else return b;
}
int main(){
double a,b,c,d,e,f;
scanf("%lf%lf%lf%lf%lf%lf", &a,&b,&c,&d,&e,&f);
int res2=-1,res1=0;
double tmp2=0;
for(int i=0;i<100;i++){
for(int j=0;j<100;j++){
double mass = (i*a + j*b)*100;
if(mass... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_370353/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_370353/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(void){
int a, b, c, d, e, f;
int i, j, k, l;
k = 0;
l = 0;
int *water;
int *suger;
int solute, solution;
solute = 0;
solution = 0;
double x;
double limit;
double dens;
dens = 0.0;
suger = (int *)malloc(sizeof(int) *... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_370397/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_370397/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 i,j,k,l,m,x,r,n;
long arr[10010];
scanf("%ld %ld",&n,&k);
for(i=0;i<n;i++)
scanf("%ld",&arr[i]);
while(k--)
{
m=0,j=0;
scanf("%ld %ld %ld",&l,&r,&x);
l--;r--;x--;
for(i=l;i<=r;i++)
{
if(arr[i]<arr[x])
m+=1;
if(arr[i]==arr[x])
j+=1;
}
if(x>=(l+m) &&... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_37044/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_37044/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
struct team{
char n[21];
int p;
}t[10];
int compare(const void *a,const void *b){
return ((struct team *)b) -> p - ((struct team *)a) -> p;
}
int main(void){
int i,n,w,l,e,f=0;
while(scanf("%d",&n),n){
if(f)puts("");
f++;
for(i = 0;i < n;i++){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_370498/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_370498/source.c"
target datalayout = "e-m:e-p270: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.team = type { [21 x... |
#include <stdio.h>
int main(void)
{
int y1, m1, d1, y2, m2, d2;
int cnt;
int ans;
int i;
scanf("%d %d %d %d %d %d", &y1, &m1, &d1, &y2, &m2, &d2);
while(y1 > 0 && m1 > 0 && d1 > 0 && y2> 0 && m2 > 0 && d2 > 0){
cnt = 0;
for (i = 1; i < m1; i++){
if (i == 2 && (y1 % 400 == 0 || (y1 %4 == 0 && y1 % 100 !... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_370540/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_370540/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void) {
long n,m;
scanf("%ld %ld", &n, &m);
long max;
long remainder;
for (max = m/n; max >= 1; max--) {
remainder = m-n*max;
if (remainder%max == 0) {
printf("%ld\n", max);
break;
}
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_370591/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_370591/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,m,i,g=1,max=0;
scanf("%d%d",&n,&m);
for(i=1; i<=sqrt(m); i++)
{
if(m%i == 0)
{
if(m/i >=n)
g = i;
if(i >= n)
g = m / i;
}
if(g > max)
max = g;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_370634/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_370634/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 max(int a, int b){
return a >= b ? a : b;
}
int main(){
int N, M, i, j, ans = 0;
scanf("%d%d", &N, &M);
if(N == 1){
printf("%d\n", M);
return 0;
}
for(i = 1; i * i <= M; i++){
if(M % i == 0){
j = M / i;
if(j >= N){
ans = max(ans, i);
}
if(i >= N){... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_370692/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_370692/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 g = 9.8;
double high;
double time;
double speed;
double n;
while(scanf("%lf",&speed)!=EOF){
time = speed / g;
high = time * time * g / 2.0;
n = ( 5 + high )/5;
if((int)n != n)n++;
printf("%d\n",(int)n);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_370742/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_370742/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 t, v, y;
int N;
while ( scanf("%lf", &v) != EOF ) {
t = v / 9.8;
y = 4.9 * t * t;
y = y;
N = ( y + 5 ) / 5;
printf("%d\n", N + 1);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_370786/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_370786/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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()
{
float v;
while(scanf("%f",&v)!=EOF)
printf("%.f\n",ceil(v*v/98)+1);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_370843/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_370843/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
float f,s,y;
while(scanf("%f",&s)!=EOF) {
i=1;
while(1)
{
n=5*i-5;
y=n;
f=2*9.8*y;
if(s*s<=f) {
printf("%d\n",i);
break;
}
else {
i++;
}
}
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_370894/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_370894/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
typedef long long int ll;
const int mod = 1000000007;
ll dp[1001];
int fact[1001];
int ifact[1001];
int modpow(int n, int k){
int r = 1;
for(;k;k>>=1){
if(k&1) r = (ll) r * n % mod;
n = (ll) n * n % mod;
}
return r;
}
int main(){
int i, j, k, n, a, b, c, d;
fact[0]=1;
for(i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_370944/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_370944/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@mod = dso_local local_unna... |
#include <stdio.h>
#include <string.h>
int main(void){
char S[101] = {'\0'};
char T[101] = {'\0'};
char temp[101] = {'\0'};
int i;
int j;
int flag = 0;
scanf("%100s", &S);
scanf("%100s", &T);
for(i = 0; i < strlen(S); i++){
for(j = 0; j < strlen(S); j++){
temp[j] = S[(j+i)%strlen(S)];
}
if(strcmp... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_371008/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_371008/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
// Ver19.02
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#define INF 1 << 29
#define LLINF 4545454545454545454
#define MOD 1000000007
#define ll long long
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define MIN(a, b) ((a) < (b) ? (a) : (b))
int upll(const void *a, const void *b) { return *... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_371051/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_371051/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
int main(){
char s[100];
char t[100];
char check[200];
scanf("%s",s);
scanf("%s",t);
strcpy(check,s);
strcat(check,s);
if(strstr(check,t) != NULL){
printf("Yes\n");
}
else{
printf("No\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_371123/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_371123/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
int main ()
{
char s[2][105];
int i,j;
for(i=0;i<2;i++)
scanf("%s",s[i]);
int len;
len = strlen(s[0]);
int ch = 0;
char c;
for(i=0;i<len;i++)
{
c = s[0][0];
for(j=0;j<len-1;j++)
s[0][j] = s[0][j+1];
s[0][len-1]=c;
i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_371174/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_371174/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a[1010];
int lim[1010];
int main(){
int n;
scanf("%d",&n);
for(int i=1;i<=n;i++)scanf("%d",lim+i);
int q;
scanf("%d",&q);
int ans=0;
while(q--){
int t,x,d;
scanf("%d%d%d",&t,&x,&d);
if(t==1)a[x]+=d;
else a[x]-=d;
if(a[x]<0||a[x]>lim[x]){
ans=x;
break;
}
}
printf("%d\n"... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_371224/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_371224/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <assert.h>
#include <math.h>
// 和の符号のパターンはpos,neg,...かneg,pos,...のどちらかなので両方探索して小さいほうをとる
long long mysign(long long n){
if (n>0)return 1;
else if (n<0)return -1;
return 0;
}
long long myabs(long long n){
return (n>0)?n:(-n);
}
long long calc(lon... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_371268/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_371268/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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=0,len=0,count=0,i=0;
scanf("%d",&N);
char str[10];
for(i=1;i<=N;i++){
sprintf(str,"%d",i);
len=strlen(str);
if(len%2 == 1){
count++;
}
}
printf("%d",count);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_371318/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_371318/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
typedef long long int lli;
#define rept(x, s, n) for (int x = s; x < n; x++)
int main(void)
{
int N;
scanf("%d",&N);
int count=0;
rept(i,1,N+1){
if((int)(log10(i)+1)%2==1){
count++;
}
}
printf("%d",count);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_371361/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_371361/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
int count=0;
for(int a=1;a<=n;a++){
int count2;
int b;
count2=0;
b=1;
while(a/b>=1){count2++;b*=10;}
if(count2%2==1){count++;}
else{}
}
printf("%d\n",count);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_371404/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_371404/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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.