Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include <stdio.h>
int num[30];
int main(void)
{
int i;
int n;
for (i = 0;i < 28; i++){
scanf("%d", &n);
num[n - 1] = 1;
}
for (i = 0; i < 30; i++){
if (num[i] == 0){
printf("%d\n", i + 1);
}
}
return (0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_348862/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_348862/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 sub[30]={0},i,log,no;
for(i = 0; i < 28; i++){
scanf("%d",&log);
sub[log-1]=1;
}
for(i = 0; i < 30; i++){
if(sub[i] == 0){
printf("%d\n",i+1);
}
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_348912/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_348912/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 handed[30]={0};
int one;
int i;
for(i=0;i<28;i++) {
scanf("%d",&one);
handed[one-1]=1;
}
for(i=0;i<30;i++) {
if(!handed[i])printf("%d\n",i+1);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_348963/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_348963/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 b[28],x,y,z[31]={0};
for(x=0;x<=27;x++){
scanf("%d",&b[x]);
y=b[x];
z[y]=1;
}
for(y=1;y<=30;y++){
if(z[y]==0)printf("%d\n",y);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_349005/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_349005/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 int X, Y;
scanf("%ld %ld", &X, &Y);
long int A = X;
int i = 0;
while (A <= Y) {
A *= 2;
i++;
}
printf("%d", i);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_349063/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_349063/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 df 1
#define MOD 1000000007
#define min(a,b) (((a)<(b))?a:b)
int h,w,k;
int fibo[10]={1,1,2,3,5,8,13,21,34,55};
int f(int a,int b){
if(a>b)return f(b,a);
if(a<0 || b>w)return 0;
return fibo[a-1]*fibo[w-b];
}
long int c[120][10];
int main(){
sc... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_349106/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_349106/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@fibo = dso_local local_unn... |
#include <stdio.h>
int main() {
static char s[4];
int i;
scanf("%s", s);
for (i = 0; i < 5; i++) {
static char t[4];
scanf("%s", t);
if (s[0] == t[0] || s[1] == t[1]) {
printf("YES\n");
return 0;
}
}
printf("NO\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_34920/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_34920/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@main.s = internal global [4 ... |
#include<stdio.h>
int main()
{
int AB,BC,CA;
scanf("%d %d %d",&AB,&BC,&CA);
printf("%d",(AB*BC)/2);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_349250/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_349250/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,b,c,area;
scanf("%d%d%d",&a,&b,&c);
area=0.5*a*b;
printf("%d\n",area);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_349300/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_349300/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 trilength[3];
scanf("%d %d %d",&trilength[0],&trilength[1],&trilength[2]);
printf("%d\n",trilength[0]*trilength[1]/2);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_349344/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_349344/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ab, bc, ca, v;
scanf("%d", &ab);
scanf("%d", &bc);
scanf("%d", &ca);
v = ab * bc * 0.5;
printf("%d\n",v);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_349388/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_349388/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 triangle(int,int,int);
int main(void){
int AB,BC,CA,S;
scanf("%d %d %d",&AB,&BC,&CA);
S=triangle(AB,BC,CA);
printf("%d\n",S);
return 0;
}
int triangle(int a,int b,int c){
return a*b/2;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_349430/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_349430/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, ans;
scanf("%d", &a);
scanf("%d", &b);
scanf("%d", &c);
ans = a*b/2;
printf("%d", ans);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_349481/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_349481/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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("%d\n",a*b/2);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_349531/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_349531/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/*
C language 162bytes
char s[1<<20];m[1<<20],n,t;main(){for(gets(s);s[n];m[++n]=--t)for(;t&&s[~t]-s[n];t=m[~t]);t-=~n;n=!printf(t*2<n?"Love %.*s!\n":"mitomerarenaiWA\n",t*=n/3/t+1,s);}
*/
#include <stdio.h>
#include <string.h>
char s[1000010];
int mp[1000010];
int main(){
int i, n, t, p, q = 0;
fgets(s, sizeof... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_349575/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_349575/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@s = dso_local global [1000... |
#include <stdio.h>
#include <string.h>
int main(void){
int m,h,pt;
char ptr[201],org[201];
while(1){
scanf("%s",org);
if(org[0]=='-')break;
scanf("%d",&m);
for(pt=0;m>0;m--){
scanf("%d",&h);
pt+=h;
}
pt=pt%strlen(org);
strcpy(ptr,org);
strcpy(org,&ptr[pt]);
ptr[pt... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_349625/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_349625/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[201], tmp[201];
int n, m;
int i, j;
int t[101];
while(1){
scanf("%s",s);
if(strcmp(s,"-") == 0)
break;
scanf("%*c%d",&n);
for(i = 0; i < n; i++){
scanf("%*c%d",&t[i]);
strncpy(tmp,s,t[i]);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_349704/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_349704/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 Hand[5][2];
char Table[2];
scanf("%s", Table);
for(int i=0;i<5;i++)
scanf("%s",Hand[i]);
for(int i=0;i<5;i++){
if(Hand[i][0]==Table[0]){
printf("YES");
return 0;
}
if(Hand[i][1]==Table[1]){
printf("YES");
return 0;
}
}
printf("NO");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_34977/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_34977/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,ai,bi,i,k,c;
scanf("%d",&n);
scanf("%d",&k);
for(i=0;i<k;i++){
scanf("%d%d",&ai,&bi);
if(n+1-ai<ai)ai=n+1-ai;
if(n+1-bi<bi)bi=n+1-bi;
if(ai>bi)c=(bi-1)%3+1;
else c=(ai-1)%3+1;
printf("%d\n",c);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_349812/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_349812/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 WINDOW(X,W) \
( (X) <= ( (W) / 2 ) + ( (W) % 2 ) ? (X) : (W) + 1 - (X) )
#define MIN(A,B) \
( (A) < (B) ? (A) : (B) )
/** Application main entry point. */
int main (
int argc,
char * argv[ ]
)
{
int N, K;
scanf ( "%d %d", &N, &K );
while ( K-- )
{
int a, b;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_349856/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_349856/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#pragma warning(disable:4996)
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define _USE_MATH_DEFINES
#include <math.h>
#include <float.h>
#pragma region 定義
typedef long long ll;
typedef unsigned long long ull;
#define _itoa(A,N) sprintf(A, "%d", N);
int i_dsort(const void* a, const void* b);
int i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_349906/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_349906/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 t,n=0;
scanf("%d",&t);
int v[t];
for(int i=0;i<t;i++)
scanf("%d",&v[i]);
int p=pow(2,t);
int s;
for(int i=0;i<p;i++){
s=0;
for(int k=0;k<t;k++){
if((i>>k)&1)
s+=v[k];
else
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_34995/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_34995/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
typedef long long ll;
typedef unsigned long long ull;
int main()
{
int n;
scanf("%d",&n);
ll a[n];
ll sum[n];
ll ans=0;
scanf("%lld",&a[0]);
sum[0]=a[0];
sum[0]=sum[0]%1000000007;
for(int i=1;i<n;i++)
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_349993/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_349993/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#define MAX(x,y) (((x)>(y))?(x):(y))
int i,j;
int n,k,a[100005],x,ans,ans2;
int comp(const void *p,const void *q){
return *(int *)p-*(int *)q;
}
int main(){
scanf("%d %d",&n,&k);
while(n!=0 && k!=0){
for(i=1;i<=n;i++){
/*scanf("%d",&x);
a[i]+=x;
if... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_350041/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_350041/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/* AtCoder My Practice
* author: Leonardone @ NEETSDKASU
*/
#include <stdio.h>
#include <stdlib.h>
#define N_MAX (200001)
typedef struct _range {
int upper, lower;
struct _range *ubound, *lbound;
} Range;
Range *newRange(int lower, int upper) {
Range *range = (Range*)malloc(sizeof(Range));
range->l... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_350120/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_350120/source.c"
target datalayout = "e-m:e-p270: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._range = type { i32... |
#include <stdio.h>
int main(void) {
int n, i, x, maximum;
int pre[1024], now[1024];
char in[1024];
while (1) {
scanf("%d ", &n);
if (!n)
break;
for (i = 0; i < n+1; i++) {
pre[i] = now[i] = 0;
}
maximum = 0;
for (i = 0; i < n; i++) {
scanf("%s ", in);
for (x = 1; x < n+1; x++) {
if (... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_350207/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_350207/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 c[6][2];
int i=0;
for(i=0;i<6;i++){
scanf("%s",c[i]);
}
for(i=1;i<6;i++){
if(c[0][0]==c[i][0]){
printf("YES");
return 0;
}
if(c[0][1]==c[i][1]){
printf("YES");
return 0;
}
}
printf("NO");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_35028/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_35028/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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);
int i=N/111;
if(N % 111 != 0){
i=i+1;
}
printf("%d\n", i*111);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_350322/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_350322/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
if(100<=N && N<=111){
printf("111\n");
return 0;
}
for(int i=1;i<=8;i++){
if(100*i+10*i+i<N && N<=100*(i+1)+10*(i+1)+i+1){
printf("%d\n",100*(i+1)+10*(i+1)+i+1);
return 0;
}
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_350366/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_350366/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
int a,b,c;
a=x/100;
b=(x-a*100)/10;
c=(x-a*100-b*10);
if(x>100*a+10*a+a) printf("%d",100*(a+1)+10*(a+1)+a+1);
else
if(x<=100*a+10*a+a)
printf("%d",100*a+10*a+a);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_350409/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_350409/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
for(i=1;i<=9;i++){
if( n <= i * 111 ){
printf("%d\n",i*111);
return 0;
}
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_350452/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_350452/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <math.h>
int main()
{
int a, b, c, d, X, Y;
int D, G;
//char s[101][101]={};
char sv[101]={};
char ss[101]={};
// char s_temp[101]={};
char t[101]={};
// char s[10000000000000000001]={};
char s[2][100001]={};
int len=0;
int N, M;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_350502/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_350502/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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_350553/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_350553/source.c"
target datalayout = "e-m:e-p270: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<stdlib.h>
#include<string.h>
#define NEW(p,n){p=malloc((n)*sizeof(p[0]));if(p==NULL){printf("not enough memory\n");exit(1);};}
//pの型の変数n個の要素分のメモリを確保し、そのアドレスをpに代入するマクロ
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define SWAP(type, x, y) do { type tmp =... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_350603/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_350603/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
#define ll long long
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k))
#define INF ((1LL<<62)-(1LL<<31))
#define max(p,q)((p)>(q)?(p):(q))
#define min(p,q)((p)<(q)?(p):(q))
ll n;
ll a[20];
int main(){
scanf("%lld",&n);
rep(i,0,n){
ll t;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_350647/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_350647/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int color[9] = { 0 }, cnt = 0, max, min;
scanf("%d", &N);
for (int i = 0; i < N; i++) {
scanf("%d", &a);
for (int j = 1; j <= 8; j++) {
if (a <= 400 * j - 1) {
if (color[j - 1] == 0) {
cnt++;
color[j - 1]++;
}
break;
}
if (a >= 3200... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_350690/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_350690/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
long gcd2(long a, long b){
long t;
if(a<b){
t = a;
a = b;
b = t;
}
t = a % b;
while(t!=0){
a = b;
b = t;
t = a % b;
}
return b;
}
long n, x;
int main(void){
scanf("%ld%ld", &n, &x);
printf("%ld\n", (n-gcd2(n,x))*3);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_350748/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_350748/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
// Aizu 1163: Cards
// 2017.9.15 bal4u@uu
#include <stdio.h>
#include <string.h>
#define M 502
#define N 502
int m, n;
char graph[M][N], seen[N];
int matchL[M], matchR[N];
int b[M], r[N];
int gcd(int a, int b)
{
int r;
while (b != 0) r = a % b, a = b, b = r;
return a;
}
int bpm(int u)
{
int v;
for (v = 0; v... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_350791/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_350791/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@n = dso_local global i32 0... |
#include <stdio.h>
#define Rep(i,a,n)for(int i=(int)(a);i<(int)(n);i++)
#define rep(i,n)Rep(i,0,n)
int main(){
int d,c[27],s[366][27]={0},t[366],last[27]={0},sat=0;
scanf("%d",&d);
rep(i,26)scanf("%d",c+i+1);
rep(i,d)rep(j,26)scanf("%d",&s[i+1][j+1]);
rep(i,d)scanf("%d",t+i+1);
rep(i,d){
sat+=s[i+1][t[i+1]];
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_350841/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_350841/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i,A[100007],s; char H[100007],H2[100007];
int main(){
scanf("%d",&n);
for(i=1;i<=n;i++){
scanf("%d",&A[i]);
if(!H[A[i]] && A[i] <= n) H[A[i]] = H2[i] = 1;
}
for(i=s=1;s <= n;i++){
if(H2[s]) printf("%d ",A[s++]);
else if(!H[i]) { printf("%d ",i); H[i] = 1; s++; }
if(i == n) i = 0;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_3509/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_3509/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 i,j;
int a[101][101]={{0}};
int x,y;
scanf("%d %d",&x,&y);
for(j=0;j<x;j++){
for(i=0;i<y;i++){
scanf("%d",&a[j][i]);
a[j][y]+=a[j][i];
a[x][i]+=a[j][i];
}
a[x][y]+=a[j][y];
}
for(j=0;j<=x;j++){
for(i=0;i<=y;i++){
printf("%d",a[j][i]);
if(i!=y){
print... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_350942/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_350942/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 r,c,i,j;
scanf("%d %d",&r,&c);
int rc[r+1][c+1];
rc[r][c]=0;
for(j=0;j<c;j++){
rc[r][j]=0;
}
for(i=0;i<r;i++){
rc[i][c]=0;
for(j=0;j<c;j++){
scanf("%d",&rc[i][j]);
rc[i][c]+=rc[i][j];
rc[r][j]+=rc[i][j];
}
rc[r][c]+=rc[i][c];
}
f... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_350986/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_350986/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 r,c;
int i,j;
long long num[110][110]={0};
scanf("%d %d",&r,&c);
for(i=0;i<r;i++)
for(j=0;j<c;j++)
scanf("%ld",&num[i][j]);
for(i=0;i<r;i++)
for(j=0;j<c;j++)
num[i][c]+=num[i][j];
for(j=0;j<c+1;j++)
for(i=0... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_351028/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_351028/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 r, c;
int data[101][101];
int i,t;
scanf("%d %d", &r, &c);
for(i = 0;i < r; i++){
data[i][c] = 0;
for(t = 0;t < c; t++){
scanf("%d", &data[i][t]);
data[i][c] += data[i][t];
}
}
for(t = 0;t <= c;t++){
data[r][t] = 0;
for(i = 0;i < r; i++){
data[r][t] += data[... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_351071/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_351071/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int i,j;
int r,c;
int a[101][101] = {0};
scanf("%d %d", &r,&c);
for(i = 0; i < r; i++){
for(j = 0; j < c; j++){
scanf("%d", &a[i][j]);
}
}
for(i = 0; i < r; i++){
for(j = 0; j < c; j++){
a[i][c] += a[i][j];
}
}
for(j = 0; j < c; j++){
for(i = 0; i ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_351114/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_351114/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(int argc, const char * argv[]) {
int r,c;
int i,j;
scanf("%d %d",&r,&c);//r:???c:?¨????r???c???
int array[101][101]={0};
for(j=0;j<r;j++){//????????????
for(i=0;i<c;i++){//?¨??????????
scanf("%d",&array[i][j]);
array[c][j]+=array[i][j];
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_351158/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_351158/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 r,c,i,j;
int a[101][101]={0};
scanf("%d %d",&r,&c);
for(i=0; i<r; i++){
for(j=0; j<c; j++){
scanf("%d",&a[i][j]);
}
}
for(i=0; i<r; i++){
for(j=0; j<c; j++){
a[i][c] += a[i][j];
a[... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_351200/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_351200/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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) {
// ??????????????\????????????2????????°?????\???????????°
int line, column;
scanf("%d %d", &line, &column);
// ???????????????????????????
int grid[line+1][column+1];
for(int cnt1 = 0; cnt1 <= line; cnt1++) {
for(int cnt2 = 0; cnt2 <= column; cnt2++) {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_351259/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_351259/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 r, c, i, j, s[128][128] = {};
scanf("%d%d", &r, &c);
for(i = 0;i < r;i++){
for(j = 0;j < c;j++){
scanf("%d", &s[i][j]);
s[i][c] += s[i][j]; s[r][j] += s[i][j]; s[r][c] += s[i][j];
}
}
for(i = 0;i <= r;i++){
for(j = 0;j <= c;j++)
printf(j != ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_351301/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_351301/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 e[101][101];
int R, C, r, c;
int s, total;
scanf("%d%d", &R, &C);
for (r = 1; r <= R; r++) {
for (c= 1; c <= C; c++) scanf("%d", &e[r][c]);
}
for (r = 1; r <= R; r++) {
s = 0;
for (c = 1; c <= C; c++) s += e[r][c];
e[r][0] = s;
}
total = 0;
fo... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_351345/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_351345/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 r, c, i, j, x;
int **s;
scanf("%d %d", &r, &c);
s = (int**)malloc((r+1)*sizeof(int*));
*s = (int*)malloc((r+1)*(c+1)*sizeof(int));
for(i=1; i<=r; i++) s[i] = *s + (c+1)*i;
for(i=0; i<r; i++) {
for(j=0; j<c; j++) {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_351396/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_351396/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 r;//行
int c;//烈
int a[102][102] ={0};//値
scanf("%d %d",&c,&r);
for(int j=0;j<c;j++){
for(int i=0;i<r;i++){
// a[j][i]=0;
scanf("%d",&a[j][i]);
a[j][r] += a[j][i];
a[c][i] += a[j][i];
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_351439/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_351439/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 r,c;
int sheet[10000] = {0};
int i, j;
int lsum;
int sum[101] = {0};
scanf("%d %d", &r, &c);
for (i = 0; i < r; i++)
{
for (j = 0; j < c; j++)
{
scanf("%d", &sheet[i * c + j]);
}
}
for (i = 0; i < r... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_351482/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_351482/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 r,c,x,sum,i,j;
int data[101][101];
scanf("%d",&r);
scanf("%d",&c);
for (i=0;i<r;i++){
sum=0;
for (j=0;j<c;j++){
scanf("%d",&x);
data[i][j]=x;
sum+=x;
}
data[i][c]=sum;
}
for (j=0;j<=c;j++){
sum=0;
for (i=0;i<r;i++){
s... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_351525/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_351525/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 r, c;
int i, j;
int rsum, *csum;
int *data, *itr;
scanf("%d %d", &r, &c);
data = (int *)malloc((r + 1) * (c + 1) * sizeof(int));
csum = data + (c + 1) * r;
for (i = 0; i < r;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_351569/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_351569/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
//問題文より、入力される表の最大の大きさ(100)+1の大きさを要素数とする
#define MAX_ROW 101
#define MAX_COLUMN 101
//関数プロトタイプ宣言
void set_sum(long int body[MAX_ROW][MAX_COLUMN], int row, int column);
//表の構造体
typedef struct{
int row;
int column;
long int body[MAX_ROW][MAX_COLUMN];
}Table;
int main(void)
{
//メンバーを0で初期化
Table ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_351611/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_351611/source.c"
target datalayout = "e-m:e-p270: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.Table = type { i32,... |
#include <stdio.h>
int main()
{
int r,c,i,j,k;
long long int sps[1000][1000];
//行数と列数を入力する
scanf("%d %d",&r,&c);
//r*cの表を作成する
for(i=0;i<r;i++){
for(j=0;j<c;j++){
scanf("%lld",&sps[i][j]);
sps[r][c] += sps[i][j];//表全体の合計を右下に追加
sps[r][j] += sps[i][j];//各列の合計を右端に追加
sps[i][c] += sps[i][... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_351655/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_351655/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
int main(void) {
char s[12];
int i = 0;
scanf("%s", s);
while(i < 4) {
printf("%c", s[i]);
i++;
}
printf(" ");
while(i < 12) {
printf("%c", s[i]);
i++;
}
printf("\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_351699/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_351699/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
char a[256];
scanf("%s",a);
printf("%c%c%c%c %c%c%c%c%c%c%c%c\n",a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9],a[10],a[11]);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_351749/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_351749/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 cnt = 0, i;
scanf("%d%d%d", &a, &b, &c);
for(i = a; i <= b; i++) {
if(c%i == 0) cnt++;
}
printf("%d\n", cnt);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_351792/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_351792/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int a=0,b=0,c=0;
int rslt=0,cnt=0;
scanf("%d %d %d\n",&a,&b,&c);
for(int i=a;i<=b;i++)
{
rslt = c%i;
if(rslt==0)
{
cnt++;
}
}
printf("%d\n",cnt);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_351842/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_351842/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
int a,b,c,i,j;
scanf("%d %d %d",&a,&b,&c);
j=0;
for(i=a;i<=b;i++)
{
if(c%i==0)
j++;
}
printf("%d\n",j);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_351886/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_351886/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 );
int i,res;
res=0;
for( i=a; i<=b; i++) {
if( 0 == c%i ) {
res++;
}
}
printf( "%d\n", res);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_351936/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_351936/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i;
scanf("%I64d",&n);
if(n%2==0 && (n/2)%2==0)
{
printf("0\n");
printf("%I64d ",n/2);
for(i=1;i<n/2;i+=2)
printf("%I64d %I64d ",i,n-i+1);
return 0;
}
if(n%2==0 && (n/2)%2>0)
{
printf("1\n");
printf("%I64d ",n/2);
for(i=1... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_35198/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_35198/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main(void){
int a, b, c, x, y;
scanf("%d %d %d", &a, &b, &c);
for(x = a; x <= b; x++){
if(c%x == 0)y++;
}
printf("%d\n", y);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_352021/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_352021/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
int a, b, c, i, x, y;
int j = 0;
scanf("%d %d %d", &a, &b, &c);
for(i = a; i <= b; i++)
{
y = c / i;
x = c % i;
if(x == 0)
{
j++;
}
}
printf("%d\n", j);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_352065/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_352065/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,count,x;
scanf("%d %d %d",&a,&b,&c);
for(x=a;x<=b;x++){
if(c-(x*(c/x))==0){
count++;
}
}
printf("%d\n",count);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_352108/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_352108/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int a=0,b=0,c=0,i=0,j=0,k=0;
scanf("%d %d %d",&a,&b,&c);
i=c;
while(i > 0){
j=c%i;
if(j == 0){
if(a <= i && i <= b){
k=k++;}}
i--;
}
printf("%d\n",k);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_352151/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_352151/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
d=0;
scanf("%d%d%d",&a,&b,&c);
while(1){
if(a>b){break;}
else {if(c%a==0){
d=d+1;
a=a+1;}
else{a=a+1;}
}}
printf("%d\n",d);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_352195/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_352195/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 i = 0;
scanf("%d %d %d",&a,&b,&c);
for(a;a <= b;a++){
if(c % a == 0){
i++;
}
}
printf("%d\n",i);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_352245/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_352245/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int count=0;
int i;
scanf("%d %d %d",&a,&b,&c);
for(i=a;i<=b;i++)
{
if(c%i==0)count++;
}
printf("%d\n",count);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_352296/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_352296/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int i, total;
scanf("%d %d %d", &a, &b, &c);
total = 0;
for (i = a; i <= b; i++){
if (c % i == 0){
total = total + 1;
}
}
printf("%d\n", total);
return (0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_352339/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_352339/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,x,d;
int T = 0;
scanf("%d %d %d",&a,&b,&c);
for (x = a;x <= b;x++) {
if (c%x == 0) {
T++;
}
}
printf("%d\n",T);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_352382/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_352382/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i;
int sum = 0;
scanf("%d%d%d", &a, &b, &c);
for(i=a; i<=b; i++){
if(c%i == 0)
sum++;
}
printf("%d\n", sum);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_352425/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_352425/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int count=0;
int i;
scanf("%d %d %d",&a,&b,&c);
for(i=a;i<=b;i++){
if(c%i==0){
count++;
}
}
printf("%d\n",count);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_352469/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_352469/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,x,check;
int result = 0;
scanf("%d %d %d",&a,&b,&c);
for(x = a; x <= b; x++){
check = c % x;
if(check == 0){
result += 1;
}
}
printf("%d\n",result);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_352511/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_352511/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
int a,b,c,i=0,Count=0;
scanf("%d %d %d",&a,&b,&c);
for(i=a;i<=b;i++){
if(c%i==0){
Count++;
}
}
printf("%d\n",Count);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_352555/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_352555/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
e=0;
scanf("%d %d %d",&a,&b,&c);
for(d=a;d<=b;d++){
if(c%d==0){
e++;
}}
printf("%d\n",e);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_352605/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_352605/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int answer; //?´???°????????°
do{
scanf("%d %d %d",&a,&b,&c);
}while((a<1)||(b<1)||(c<1)||(a>10000)||(b>10000)||(c>10000)||(a>b));
for(answer=0;;a++){
if(a>b){
break;
}
if(c%a==0){
answer++;
}
}
//printf("%d %d %d\n",a,b,c);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_352649/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_352649/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d %d %d",&a,&b,&c);
for(e=0;a<=b;a++)
{
d=c%a;
if(d==0)
{
e=e+1;
}
}
printf("%d\n",e);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_352692/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_352692/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
int a,b,c,i,sum=0;
scanf("%d %d %d",&a,&b,&c);
for(i=a;i<=b;i++){
if(c%i==0)
sum++;
}
printf("%d\n",sum);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_352735/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_352735/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i,result=0;
scanf("%d%d%d",&a,&b,&c);
for(i=1;i<=c;i++){
if(c%i==0 && a<=i && i<=b){
result++;
}
}
printf("%d\n",result);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_352779/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_352779/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,yakusu=0;
scanf("%d %d %d",&a,&b,&c);
for(;;){
if(c%a==0){
yakusu++;
}
a++;
if(a>b){
break;
}
}
printf("%d\n",yakusu);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_352821/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_352821/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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=0;
scanf("%d %d %d", &a, &b, &c);
for (; a <= b; a++) {
if (c % a == 0)
{
d++;
}
}
printf("%d\n", d);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_352865/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_352865/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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=0;
int a,b,c,temp;
scanf("%d%d%d",&a,&b,&c);
if(a > b){
temp = a; a = b; b = temp;
}
temp = a;
while(temp != b+1){
if(c%temp == 0)i++;
temp++;
}
printf("%d\n",i);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_352908/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_352908/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
d=0;
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&c);
for(int i=a;i<=b;i++){
if(c%i==0)
d++;
}
printf("%d\n",d);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_352951/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_352951/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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
#include<stdio.h>
int main(void) {
int a, b, c;
int x = 0;
int count = 0;
scanf("%d %d %d", &a, &b, &c);
for (x = a; x <= b; x++) {
if (c%x == 0) {
count++;
}
}
printf("%d\n", count);
return(0);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_352995/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_352995/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(int argc, const char * argv[]) {
int a,b,c;
int i;//アクセス用
int count=0;//カウント用
scanf("%d %d %d",&a,&b,&c);
for(i=a;i<=b;i++){
if(c%i==0){
count++;
}
}
printf("%d\n",count);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_353037/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_353037/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 cnt=0;
scanf("%d%d%d",&a,&b,&c);
for(a;a<=b;a++)
{
if(c%a==0)
cnt++;
}
printf("%d\n",cnt);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_353080/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_353080/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
int n = 0, count = 0;
for(n = a; n <= b; n++) {
if(c % n == 0) {
count++;
}
}
printf("%d\n",count);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_353123/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_353123/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int i;
int n;
scanf("%d%d%d", &a, &b, &c);
n = 0;
for (i = a; i <= b; i++){
if (c % i == 0){
n++;
}
}
printf("%d\n", n);
return (0);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_353167/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_353167/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
#define N 5000
#define MD 998244353
long long power(int a, int k) {
long long p;
if (k == 0)
return 1;
p = power(a, k >> 1);
p = p * p % MD;
if (k & 1)
p = p * a % MD;
return p;
}
int dp[N + 1][N + 1];
void init(int k, int n) {
int i, j;
dp[0][0] = 1;
for (i = 0... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_35321/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_35321/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@dp = dso_local local_unnamed... |
#include <stdio.h>
int main()
{
int a,b,c,cnt,i;
scanf("%d %d %d",&a,&b,&c);
for(i=a,cnt=0;i<=b;cnt+=!(c%i++));
printf("%d\n",cnt);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_353253/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_353253/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,x;
scanf("%d %d %d",&a,&b,&c);
for(;a<=b;a++){
if(c%a==0)x++;
}
printf("%d\n",x);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_353297/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_353297/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, i, x, judge, count;
scanf("%d %d %d",&a, &b, &c);
for(i = a; i <= b; i++){
x = c/i;
judge = c - x*i;
if(judge == 0) count++;
}
printf("%d\n",count);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_353347/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_353347/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
int ans = 0;
for (int x = 1; x*x <= c; x++) {
// 平方数のときの処理
if (x * x == c) {
if ( a <= x && x <= b ) { ans++; }
} else if (c % x == 0) {
if ( a <= x && x <= b ) { ans++; }
if ( a <= c/x && c/x <= b ) { a... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_353398/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_353398/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, count , i;
scanf("%d %d %d",&a, &b, &c);
for(i=a;i<=b;i++) {
if(c%i==0) count++;
}
printf("%d\n",count);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_353440/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_353440/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, x;
x = 0;
scanf("%d %d %d", &a, &b, &c);
for(a;a<=b;a++)
{
if (c%a == 0) {
x++;
}
}
printf("%d\n", x);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_353484/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_353484/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int cnt = 0;
scanf("%d%d%d",&a,&b,&c);
for(int i = a; i <= b; i++){
if(!(c%i))cnt++;
}
printf("%d\n",cnt);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_353527/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_353527/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, a, b, c, d;
d = 0;
scanf("%d", &a); scanf("%d", &b);
scanf("%d", &c);
for (i = a; i <= b; i++) {
if (c % i == 0) {
d += 1;
}
}
printf("%d\n", d);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_353613/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_353613/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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.