Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include <stdio.h>
int main(void) {
int N, M;
int s[16], c[16];
int i;
int seiyaku[16];
if (scanf("%d%d", &N, &M) != 2) return 1;
for (i = 0; i < M; i++) {
if (scanf("%d%d", &s[i], &c[i]) != 2) return 1;
}
for (i = 0; i < N; i++) seiyaku[i] = -1;
for (i = 0; i < M; i++) {
if (seiyaku[s[i] - 1] < 0) {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_119809/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_119809/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 = 0, m = 0;
scanf("%d %d", &n, & m);
int dig1 = -1, dig10 = -1, dig100 = -1;
int s, c;
for (int i = 0; i < m; i++){
scanf("%d %d", &s, &c);
if (s == n && (dig1 == -1 || dig1 == c))
dig1 = c;
else if (s == n - 1 && (dig10 == -... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_119852/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_119852/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
typedef long long ll;
int main(void){
int i,j;
// dic_t dic[200000];
// int ii[9];
// int ij[9];
char ans[3];
// int ilen[100];
// int ia,ib,ic;
int len,keta;
int si,ci;
ans[0] = ' ';
ans[1] = ' ';
ans[2] = ' ';
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_119896/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_119896/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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 <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include <limits.h>
#include <ctype.h>
#include <stdint.h>
#include <string.h>
#include <wchar.h>
#include <math.h>
#define N_MAX (100)
#define P_MAX (100)
#define DP_ARRAY_SIZE (N_MAX * P_MAX / 32 + 1)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_119939/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_119939/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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;
long long a[100000],ans[100000]={0},sum=0;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%lld",&a[i]);
sum+=a[i];
a[i]*=2;
}
long long tmp=0;
for(i=0;i<n-2;i+=2)tmp+=a[i];
ans[n-1]=sum-tmp;
for(i=n-1;i>0;i--)ans[i-1]=a[i-1]-ans[i];
for(i=0;i<n;i++)print... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_119997/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_119997/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
int i, j;
int n;
long a[100000];
long x[100000];
scanf("%d", &n);
for (i = 0; i<n; i++) {
scanf("%ld", &a[i]);
}
int xsum=0;
for (i = 0; i<n-1; i++) {
if(i%2==0)
xsum-=a[i];
else
xsum+=a[i];
}
xsum+=a[n-1];
x[n-1]=xsum;
for(i=n-2;i>=0;i-... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_120038/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_120038/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int max2(int a, int b){return a<b?b:a;}
int n, m, i;
int k;
char s[100001];
int D[100002], *d, e;
int now, max;
int main(void){
scanf("%d%d%s", &n, &k, s);
if(n==1){puts("1"); return 0;}
e=0; m=1;
for(i=0; i<n-1; i++){
if(s[i]==s[i+1]){
e++;
}else{
D[m]=e+1;
e=0; m+... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_120081/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_120081/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
void main()
{
char s[4];
int i;
for(i=0;i<3;i++)
{
scanf("%c",&s[i]);
}
if(s[0]=='M')
printf("6");
else if(s[0]=='W')
printf("4");
else if(s[0]=='F')
printf("2");
else if(s[0]=='S')
{
if(s[1]=='U')
printf("7");
else
printf("1");
}
else if(s[0]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_120131/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_120131/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(){
char s[4];
scanf("%s", s);
if(s[0] == 'S'){
if(s[1] == 'U') printf("7\n");
else printf("1\n");
}
else if(s[0] == 'M') printf("6\n");
else if(s[0] == 'T'){
if(s[1] == 'U') printf("5\n");
else p... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_120182/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_120182/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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;
char b[4];
scanf("%s",b);
if(b[0]='S'&&b[1]=='U'&&b[2]=='N')x=7;
else if(b[0]='M'&&b[1]=='O'&&b[2]=='N')x=6;
else if(b[0]='T'&&b[1]=='U'&&b[2]=='E')x=5;
else if(b[0]='W'&&b[1]=='E'&&b[2]=='D')x=4;
else if(b[0]='T'&&b[1]=='H'&&b[2]=='U')x=3;
else i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_120247/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_120247/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[4];
scanf("%s", s);
if(!strcmp(s,"SUN"))puts("7");
if(!strcmp(s,"MON"))puts("6");
if(!strcmp(s,"TUE"))puts("5");
if(!strcmp(s,"WED"))puts("4");
if(!strcmp(s,"THU"))puts("3");
if(!strcmp(s,"FRI"))puts... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_120290/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_120290/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(){
char wethar[3];
int sun = 7;
scanf("%s", &wethar);
if(wethar[0] == 'S' && wethar[1] == 'U'){
sun = 7;
}
if(wethar[0] == 'M' && wethar[1] == 'O'){
sun = 6;
}
if(wethar[0] == 'T' && wethar[1] == 'U'){
sun = 5... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_120340/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_120340/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 = 0;
char s[10];
scanf("%s",s);
if(strcmp(s,"SUN")==0)
a = 7;
else if(strcmp(s,"MON")==0)
a = 6;
else if(strcmp(s,"TUE")==0)
a = 5;
else if(strcmp(s,"WED")==0)
a = 4;
else if(strcmp(s,"THU")==0)
a = 3;
else if(strcmp(s,"FRI")==... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_120391/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_120391/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#define Mod 1000000007
long long div_mod(long long x, long long y, long long z)
{
if (x % y == 0) return x / y;
else return (div_mod((1 + x / y) * y - x, (z % y), y) * z + x) / y;
}
long long permutation(long long n, long long k)
{
long long i, x;
for (i = n, x = 1; i >= n ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_120434/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_120434/source.c"
target datalayout = "e-m:e-p270: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.List = type { ptr, ... |
#include<stdio.h>
int main()
{
int n, i, j, sum, min, a[1000];
while(scanf("%d",&n))
{
if(n==0)
break;
else
{
for(i=0;i<n;i++)
scanf("%d",&a[i]);
min = 1000000;
for(i=0;i<n-1;i++)
{
f... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_120492/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_120492/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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);
int waru = 0,m = n;
for(int i = 0;i < 10;i ++){
waru += n%10;
int temp = n;
n = n/10;
}
if(m%waru==0){
printf("Yes");
}
else{
printf("No");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_120535/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_120535/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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=0;
scanf("%d",&a);
b=a;
while(b>0){c+=b%10;b=b/10;}
printf(a%c?"No":"Yes");
return 0;}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_120579/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_120579/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 sum=0;
int a;
scanf("%d",&n);
a=n;
while(n){
sum+=n%10;
n/=10;
}
if(a%sum==0){
printf("Yes");
}else{
printf("No");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_120621/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_120621/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 i, total = 0, x, y;
int n;
scanf("%d", &n);
x = n;
while (x / 10 > 0)
{
y = x % 10;
x = x / 10;
total += y;
}
total += x;
if (n % total == 0)
{
printf("Yes\n");
}
else
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_120672/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_120672/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int func(int x){
if(x < 10)
return x;
return x % 10 + func(x / 10);
}
int main(){
int N;
scanf("%d",&N);
int s = func(N); //s:Nの各位の和
if(N % s == 0)
printf("Yes");
else
printf("No");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_120715/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_120715/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,s=0,i;
char num[11];
char *p=num;
scanf("%d",&n);
snprintf(num,11,"%d",n);
while(1){
if(*p=='\0') break;
s+=*p-'0';
p++;
}
if(n%s==0) printf("Yes\n");
else printf("No\n");
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_120766/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_120766/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
int main(void){
int N;
char S[11];
char Sbuf[11][2];
int Ss[10] = {0};
int Sn = 0;
scanf("%d", &N);
sprintf(S, "%d", N);
for(int i=0; S[i] != '\0'; i++){
Sbuf[i][0] = S[i];
Sbuf[i][1] = '\0';
Ss[i] = atoi(Sbuf[i]);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_120809/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_120809/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int a,b,c,d,e,f,g,h,i,j;
int S,N;
scanf("%d",&N);
a=N%10;
b=((N-a)/10)%10;
c=(((N-a)-10*b)/100)%10;
d=((N-a-b*10-c*100)/1000)%10;
e=((N-a-b*10-c*100-d*1000)/10000)%10;
f=((N-a-b*10-c*100-d*1000-e*10000)/100000)%10;
g=((N-a-b*10-c*100-d*1000-e*10000-f*100000)/1000000)%... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_120852/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_120852/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 i,j,n,m,k,a[200001],b[200001],sum=0,ans=0;
scanf("%d %d %d",&n,&m,&k);
for(i=1;i<=n;i++){
scanf("%d",&a[i]);
}
for(i=1;i<=m;i++){
scanf("%d",&b[i]);
}
for(i=0;i<n;i++){
if(sum+a[i+1]>k){break;}
sum+=a[i+1];
}
for(j=0;j<m;j++){
if... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_120960/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_120960/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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[256], s2[256];
int t1[256][2], t2[256][2];
int t1c, t2c;
while (scanf("%255s", s1) == 1 && s1[0] != '.') {
int i, j;
if (scanf("%255s", s2) != 1) return 1;
t1c = 0;
t1[0][0] = 0;
for (i = 0; s1[i] != '\0'; i++) {
if (s1[i] == '\"') {
t1[t1c][1] = i;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121002/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121002/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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);
char s[n+1];
scanf("%s",s);
int l[n],r[n],cnt=0;
l[0]=0;
for(int i=0;i<n;i++){
if(i==0)continue;
if(s[i]=='E'){
cnt++;
}
}
r[0]=cnt;
for(int i=1;i<n;i++){
if(s[i-1]=='W'){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121046/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121046/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 int a,b,c,d,max;
scanf("%ld", &a);
max = a;
scanf("%ld", &b);
if(max<b)max = b;
scanf("%ld", &c);
if(max<c)max = c;
scanf("%ld", &d);
if(max<d)max = d;
if(max == a){
printf("%ld ", a-d);
printf("%ld ", a-c);
printf("%ld", a-b);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_12109/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_12109/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 compare_int(const void *a, const void *b)
{
return *(int*)b - *(int*)a;
}
int main(){
int n,i,c=0;
long a[100000];
long long ab[2]={0};
scanf("%d",&n);
for(i=0;i<n;i++)scanf("%ld",&a[i]);
qsort(a,n,sizeof(long),compare_int);
for(i=1;i<n;i++){
if(c>=2)break;
if(a... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121132/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121132/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#define MOD1 1000000007
#define MOD2 998244353
#define LIMIT1 200002
#define LIMIT2 500002
typedef long long ll;
typedef long double ld;
typedef const void cv;
#define rep(i,n) for((i)=0;(i)<(n);(i)++)
#define per(i,n) for((i)=(n)-1;(i)>=0;(i)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121176/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121176/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@dx = dso_local local_unnam... |
#include <stdio.h>
int N,sum=0;
void dfs(long long int tmp, int flag) {
if (tmp > N) return;
if (tmp <= N && flag == 7) sum++;
dfs(tmp*10+3,flag|1);
dfs(tmp*10+5,flag|2);
dfs(tmp*10+7,flag|4);
}
int main() {
scanf("%d",&N);
dfs(0,0);
printf("%d\n",sum);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121219/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121219/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@sum = dso_local local_unna... |
#include <stdio.h>
int main()
{
int n,k,i,a,N=0 ,max,p,pvn=0;
int A[100];
scanf("%d%d",&n,&k);
for(i=0;i<100;i++)
{
A[i]=0;
}
for(i=0;i<n;i++)
{
scanf("%d",&a);
A[a-1]+=1;
}
max=A[0];
for(i=1;i<100;i++)
{
if(A[i]>max)
max=A[i];
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_12127/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_12127/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 count753(long long int num753);
int is753(long long int num);
long long int n;
int main(void){
int i,j,k,ans=0;
scanf("%lld",&n);
if(n < 357){
printf("0\n");
return 0;
}
ans += count753(0);
printf("%d",ans);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121312/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121312/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 str[6];
scanf("%s",str);
if (str[0] == str[1] && str[1] == str[2] && str[2] == str[3])
printf("No");
else if(str[0] == str[1] && str[2] == str[3])
printf("Yes");
else if(str[0] == str[2] && str[1] == str[3])
printf("Yes");
else if(str[0] == str[3] && str[1] == str[... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121356/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121356/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <stdbool.h>
// enum Steps
// {
// NONE,
// MONE,
// PONE,
// PMONE
// };
#define Z 0
#define M 1
#define P 2
#define PM 3
int main()
{
int t, n, m;
scanf("%d", &t);
while (t--)
{
scanf("%d", &n);
int a[n], b[n];
short s[n];
s[... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_1214/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_1214/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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(void)
{
char s[4];
int i,j;
int count=0;
scanf ("%s",&s);
for(i=0;i<4;i++){
for(j=0;j<4;j++){
if(s[i]==s[j]){
count++;
}
}
}
if(count!=8){
printf("No\n");
}
else{
printf("Yes\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121442/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121442/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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[4];
scanf("%s", a);
int count;
int sum =0;
for(int i=0;i<4;i++){
for(int j=0;j<4;j++){
if(a[i] == a[j]){
sum++;
}
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121493/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121493/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#pragma warning(disable:4996)
int main() {
char S[4];
scanf("%s", S);
if(S[0] == S[1] && S[1] != S[2] && S[2] == S[3]) printf("Yes");
else if(S[0] != S[1] && S[1] == S[2] && S[0] == S[3]) printf("Yes");
else if(S[1] == S[3] && S[0] == S[2] && S[0] != S[1]) printf("Yes");
else printf("No");
ret... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121536/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121536/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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[5];
char a[1],b[1];
int i=0,j=0;
scanf("%s",s);
if(s[0]==s[1]&&s[1]==s[2]&&s[2]==s[3])
printf("No");
else
{
if((s[0]==s[1]&&s[2]==s[3])||(s[0]==s[2])&&s[1]==s[3]||(s[0]==s[3]&&s[1]==s[2]))
printf("Yes");
else
printf("No");
}
return ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121587/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121587/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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()
{
char s[5];
char a,b;
int flag=0;
scanf("%s",s);
if(s[0]==s[1]&&s[2]==s[3]&&s[0]!=s[2])flag=1;
if(s[0]==s[2]&&s[1]==s[3]&&s[0]!=s[1])flag=1;
if(s[0]==s[3]&&s[1]==s[2]&&s[0]!=s[1])flag=1;
if(flag)printf("Yes");
else printf("No");
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121637/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121637/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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()
{
char s[4];
scanf("%s", s);
if ((s[0] == s[1] && s[0] != s[2] && s[2] == s[3]) ||
(s[1] == s[2] && s[1] != s[3] && s[3] == s[0]) ||
(s[0] == s[2] && s[1] == s[3] && s[0] != s[1]))
{
printf("Yes\n");
}
else
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121695/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121695/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_MAX 100
#define S_MAXL 25
#define T_MAXL 100
int n;
char s[S_MAXL + 1], t[N_MAX][T_MAXL + 1];
int sl,ans;
void solve(int i){
int p,q;
int tl = strlen(t[i]);
for(p=0;p<tl;p++){
if(t[i][p] != s[0])continue;
q = p;
while(++q < tl){
if(t[i][q] != s[1])continue;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121738/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121738/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@t = dso_local global [100 ... |
#include<stdio.h>
#include<stdlib.h>
#include<limits.h>
#define MIN(a,b) ((a) < (b) ? (a) : (b))
struct node {
int id;
int cap;
struct node *next;
};
struct node **list;
int **flow, *visit;
void Insert(int, int);
int Maxflow(int, int, int, int);
int main(void)
{
int i, x, y, v, e, s, t, maxflow = 0;
scanf("%d... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121781/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121781/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node = type { i32, ... |
#include <stdio.h> //GCD=最大公約数、LCM=最小公倍数
int main(void){
long long a,b;
while(scanf("%lld %lld",&a,&b)!=EOF){
long long temp_a,temp_b,c=1,LCM,GCD;
if(a<=b){
temp_a=b;
temp_b=a;
}
else{
temp_a=a;
temp_b=b;
}
while(c!=0){
c=temp_a%temp_b;
if(c==0){
temp_a=temp_b;
}
temp_a=temp_b... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121824/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121824/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 fun(long a,long b){
if(a==b){
return a;
}else if(a>b){
return fun(a-b,b);
}else{
return fun(b-a,a);
}
}
int main(){
long a,b,c,d;
while(scanf("%ld %ld",&a,&b)!=EOF){
c = fun(a,b);
d = (a*b)/c;
printf("%ld %ld\n",c,d);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121868/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121868/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 long int a,b,x,y;
int z;
while(scanf("%lld%lld",&a,&b) != EOF){
x = a;
y = b;
if(a < 0)x = a * (-1);
if(b < 0)y = b * (-1);
while(x % y != 0){
z = x % y;
x = y;
y = z;
}
printf("%lld %lld\n",y,a*b/y);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121910/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121910/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
long long int gcd(long long int a,long long int b){
if(b==0)return a;
else return gcd(b,a%b);
}
int main(){
long long int a,b;
long long int d;
long long int m;
while(scanf("%lld %lld",&a,&b)!=EOF){
d=gcd(a,b);
m=a/d*b;
printf("%lld %lld\n",d,m);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121954/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121954/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int saidai(int ,int);
int main(void)
{
int a,b;
long long m,n;
while(scanf("%d %d",&a,&b)!=EOF)
{
m=saidai(a,b);
n=(a/m)*b;
printf("%d %d\n",m,n);
}
return 0;
}
int saidai(int a,int b)
{
while(a!=0&&b!=0)
{
if(a>b)
{
a=a%b;
}
else
{
b=b%a;
}
}
if(a==0)
{
return(b... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121998/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121998/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
long long int gcd( long long int a , long long int b ){
long long int r;
while((r = a % b)!=0){
a = b;
b = r;
}
return b;
}
long long int lcm( long long int a , long long int b){
return a/gcd(a,b)*b;
}
int main(void){
long long int a , b;
while(scanf(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_122047/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_122047/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
unsigned long long int a,b,t,x,gcd;
while(scanf("%llu %llu",&a,&b)!=EOF)
{
unsigned long long int lcm,m=a,k=b;
if(a==0) gcd=a;
else if(b==0) gcd=b;
else {
while(b!=0)
{
t=b;
b=a%b;
a=t;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_122090/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_122090/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 a, b, x, y, t, gcd, lcm;
while(scanf("%lld%lld", &x, &y)!=EOF){
a=x;
b=y;
while (b != 0) {
t = b;
b = a % b;
a = t;
}
gcd = a;
lcm = (x*y)/gcd;
printf("%lld %lld\n",gcd,lcm);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_122133/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_122133/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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, n, gcd, lcm, i, stock, x, y;
while(scanf("%d %d",&a,&b) != EOF){
//Ååöñ
if(a < b){
stock = a;
a = b;
b = stock;
}
x = a;
y = b;
while(1){
x = x % y;
stock = x;
x = y;
y = stock;
if... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_122191/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_122191/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 a,b,x,y,c;
long a1,a2;
while (1) {
scanf("%ld %ld",&a,&b);
if (getchar() == EOF)break;
a1=a;
a2=b;
while(a1>0&&a2>0){
if(a1<a2){
c=a2;
a2=a1;
a1=c;
}
c=a2;
a2=a1-a2;
a1=c;
}
x=a1;
y=a/x;
y=y*b;
printf("%ld %ld\n",x,y);
}
ret... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_122241/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_122241/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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[])
{
unsigned long a, b;
while (EOF != scanf("%lu %lu\n", &a, &b)) {
unsigned long i, gcd, lcm;
for (gcd = 1, i = 2; (i <= a) && (i <= b); i++) {
while (1) {
if (a % i) break;
if (b % i) break;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_122292/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_122292/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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;
while ( scanf( "%d %d", &a, &b ) != EOF ) {
int i, min, gcd = 1, lcm = 1, start = 2;
while( 1 ) {
min = ( a > b ? b : a );
for ( i = start; i <= min / 2; i++ )
if ( a % i + b % i == 0 ) {
a /= i;
b /= i;
gcd = lcm *= i;
start = i;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_122342/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_122342/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int yakusuu(int a,int b);
int main(void){
int a,b;
while(scanf("%d %d",&a,&b)!=EOF){
printf("%d %d\n",yakusuu(a,b),(a/yakusuu(a,b)*b));
}
return 0;
}
int yakusuu(int a,int b){
int n=2,c=1;
while(n<=a && n<=b){
if(a%n==0 && b%n==0){
a/=n;
b/=n;
c*=n;
}
else{
n++;
}
}
r... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_122393/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_122393/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int gcd(int a,int b){
if(a==b){
return a;
}
else if(a>b){
return gcd(b,a);
}
else{
return gcd(a,b-a);
}
}
int main(){
int a,b;
while(scanf("%d %d",&a,&b)!=EOF){
int x=gcd(a,b);
int y=(a/x)*b;
printf("%d %d\n",x,y);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_122443/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_122443/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int a, b;
scanf("%d %d", &a, &b);
printf("%d %d %f\n", a / b, a % b, (double)a / b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_122494/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_122494/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
int a,b;
int d,r;
double f;
scanf("%d %d",&a,&b);
d=a/b;
r=a%b;
f=1.0*a/b;
printf("%d %d %.5f\n",d,r,f);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_122537/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_122537/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int a,b;
double f;
scanf("%d %d",&a,&b);
f=(double)a/(double)b;
printf("%d %d %f\n",a/b,a%b,f);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_122580/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_122580/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int a, b, d, r;
double f;
scanf("%d %d",&a,&b);
d = a / b;
r = a % b;
f = (double)a /(double)b;
printf("%d %d %f\n",d,r,f);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_122623/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_122623/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,d,r;
double x,y,f;
scanf("%d %d",&a,&b);
d=a/b;
r=a%b;
f=(double)a/(double)b;
printf("%d %d %f",d,r,f);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_122674/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_122674/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int a,b,x,y;
double af,bf,z;
scanf("%d",&a);
scanf("%d",&b);
af=a; bf=b;
x=a/b; y=a%b; z=af/bf;
printf("%d %d %0.6f",x,y,z);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_122724/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_122724/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
int a,b;
int d,r;
double f;
scanf("%d %d",&a,&b);
d=a/b;
r=a%b;
f=(double)a/b;
printf("%d %d %f",d,r,f);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_122768/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_122768/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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[])
{
double a, b;
scanf("%lf%lf",&a ,&b);
printf("%d %d %lf",(int)(a / b) ,(int)a % (int)b ,a / b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_122818/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_122818/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,g,r;
double d;
scanf("%d %d",&a,&b);
g = a / b;
r = a % b;
d = 1.0 * a / b;
printf("%d %d %f\n",g,r,d);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_122876/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_122876/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,i;
char s[32],t[32]="CODEFESTIVAL2016";
scanf("%s",&s);
for(i = 0;i < 16;i++){
if(s[i] != t[i]){
a++;
}
}
printf("%d\n",a);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_122933/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_122933/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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);
int i,count=0;
int box[4];
box[0]=a;
box[1]=b;
box[2]=c;
box[3]=d;
if(a==b||b==c||c==d||d==a){
printf("NO\n");
return 0;
}
for(i=0;i<4;i++){
if(box[i]==1){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_123026/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_123026/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 N 10000
#define H 100
#define W 100
void reverse(int n, int *aa) {
int i, j;
for (i = 0, j = n - 1; i < j; i++, j--) {
int tmp;
tmp = aa[i];
aa[i] = aa[j];
aa[j] = tmp;
}
}
int main() {
static int aa[10000], bb[10000], cc[100][100];
int h, w, n, i, j, k;
scanf("%d%d%d", &h... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_123112/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_123112/source.c"
target datalayout = "e-m:e-p270: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.aa = internal global ... |
#include <stdio.h>
#include <math.h>
#include <string.h>
#include <stdlib.h>
#define llong long long
#define fr(i,l,r) for(i=(l);i<(r);i++)
#define min(p,q) ((p)<(q)?(p):(q))
#define max(p,q) ((p)>(q)?(p):(q))
static llong int heap[100010];
int sz=-1;
void push(llong int x){
//自分のノード番号
int i;
sz++;
i=sz;
wh... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_123156/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_123156/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@sz = dso_local local_unnam... |
#include<stdio.h>
int a[100005],b[100005];
int main()
{
int t,N;
scanf("%d",&t);
while(t--)
{
scanf("%d",&N);
for(int i=0;i<N;i++)
scanf("%d",&a[i]);
for(int i=0;i<N;i++)
scanf("%d",&b[i]);
int p = 0,n = 0,flag = 0;
for(int i = 0;i<N;i++)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_1232/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_1232/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
#include<stdlib.h>
#include<string.h>
#include<math.h>
int main(){
int unused __attribute__((unused));
int i, start, Slen, Tlen, ans, dif;
char S[1001], T[1001];
unused = scanf("%s", S);
unused = scanf("%s", T);
Slen = strlen(S);
Tlen = strlen(T);
ans = Tlen; //ansを仮置きする.
//Sの何文字目か... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_123242/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_123242/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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[1010], T[1010];
scanf("%s", S);
scanf("%s", T);
int s = 0, t = 0;
while(T[t] != '\0'){
t++;
}
while(S[s] != '\0'){
s++;
}
int p = 0, ans = t;
while(s - p >= t){
int count = 0;
for(int i = p; i < p + t; i++){
if(S[i] != T[i-p]){
count++;
}
}
if(ans >... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_123286/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_123286/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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[2000], t[2000];
int i, ii, iii, l, ll, tmp, ans = 100000;
scanf("%s%s", s, t);
i = 0; ii = 0;
while (s[i])
i++;
while (t[ii])
ii++;
l = i; ll = ii;
ans = ll;
for (i = 0; i <= l - ll; i++)
{
tmp = 0;
fo... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_123329/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_123329/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
int main(){
char S[100];
scanf("%s",S);
for(int i=0;i<strlen(S);i++)printf("x");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_123372/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_123372/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[1100],b,m,n,i,j=0,k=0,l=0,p=0,x=0,y=0,z=0;
char s[1000],ss[1000],c;
scanf("%s",s);
n=strlen(s);
for (size_t i = 0; i < n; i++)
{
printf("x");
}
printf("\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_123415/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_123415/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
#include <stdlib.h>
int main(){
char S[100];
scanf("%s",S);
for (int i=0; S[i]!='\0'; i++) {
printf("x");
}
printf("\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_123459/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_123459/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[101];
scanf("%s",s);
for(int i=0;i<strlen(s);i++) printf("x");
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_123501/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_123501/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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[1000];
scanf("%s",s);
for(int i=0;s[i]!='\0';i++)s[i]='x';
printf("%s",s);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_123545/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_123545/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[1000];
int m,i;
scanf("%s",&s);
m=strlen(s);
for(i=0;i<m;i++){
printf("x");
}
printf("\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_123589/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_123589/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[100];
scanf("%s", S);
int len = strlen(S);
for(int i = 0; i < len; i++)
printf("x");
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_123631/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_123631/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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[]){
char words[100] = {0};
scanf("%s", words);
int i = 0;
while(words[i] != 0){
printf("x");
i++;
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_123675/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_123675/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 str[100];
scanf("%s",str);
for(int i = 0; str[i] != '\0'; i++){
str[i] = 'x';
}
printf("%s", str);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_123725/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_123725/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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<stdlib.h>
#include<limits.h>
#define rep(i,begin,end) for(int i=begin; i<end; i++)
#define revrep(i,begin,end) for(int i=begin; i>end; i--)
#define lld long long int
int main(){
char s[101];
scanf("%s", s);
int len = strlen(s);
rep(i, 0, l... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_123776/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_123776/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int max(int a,int b){return a > b ? a : b;}
int main(){
int a, b;
int ans = 0;
scanf("%d%d",&a,&b);
if(max(a,b) == a){
ans += a;
a--;
}
else{
ans += b;
b--;
}
if(max(a,b) == a){
ans += a;
a--;
}
else{
ans +... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_123819/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_123819/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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",a+a-1);
else if(a==b) printf("%d",a*2);
else printf("%d",b+b-1);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_123862/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_123862/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#define max(a,b) ((a)>(b))?(a):(b)
int main(void)
{
int a,b;
scanf("%d%d",&a,&b);
int sum=0;
sum+=max(a,b);
if(a>b){
a--;
}else{
b--;
}
sum+=max(a,b);
printf("%d",sum);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_123905/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_123905/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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", A + A - 1);
}
else if (A == B) {
printf("%d\n", A + B);
}
else {
printf("%d\n", B + B - 1);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_123956/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_123956/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
int main()
{
int a,b,c,temp;
scanf("%d %d %d",&a,&b,&c);
int x;
x=a+b+c;
temp=x;
x=a*(b+c);
if(temp<x)
temp=x;
x=(a+b)*c;
if(x>temp)
temp=x;
x=a*b*c;
if(x>temp)
temp=x;
printf("%d\n",temp);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_124/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_124/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr cons... |
#include<stdio.h>
int main(void){
int a,b,sum=0,c;
scanf("%d %d\n",&a,&b);
for(c=0;c<2;c++){
if(a>=b){
sum=sum+a;
a--;
}
else{
sum=sum+b;
b--;
}
}
printf("%d",sum);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_124041/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_124041/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 + 1 < B){
printf("%d", 2*B-1);
} else if(B + 1 < A){
printf("%d", 2*A-1);
} else {
printf("%d", A+B);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_124085/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_124085/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,r;
r=0;
scanf("%d%d",&a,&b);
for(i=0;i<2;i++){
if(a>b){
r=r+a;
a--;
}
else{
r=r+b;
b--;
}
}
printf("%d",r);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_124128/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_124128/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int a,b;
scanf("%d%d", &a, &b);
int ans;
if(a == b){
ans = 2 * a;
}else if(a > b){
ans = 2 * a - 1;
}else{
ans = 2 * b - 1;
}
printf("%d\n", ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_124171/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_124171/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,n,s;
scanf("%d",&a);
scanf("%d",&b);
if(a>=b){
n=a;
a=a-1;
}
else{
n=b;
b=b-1;
}
if(a>=b){
n=n+a;
}
else{
n=n+b;
}
printf("%d\n",n);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_124221/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_124221/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int a,b;
int max = 0;
scanf("%d",&a);
scanf("%d",&b);
max = a + a - 1;
if((a+b) > max) max = a + b;
if((b+b-1) > max) max = b + b - 1;
printf("%d\n",max);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_124265/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_124265/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main(void){
int a, b, sum;
char tmp[6], *token, *sep = " ";
fgets(tmp, 6, stdin);
token = strtok(tmp, sep);
a = atoi(token);
token = strtok(NULL, sep);
b = atoi(token);
sum = 0;
if (a >= b) {
sum += a;
a--;
}else{
sum +=... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_124308/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_124308/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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)
printf("%d",a+a);
else if(a>b) printf("%d",2*a-1);
else if(b>a) printf("%d",2*b-1);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_124351/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_124351/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#define max(x,y) ((x)>(y)?(x):(y))
#define min(x,y) ((x)<(y)?(x):(y))
#define FOR(i,m,n) for(i=m;i<n;i++)
int main(void)
{
int a,b,i,c=0;
scanf("%d %d",&a,&b);
for(i=0;i<2;i++){
if(a<b){
c=c+b;
b--;
}else{
c=c+a;
a--;
}
}
printf("%d",c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_124395/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_124395/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
struct Index {
char word[31];
int page;
};
int main(void) {
int n = 0,i,j;
struct Index index_data[100], *p,temp;
p = index_data;
while (scanf("%s %d", index_data[n].word, &index_data[n].page) != EOF) {
n++;
}
for (i = 0; i < n; i++) {
for (j = i+1; j < n; j++){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_124438/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_124438/source.c"
target datalayout = "e-m:e-p270: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.Index = type { [31 ... |
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
int cup[100],stat[100],sum[100],wat[200];
int N,SET;
/*
0:水がない
1:水がある
2:注ぎ終わった
*/
int search(int cc,int left,int look){
int i;
//printf("[%d %d %d]\n",cc,left,look);
if(look<N)stat[look]=1;
if(left==0){
if(cc<N)stat[cc]=2;
for(i=N-1;i>=0;i--){if(stat... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_124489/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_124489/source.c"
target datalayout = "e-m:e-p270: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>
#include <stdlib.h>
#include <string.h>
#define Rep(i,l,r)for(lld i=(lld)l;i<(lld)r;i++)
#define rep(i,n)Rep(i,0,n)
#define Ma(x,y)(x>y?x:y)
typedef long long lld;
#define N 5792
int main() {
char S[N],T[N],ans[N]="\0";
lld s,t,dp[N][N]={0},len;
scanf("%s%s",S,T);
s=strlen(S);t=strlen(T);
Rep(i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_124546/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_124546/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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.