Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include<stdio.h>
int main(){
int i,j,H,W;
while(1){
scanf("%d %d",&H,&W);
if(H==0&&W==0) break;
for(i=0;i<H;i++){
for(j=0;j<W;j++){
if((i+j)%2==0) printf("#");
else printf(".");
}
printf("\n");
}
printf("\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225226/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225226/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/* .................... compiled by alankar....................
*/
//......................SHORTCUTS..............................
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
//...........................................................
#define pi 3.14159265358979323846 //float type
#de... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22527/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22527/source.c"
target datalayout = "e-m:e-p270: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_unname... |
#include <stdio.h>
int main(void){
int h, w;
int i, j, k;
while(1){
scanf("%d %d", &h, &w);
if(h == 0 && w == 0){
break;
}
for(i = 0; i < h; i++){
if(i % 2 == 0){
for(k = 0; k < w; k++){
if(k % 2 == 0){
putchar('#');
}else{
putchar('.');
}
}
}else{
for(k... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225312/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225312/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, p[100], i, f, j, a[100], b;
char s[100][101], c[101];
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%s%d",&s[i],&p[i]);
a[i]=i+1;
}
for(i=0;i<n-1;i++)
for(f=i+1;f<n;f++){
j=0;
while((j<strlen(s[i]))&&(j<strl... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225378/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225378/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
typedef struct
{
char city[12];
int rev;
int num;
}rest;
int cmp(const void *p,const void *q)//降順
{
if(strcmp(((rest*)p)->city,((rest*)q)->city)==0)return ((rest*)q)->rev - ((rest*)p)->rev;
return strcmp(((rest*)p)->city,((rest*)q)->city);
}
int main()
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225435/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225435/source.c"
target datalayout = "e-m:e-p270: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.rest = type { [12 x... |
#include<stdio.h>
#include<string.h>
struct d{
char s[20];
int p;
int cc;
};
int main(){
int n;
char buf[17];
scanf("%d", &n);
struct d ss[n];
for(int i=0;i<=n;i++){
scanf("%s %d", ss[i].s, &ss[i].p);
ss[i].cc=i+1;
}
for(int i=0;i<n-1;i++){
for(int j=n-1;j>i;j--){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225486/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225486/source.c"
target datalayout = "e-m:e-p270: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.d = type { [20 x i8... |
#include<stdio.h>
int main(){
int i=0;
char s[19];
scanf("%s", s);
for(;i<19;i++){
if(s[i] == ','){
s[i] = ' ';
}
}
printf("%s\n", s);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225529/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225529/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[20];
if (scanf("%s", s) != 1) {
printf("Failed to read strings.\n");
return -1;
}
int i = 0;
while (i < strlen(s)) {
if (s[i] == ',') {
s[i] = ' ';
}
i = i + 1;
}
printf("%s", s)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225572/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225572/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
int t,i,j,l,v,x,y,p,a,b,c;
scanf("%d",&t);
for(i=1;i<=t;i++)
{
scanf("%d %d %d %d",&l,&v,&x,&y);
x--;
p=(l/v)-(y/v)+(x/v);
printf("%d\n",p);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22563/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22563/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main(void){
char s[20];
scanf("%s",&s);
s[5]=' ';
s[13]=' ';
printf("%s",s);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225673/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225673/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 s[20];
int i;
scanf("%s",s);
for(i=0;s[i]!='\0';i++){
if(s[i]==','){
s[i] = ' ';
}
}
printf("%s",s);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225745/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225745/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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;
char s[19];
scanf("%s", s);
for (i = 0; i < 19; i++) if (s[i] == ',') s[i] = ' ';
printf("%s", s);
return (0);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225796/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225796/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 s1[6], s2[8], s3[6];
scanf("%[^,],%[^,],%s", s1, s2, s3);
printf("%s %s %s\n", s1, s2, s3);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225846/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225846/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 s[32];
scanf("%s", s);
s[5] = s[13] = ' ';
puts(s);
return (0);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225897/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225897/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#include <string.h>
#define ll long long
#define rep(i,n) for(ll i=0;i<(n);i++)
#define max(p,q) ((p)>(q)?(p):(q))
#define min(p,q) ((p)<(q)?(p):(q))
#define chmax(a,b) ((a)=(a)>(b)?(a):(b))
#define chmin(a,b) ((a)=(a)<(b)?(a):(b))
#define abs(p) ((p)>=(0)?(p):(-... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225947/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225947/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int A,B,C;
scanf("%d %d %d", &A,&B,&C);
if(A+B>=C){
printf("%d\n", B+C);
}else{
printf("%d\n", A+B+1+B);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225998/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225998/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int temp[100001];
int ans[100002];
int co[100002]={0},ne[100002],a[100002];
int main()
{
int i,n,k;
scanf("%d",&n);
for(i=1;i<=n;i++)
scanf("%d",&a[i]);
for(i=1;i<=n;i++)
{
scanf("%d",&ne[i]);
co[ne[i]]++;
}
// for(i=0;i<=n;i++)
// printf("%d ",co[i]);
int next=n,max=-1;
for(i=1;i<=n;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22604/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22604/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@co = dso_local local_unnamed... |
#include<stdio.h>
int main(){
long long i,n,d[31]={1,1,2};
for(i=3;i<31;i++)d[i]=d[i-1]+d[i-2]+d[i-3];
while(scanf("%lld",&n),n)printf("%lld\n",(d[n]-10)/3650+1);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_226083/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_226083/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 p1,p2,p3,p4,p5,s,U,N,M,C,P,L,K,J,i;
scanf("%d",&N);
scanf("%d",&C);
P=0;
for(i=0;i<C;i++) {
scanf("%d",&p1);
P=P+p1;
}
K=N+1;
L=P/K;
M=P%K;
if (M>0) {
L=L+1;
}
// printf("L=%d M=%d\n",L,M);
printf("%d\n",L);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_226177/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_226177/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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<limits.h>
int main()
{
int i,j,m,n,ans,ma,mi;
int fma;
int x;
while(scanf("%d%d",&m,&n)!=EOF)
{
ma=INT_MIN;
fma=INT_MAX;
mi=INT_MAX;
for(i=0;i<m;i++)
{
scanf("%d",&x);
ma=ma>x?ma:x;
mi=mi>x?x:mi;
}
for(i=0;i<n;i++)
{
scanf... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22622/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22622/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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, h, w, x, y;
scanf("%d %d %d", &n, &h, &w);
x = n - h + 1;
y = n - w + 1;
printf("%d", x * y);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_226285/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_226285/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,c=0;
scanf("%d",&n);
int a[n];
for(int i=0;i<n;i++){
scanf("%d",&a[i]);
}
for(int i=1;i<n-1;i++){
if(a[i-1]>a[i] && a[i]>a[i+1]){
c++;
}
else if(a[i-1]<a[i] && a[i]<a[i+1]){
c++;
}
}
prin... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_226342/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_226342/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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<math.h>
int main(){
int n;
int p[22];
int i;
int cnt = 0;
scanf("%d", &n);
for(i = 1;i <= n;i++) scanf("%d", &p[i]);
for(i = 2;i < n;i++){
if(p[i - 1] < p[i] && p[i] < p[i + 1]) cnt++;
if(p[i - 1] > p[i] && p[i] > p[i + 1]) cnt+... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_226386/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_226386/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,p[21],i,j,k,cnt=0;
scanf("%d",&n);
for(i=0; i<n; i++){
scanf("%d",&p[i]);
}
for(i=0; i<n-2; i++){
j=i+1;
k=i+2;
if((p[j]<=p[k] && p[j]>=p[i]) || (p[j]<=p[i] && p[j]>=p[k])){
cnt++;
}
}
printf("%d\n",cnt);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_226429/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_226429/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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, p[20], i, c=0;
scanf("%d", &n);
for(i=0; i<n; i++)
scanf("%d", &p[i]);
for(i=2; i<n; i++){
if((p[i-2] < p[i-1] && p[i-1] < p[i]) || (p[i] < p[i-1] && p[i-1] < p[i-2]))
c++;
}
printf("%d\n",c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_226472/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_226472/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,p[20],r=0;
scanf("%d",&n);
for(i=0;i<n;i++) {
scanf("%d",&p[i]);
}
for(i=1;i<n-1;i++) {
r += (p[i] < p[i+1] && p[i] > p[i-1]) || (p[i] > p[i+1] && p[i] < p[i-1]);
}
printf("%d\n",r);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_226522/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_226522/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int n,i,ans=0;
int p[21];
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&p[i]);
}
for(int j=1;j<n-1;j++){
if((p[j-1]<p[j]&&p[j]<=p[j+1])||(p[j+1]<p[j]&&p[j]<=p[j-1])){
ans++;
}
}
printf("%d",ans);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_226566/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_226566/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int kansu(int a,int b,int c)
{
if((a<b&&b<=c)||(a>=b&&b>c))
return 1;
else
return 0;
}
int main(void)
{
int n;
int p[20];
int ans=0;
int i;
scanf("%d",&n);
for(i=0;i<n;i++)
scanf("%d",&p[i]);
for(i=0;i<n-2;i++)
{
ans += kansu(p[i],p[i+1],p[i+2]);
}
printf(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_226609/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_226609/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 i;
int pre,dir = 1,tmp,cn = 0;
scanf("%d",&pre);
for(i=1;i<n;i++){
scanf("%d",&tmp);
if((tmp -pre)*dir<0) dir *= -1;
else if(i != 1) cn++;
pre = tmp;
}
printf("%d",cn);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_226652/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_226652/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int n;
int i;
int ct = 0;
int num[20];
scanf("%d", &n);
for ( i = 0; i < n; i++ ) {
scanf("%d", &num[i]);
}
for (i = 1; i < n-1; i++) {
if ( num[i] > num[i-1] && num[i] < num[i+1] ) {
ct++;
}
if ( num[i] < num[i-1] && num[i] > num[i+1] ) {
c... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_226696/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_226696/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,L,R;
scanf("%d %d %d %d",&A,&B,&C,&D);
L=A+B;
R=C+D;
if(L>R) printf("Left\n");
if(L<R) printf("Right\n");
if(L==R) printf("Balanced\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_226739/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_226739/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int a,b,c,d;
scanf("%d%d%d%d",&a,&b,&c,&d);
printf(a+b==c+d?"Balanced":a+b>c+d?"Left":"Right");
return 0;} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_226782/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_226782/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 A,B,C,X;
char S[10];
scanf("%d %d %d %d",&A,&B,&C,&X);
if(A+B>C+X){
printf("Left");
}else if(A+B==C+X){
printf("Balanced");
}else{
printf("Right");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_226825/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_226825/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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,b,c,d ;
int main(void){
scanf ("%d%d%d%d",&a,&b,&c,&d) ;
if ( a+b>c+d ){
printf ("Left\n") ;
} else if ( a+b==c+d ){
printf ("Balanced\n") ;
} else {
printf ("Right\n") ;
}
return 0 ;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_226876/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_226876/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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;
scanf("%d %d %d %d",&A,&B,&C,&D);
int ans=A+B-C-D;
if(ans > 0){
printf("Left");
}
else if(ans==0){
printf("Balanced");
}
else{
printf("Right");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_226919/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_226919/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
int a, b, c, d;
scanf("%d%d%d%d", &a, &b, &c, &d);
if (( a + b ) > ( c + d ))
{
printf("Left\n");
}
else if (( a + b ) < ( c + d ))
{
printf("Right\n");
}
else
{
printf("Balanced\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_226962/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_226962/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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[5],i,m=1;
for(i=0;i<5;i++)scanf("%d",&n[i]);
i=1;
while(n[0]>n[1]*m)++m;
while(n[0]>n[3]*i)++i;
n[2]*=m,n[4]*=i;
if(n[2]>n[4])n[2]=n[4];
printf("%d\n",n[2]);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227004/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227004/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int kin(int n, int m, int k)
{
return((n%m==0)?(n/m*k):((n/m+1)*k));
}
int main(int rgc, char *argv[])
{
int a, b, c, d, n, set1, set2;
scanf("%d %d %d %d %d", &n, &a, &b, &c, &d);
set1 = kin(n, a, b);
set2 = kin(n, c, d);
printf("%d\n", (set1 <= set2)?(set1):(set2));
ret... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227048/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227048/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 x1,x2,a;
scanf("%d %d",&x1,&x2);
if(x1<x2){
printf("%d\n",x2-x1);
}
else{
printf("%d\n",x1-x2);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227099/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227099/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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){
printf("%d\n",(b-a));
}
else if(a==b){
printf("%d\n",(a-b));
}
else{
printf("%d\n",(a-b));
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227141/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227141/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 a, b;
scanf("%ld %ld", &a, &b);
if ( (a*b)%2 == 0 ) {printf("Even");}
else {printf("Odd");}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227192/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227192/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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;
scanf("%d %d",&a,&b);
x=a*b;
if(x%2==0) printf("Even\n");
else printf("Odd\n");
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227235/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227235/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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) == 0) printf("Even\n");
else if(((a*b)%2) != 0) printf("Odd\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227279/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227279/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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==0)
{
printf("Even");
}else{
printf("Odd");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227321/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227321/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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, x;
scanf("%d %d",&a, &b);
x = a * b;
if(x % 2 == 0){
printf("Even");
} else {
printf("Odd");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227365/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227365/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void) {
int x,y;
scanf("%d %d", &x,&y);
if (x*y % 2 == 0) {
printf("Even");
}else{
printf("Odd");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227408/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227408/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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",&a,&b);
c=a*b;
if(c%2==0){
printf("Even");
}
else{
printf("Odd");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227451/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227451/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <time.h>
#define REP(i,n) for(i=0;i<n;i++)
#define ll long long
int main(void){
int a,b;
scanf("%d",&a);
scanf("%d",&b);
if(a%2==0 || b%2==0){
printf("Even");
} else{
printf("Odd");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227495/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227495/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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);
int product = a * b;
if(product % 2 == 0){
printf("Even\n");
}else{
printf("Odd\n");
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227538/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227538/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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*b)%2 == 0) printf("Even");
else printf("Odd");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227581/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227581/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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*b%2==0){
printf("Even\n");
}else{
printf("Odd\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227624/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227624/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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", &a, &b);
c = a*b;
if(c%2 == 0) puts("Even");
else puts("Odd");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227668/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227668/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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", &a, &b);
c = a * b;
if(c % 2 == 0) {
printf("Even\n");
}
else {
printf("Odd\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227710/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227710/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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*b%2==1){
printf("Odd");
}else if(a*b%2==0){
printf("Even");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227761/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227761/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int a,b;
scanf("%d",&a);
scanf("%d",&b);
if(a*b%2==0){
printf("Even");
}
else{printf("Odd");}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227804/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227804/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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;
c=0;
d=0;
scanf("%d %d", &a, &b);
c = a * b;
d = c % 2;
if(d == 0){
printf("Even");
}else{
printf("Odd");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227848/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227848/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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=0;
int b=0;
scanf("%d %d",&a,&b);
if((a*b)%2){
printf("Odd");
}else{
printf("Even");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227891/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227891/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <inttypes.h>
static unsigned int x=62526377;
static unsigned int y=5463654;
static unsigned int z=87602543;
static unsigned int w=13597657;
void seed(unsigned int a,unsigned int b,unsigned int c,unsigned int d) {
if((a|b|c|d)==0)return;
x=a;y=b;z=c;w=d;
}
unsigned int randint(void) {
u... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227934/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227934/source.c"
target datalayout = "e-m:e-p270: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.lr_t = type { i32, ... |
#include<stdio.h>
int main()
{
long long int t,n,i,j,grid[305][305],k,m,flag;
scanf("%lld",&t);
for(i=0;i<t;i++)
{
flag=0;
scanf("%lld%lld",&n,&m);
for(j=0;j<n;j++)
{
for(k=0;k<m;k++)
{
scanf("%lld",&grid[j][k]);
if(grid[j][k]>4)
flag=1;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22802/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22802/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <math.h>
#include <string.h>
int gcd(int a,int b){
if(a<b){
int now=a;
a=b;
b=a;
}
int r=a%b;
while(r!=0){
a=b;
b=r;
r=a%b;
}
return b;
}
/* 値を入れ替える関数 */
void swap (int *x, int *y) {
int temp; // 値を一時保存する変数
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228106/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228106/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int t, n, i;
int a[99];
scanf("%d", &t);
while(t--){
scanf("%d", &n);
for(i = 0; i < n; i++){
scanf("%d", &a[i]);
if(i % 2 == 0){
if(a[i] < 0){
a[i] *= -1;
}
}
else{
if(a[i] > 0){
a[i] *= -1;
}
}
printf("%d ", a[i]);
}
printf("\n"... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22815/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22815/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
#include<stdlib.h>
int main(){
int t;
scanf("%d", &t);
while(t--){
int n, m;
scanf("%d%d", &n, &m);
int a[n][m], flag = 1;
for(int i = 0; i < n; i++)
for(int j = 0; j < m; j++){
scanf("%d", &a[i][j]);
if( (i == 0 || i == n - 1) && (j == 0 || j == m-1) &&
a[i][j] >... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22820/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22820/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
#include<stdlib.h>
int main(){
int i,j,n,s[100],max,min,ans;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&s[i]);
}
max = 0;
min = 1000;
for(j=0;j<n;j++){
if(s[j]>=max){
max=s[j];
}
if(s[j]<=min){
min = s[j];
}
}
ans=max-min;
printf("%d",ans);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228243/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228243/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
int main()
{
int n,i,min,max;
int a[101];
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d",&a[i]);
if(i==0)
{
min=a[i];
max=a[i];
}
else
{
if(max<a[i])
max=a[i];
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228287/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228287/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
void func1(int N, int divisor_num, int *ans)
{
int i, j, count;
for (i = 1; i <= N; i += 2) //O(N/2)
{
count = 0;
for (j = 1; j * j <= i; j++) //O(√i)
{
if (i == j * j)
{
count++;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228344/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228344/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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, count, ans = 0, num, cnt;
scanf("%d", &n);
for (int i = 105; i <= n; i += 2) {
count = 1;
num = i;
for (int j = 3; j <= i; j++) {
cnt = 0;
while (num % j == 0) {
num /= j;
cnt++;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228388/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228388/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int N;
scanf("%d", &N);
if(N >= 105){
if(N >= 135){
if(N >= 165){
if(N >= 189){
if(N >= 195){
printf("5\n");
}
else{
printf("4\n");
}
}
else{
printf("3\n");
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228430/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228430/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,di,x;
x=0;
scanf("%d",&n);
for(int i=1; i<=n; i+=2){
di=0;
for(int j=1; j<=i; j++){
if(i%j==0)
di++;
}
if(di==8)
x++;
}
printf("%d",x);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228474/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228474/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 goes here
int n,i,num=0;
scanf("%d",&n);
if(n<12)printf("0\n");
else if(n>12) {
for(i=13;i<=n;i++){
if(i%2!=0){
int cnt=0;
for(int j=1;j<=i;j++){
if(i%j==0)cnt++;
if(cnt>7)num++;
}
//printf("%d ",cnt);
}
else continue;
}
printf("%d\n",num)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228517/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228517/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
int i,j,N;
int count=0;
scanf("%d",&N);
for(i=1;i<=N;i+=2){
int res = 0;
for(j=1;j<=i;j++){
if(i%j==0){res++;}
}
if(res==8){count++;}
}
printf("%d\n",count);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228560/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228560/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i,n,cnt=0,ans=0;
scanf("%d",&a);
for(i=1;i<=a;i++){
for(n=1;n<=i;n++){
if(i%n==0){
cnt+=1;
}
}if(cnt==8){
ans+=1;
cnt=0;
i+=1;
}else{cnt=0;i+=1;}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228610/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228610/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
typedef long long int int64;
#define MAX(a,b) ((a)>(b)?(a):(b))
#define MIN(a,b) ((a)<(b)?(a):(b))
#define ABS(a) ((a)>(0)?(a):-(a))
void run(void){
int n;
scanf("%d",&n);
int cnt=0;
int i;
for(i=1;i<=n;i+=2){
int c=0;
int j;
for(j=1;j<=i;j+... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228654/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228654/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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[50], b[50];
scanf("%s %s", a, b);
int i,j=0,k=0;
for(i=0;a[j]!='\0'||b[k]!='\0';i++){
if(i%2==0){printf("%c",a[j++]);}
else{printf("%c",b[k++]);}
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228698/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228698/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
int main(){
char a[51],b[51];
scanf("%s %s",a,b);
for(int i=0;i<strlen(a);i++){
printf("%c",a[i]);
if(b[i]!='\0')printf("%c",b[i]);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228740/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228740/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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){
char o[51],e[51];
scanf("%s%s",o,e);
for(int i=0;i<strlen(o);i++){
printf("%c",o[i]);
if(i<strlen(e))printf("%c",e[i]);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228784/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228784/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 o[51],e[51],pass[101]={};
int i;
scanf("%s",o);
scanf("%s",e);
for(i=0;o[i]!='\0';i++){
pass[i*2]=o[i];
}
for(i=0;e[i]!='\0';i++){
pass[i*2+1]=e[i];
}
printf("%s\n",pass);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228827/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228827/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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){
char O[51],E[51],ans[102];
int i,len1,len2;
scanf("%s",O);
scanf("%s",E);
len1 = strlen(O);
len2 = strlen(E);
for(i=0;i<len2;i++){
printf("%c",O[i]);
printf("%c",E[i]);
}
if(len1 > len2) printf("%c",O[len1-1]);
putchar(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228885/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228885/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[11];
int a = 0;
scanf("%d", &a);
scanf("%s", s);
if(a>=3200) printf("%s", s);
else printf("red");
//printf("%d", count);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228928/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228928/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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;
char s[11];
scanf("%d %s",&n,s);
if(n>=3200)
printf("%s\n",s);
else
printf("red\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228971/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228971/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(){
int a;
char s[12];
scanf("%d",&a);
scanf("%s",s);
if(a<3200){
printf("red\n");
}
else{
printf("%s\n",s);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229013/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229013/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
struct alpha
{
char s[11];
};
int main()//void 없애버리기?
{
int a;
struct alpha s[11];
printf("\n");
if(scanf("%d", &a)==1&&scanf("%s", s[0].s))
{
printf("\n");
printf("\n");
if((2800)<=a<5000)
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229057/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229057/source.c"
target datalayout = "e-m:e-p270: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.alpha = type { [11 ... |
#include <stdio.h>
#include <string.h>
int main(int argc, char const* argv[])
{
int a;
int s[10];
scanf("%d%s",&a,s);
if(a >= 3200)printf("%s",s);
else printf("red");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229107/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229107/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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;
char s[11];
scanf("%d",&a);
scanf("%s",s);
if(a>=3200){
printf("%s\n",s);
}else{
printf("red\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229158/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229158/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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;
char s[100];
char r[] = "red";
scanf("%d",&a); // numero
scanf("%s", s ); // string
if (a > 3200 || a == 3200){
printf("%s\n",s );
} else{
printf("%s\n",r);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229200/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229200/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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;
char s[16];
scanf("%d%s", &a, s);
if (a >= 3200)
printf("%s\n", s);
else
printf("red\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229244/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229244/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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;
char s[10];
scanf("%d", &a);
scanf("%s", s);
if(a >= 3200){
printf("%s\n", s);
}
else{
printf("red\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229288/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229288/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void) {
int a;
scanf("%d", &a);
char s[10];
scanf("%s", s);
if (a < 3200) {
printf("%s\n", "red");
return 0;
}
printf("%s\n", s);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229330/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229330/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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;
char s[20];
scanf("%d", &a);
scanf("%s", s);
if(a >= 3200){
printf("%s\n",s);
}else{
puts("red");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229381/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229381/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 lun[100000];
int k, d, idx = 9;
scanf("%d", &k);
for(int i=0; i < 9; i++)
lun[i] = i + 1;
if(k <= idx) {
printf("%ld", lun[k-1]);
return 0;
}
for(int i=0; idx < k; i++) {
for(int j=-1; j <= 1; j++) {
d = lun[i]%10 + j;
if(d < 0 || d > 9)
continue;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229424/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229424/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 N,M,f[1000005]={0,1},i,r;
int main()
{
for(i=2;i<1000005;i++)
{
if((i%2==0&&f[i/2])||(i%3==0&&f[i/3])||(i%5==0&&f[i/5]))
f[i]=1;
}
for(;scanf("%d%d",&M,&N),M;)
{
for(i=0;M<=N;M++)
if(f[M])i++;
printf("%d\n",i);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229475/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229475/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@f = dso_local local_unname... |
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
int i,j,k,n,m,mark[2000000];
int main(){
mark[1]=1;
for(i=1;i<=1000000;i++){
if(mark[i]==1){
if(i*2<=1000000)mark[i*2]=1;
if(i*3<=1000000)mark[i*3]=1;
if(i*5<=1000000)mark[i*5]=1;
}
mark[i]+=mark[i-1];
}
while(scanf("%d",&m)*m){
scanf("%d",... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229518/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229518/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@mark = dso_local local_unn... |
#include<stdio.h>
#include<string.h>
#include<math.h>
#define FOR(n) for(int i = 0;i < n;i++)
#define PRN(n) printf("%d\n",n)
int sosu(int a){
if(a < 2)return 0;
for(int j = 2;j <= (int)pow(a,0.5);j++){
if(a % j < 1)return 0;
}
return 1;
}
int main(void){
int n,l,r,f[100001],cnt = 0,x[100001];
scanf("%d... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229561/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229561/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <stddef.h>
#include <string.h>
#include <ctype.h>
char buf[100001];
int buf2[100001];
int buf3[100001];
int main(void)
{
char s[1000];
int n,i,j,l,r,c,x;
fgets(s,1000,stdin);
sscanf(s,"%d",&n);
memset(buf,0,sizeof(buf));
memset(buf2,0,sizeof(buf2));
memset... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229604/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229604/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = external local_unn... |
#include <stdio.h>
int main(){
int n,m,i,j,a[100000],maxv,tmp;
while(1){
scanf("%d %d", &n, &m);
if(n==0 && m==0) break;
for(i=0; i<n; i++){
scanf("%d", &a[i]);
}
maxv = 0; // answer
for(i = 0; i < n; i++){
for( j = 0; j < n; ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229648/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229648/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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, i, j, num;
int max = 0;
int a[1001] = { 0 };
while (1) {
scanf("%d %d", &n, &m);
if (n == 0 && m == 0) {
break;
}
for (i = 0; i < n; i++) {
scanf("%d", &a[i]);
}
for (i = 0; i < n - 1; i++) {
for (j = i+1 ; j < n; j++) {
num = a[i] + a[j];
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229691/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229691/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main (){
int n,i,j,x;
scanf("%d",&n);
for(i=1;i<=n;i++){
x=i;
if(i%3==0){
printf(" %d",i);
}else{
while(x>0){
if(x%10==3){
printf(" %d",i);
break;
}else{
x=x/10;
}
}
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229734/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229734/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,i,n;
scanf("%d",&n);
for(i=1; i<=n; i++) {
x = i;
if(x %3 == 0) {
printf(" %d",i);
} else if(x % 10 == 3) {
printf(" %d",i);
} else {
while(x != 0) {
x /=10;
if(x % 10 == 3) {
printf(" %d",i);
break;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229778/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229778/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 i, j;
scanf("%d", &n);
for (i = 1; i <= n; i++)
{
x = i;
if (x % 3 == 0)
printf(" %d", i);
else
{
while (1)
{
if (x % 10 == 3)
{
printf(" %d", i);
break;
}
if (x == x / 10)
break;
x /= 10;
}
}
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229864/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229864/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 NEXT_NONE 0
#define NEXT_CHECK_NUM 1
#define NEXT_INCLUDE3 2
#define NEXT_END_CHECK_NUM 3
void call(int n){
int next;
int i,x;
i = 1;
next = NEXT_CHECK_NUM;
for(;;){
if( next == NEXT_CHECK_NUM ){
x = i;
if( x % 3 == 0 ){
printf(" %d",i);
next = NEXT_END_CHECK_NUM;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229907/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229907/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 = 0;
int i = 1;
int x = 0;
scanf("%d", &n);
do {
x = i;
if ((x % 3) == 0) {
printf(" %d", i);
continue;
}
do {
if ((x % 10) == 3) {
printf(" %d", i);
break;
}
x /= 10;
} while (x);
} while (++i <= n);
prin... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229950/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229950/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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.