Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include<stdio.h>
#include<stdlib.h>
int main(){
int N;
if(scanf("%d", &N) == EOF) exit(1);
int A[N];
for(int i = 0; i < N; i++){
if(scanf("%d", &A[i]) == EOF) exit(1);
}
int s = 0;
for(int i = 0; i < N; i++){
s += A[i];
}
int sum = s / 2;
for(int i = 0; i < (N-1)/2; i++){
sum -= ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_120033/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_120033/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int n, k;
scanf("%d%d", &n, &k);
char s[n + 1];
scanf("%s", s);
int l = 0;
int r = 0;
while (r < n && s[r] == '1') r++;
while (r < n && k > 0) {
while (r < n && s[r] == '0') r++;
while (r < n && s[r] == '1') r++;
k--;
}
int ans = r - l;
while (r < n... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_120077/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_120077/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,i=0;
scanf("%d %d",&a,&b);
while(a<=b){
a=a*3;
b=b*2;
i++;
}
printf("%d\n",i);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_12012/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_12012/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 <string.h>
#include <stdio.h>
int main()
{
char s[4];
scanf("%s", &s);
if (strcmp(s, "SUN") == 0)
printf("7");
else if (strcmp(s, "MON") == 0)
printf("6");
else if (strcmp(s, "TUE") == 0)
printf("5");
else if (strcmp(s, "WED") == 0)
printf("4");
else if (strcmp(s, "THU") == 0) ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_120163/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_120163/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 now[5];
char day[7][5] = {"SAT", "FRI", "THU", "WED", "TUE", "MON", "SUN"};
scanf("%s", now);
for(int i = 0; i < 7; i++){
if(strcmp(day[i], now) == 0){
printf("%d\n", i + 1);
return 0;
}
}
return ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_120206/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_120206/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.day = private... |
#include<stdio.h>
int main()
{
int a,b,c=0;
scanf("%d %d",&a,&b);
while(a<=b)
{
a=3*a;
b=2*b;
c++;
}
printf("%d",c);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_12025/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_12025/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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()
{
char d1[4];
char d2[7][4] = {{'S','U','N'},{'M','O','N'},{'T','U','E'},{'W','E','D'},{'T','H','U'},{'F','R','I'},{'S','A','T'}};
int i,j,k;
scanf("%s",d1);
for(i = 0;i < 7;i++){
for(j = 0;j < 3;j++){
if((d2[i][j] == d1[j])&&(j == 2)){
k = i;
printf("%d\n",7 - k)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_120307/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_120307/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[4];
char S_NUM[7][4] = {"SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"};
int i;
scanf("%s", S);
for(i=0; i<7; i++)
{
if(!strcmp(S_NUM[i], S))
break;
}
printf("%d\n", 7-i);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_120358/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_120358/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.S_NUM = priva... |
#include <stdio.h>
int main() {
char s[3];
int ans;
scanf ("%s", s);
if (s[0] == 'M') ans = 6;
else if (s[0] == 'W') ans = 4;
else if (s[0] == 'F') ans = 2;
else if (s[2] == 'N') ans = 7;
else if (s[2] == 'E') ans = 5;
else if (s[2] == 'U') ans = 3;
else if (s[2] == 'T') ans = 1;
printf ("%d\n",... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_120400/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_120400/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a[100005], b[100005];
int asca(const void* x, const void* y)
{
return a[*(int*)x] - a[*(int*)y];
}
int ascb(const void* x, const void* y)
{
return b[*(int*)x] - b[*(int*)y];
}
int main()
{
long long int n, k;
scanf("%lld %lld", &n, &k);
long long int i;
for (i = 0; i < n -... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_120451/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_120451/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@a = dso_local global [1000... |
#include <stdio.h>
int main(void){
while(1){
//入力
int n;
scanf("%d", &n);
if(!n) break;
int a[1001];
for(int i=0; i<n; i++){
scanf("%d", &a[i]);
}
//処理
int ans = 5000000;//とりあえず大きい数字で初期化
for(int i=0; i<n; i++){
for(int j=i+1; j<n; j++){
int tmp;
if(a[i] < a[j]){
tmp = a[j] - ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_120501/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_120501/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int sum(int n){
if(n ==0)return 0;
return n%10 +sum(n/10);
}
int main(){
int a;
scanf("%d", &a);
if(a%sum(a)==0){
printf("Yes\n");
}else{
printf("No\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_120545/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_120545/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <stdbool.h>
#include <string.h>
/*以下便利なマクロを定義する。*/
#define rep(i, min, max) for(i=min; i<=max; i=i+1)
#define if_forall(i, min, max, prop)\
\
rep(i, min, max)\
{\
if(!(prop))\
{\
break;\
}\
}\
\
if(i==max+1)\
#define if_exists(i, m... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_120589/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_120589/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,i=0,dig=1,sum=0;
scanf("%d",&n);
int temp = n;
while(dig<n){
dig *=10;
i++;
}
dig/=10;
//printf("%d %d\n",dig,i);
for(i=i;i>0;i--){
sum+=temp/dig;
temp = n%dig;
dig/=10;
}
//printf("%d\n",sum);
i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_120631/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_120631/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,S=0,n,N,ans;
scanf("%d",&N);
n = N;
for(i=1;i<11;i++){
S += n % 10;
n = n /10;
}
if(N % S == 0){
printf("Yes");
return 0;
}
printf("No");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_120675/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_120675/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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[12];
scanf("%s",s);
int j,i=0,sum = 0;
double N = 0,ten = 1.0/10.0;
while(1){
if(s[i] == '\0'){
break;
}
sum += ((int)s[i])-48;
i++;
}
for(j = i-1;j>=0;j--){
N += ((int)s[j]-48.0)*ten*10.0;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_120718/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_120718/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,t;
scanf("%d",&n);
t=0,i=n;
while(n>0){
m=n%10;
t+=m;
n/=10;
}
if(i%t==0) printf("Yes\n");
else printf("No\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_120761/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_120761/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,r;
int s = 0;
scanf("%d",&n);
int z = n;
while (n > 0){
r = n % 10;
n = n / 10;
s = s + r;
}
if(z % s == 0)
printf("Yes");
else
printf("No");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_120811/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_120811/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(int argc, char *argv[])
{
int i, n, len;
int sum = 0;
char buf[11];
scanf("%s", buf);
n = atoi(buf);
len = strlen(buf);
for (i = 0; i < len; i++) {
sum += buf[i] - '0';
}
if (n % sum == 0) {
printf("Yes\n");
} else {
printf("No\n")... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_120862/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_120862/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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[4],max=0,s,i;
for(i=0;i<4;i++)
scanf("%d",&a[i]);
for(i=0;i<4;i++)
{
if(a[i]>max)
max=a[i];
}
for(i=0;i<4;i++)
{
s=max-a[i];
if(s!=0)
printf("%d ",s);
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_12092/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_12092/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 <inttypes.h>
#include <math.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void)
{
intmax_t N, M, K;
intmax_t A[200000], B[200000];
intmax_t time = 0, num_a = 0, num_b = 0, ans = 0;
scanf("%jd%jd%jd", &N, &M, &K);
for (size_... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_120963/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_120963/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#pragma warning(disable : 4996)
int main()
{
int i,j;
long N;
char s[300010];
int a[300000];
long ans = 300000;
int sum;
scanf("%ld", &N);
scanf("%s", s);
a[0] = (s[0] == 'W') ? 1 : 0;
//西を向いている人の数
for (i = 1; i < N; i++) {
a... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121005/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121005/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main(void) {
int n, c = 0, ans = 300002, si[300002];
char s[300002];
if(scanf("%d", &n) == 1);
if(scanf("%s", s) == 1);
for(int i = 0; i < n; i++) {
if(s[i] == 'W') {
c++;
}
si[i] = c;
}
for(int i = 0; i < n; i++) {
if(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121049/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121049/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
long int N;
scanf("%d",&N);
char S[N+1];
scanf("%s",S);
int ans=N;
int i,j;
int count;
for(i=0;i<N;i++){
if(S[i] =='E') count++;
}
for(i=0;i<N;i++){
if(S[i] =='E') count--;
if(S[i-1] =='W') count++;
if(count <= ans) ans=count;
}
printf("%d",ans);
return 0;} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121092/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121092/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 compare(const void *x, const void *y)
{
if (*(long*)x < *(long*)y) return 1;
if (*(long*)x > *(long*)y) return -1;
return 0;
}
void calc(long A, long *ans, int *tmp, int *i)
{
if (*tmp == 0) *ans = A;
else *ans *= A;
++*tmp;
++*i;
}
int main(void)
{
int N, tmp = 0, ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121135/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121135/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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];
int i;
long long k, ans = 0;
scanf("%s %lld", s, &k);
int len = strlen(s);
int cnt = 1, a = 1, b = 1;
for (i = 1; i < len; i++) {
if (s[i - 1] != s[i])break;
a++;
}
if (i == len)
{
printf... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121179/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121179/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 long long ll;
int max(int a, int b){
if(a > b) return a;
else return b;
}
int min(int a, int b){
if(a < b) return a;
else return b;
}
ll n;
void func(ll cur, int use, ll *counter){
if(cur > n) return;
if(use == 0b111) ++(*counter);
fu... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121229/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121229/source.c"
target datalayout = "e-m:e-p270: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 i64 0... |
#include <stdio.h>
long long is753(long long n);
long long dfs(long long num);
long long n;
long long dn[] = {7, 5, 3};
long long main()
{
scanf("%lld", &n);
printf("%lld\n", dfs(0));
return 0;
}
long long is753(long long n)
{
long long cnt[10] = {};
while (n) {
cnt[n % 10]++;
n = n / 10;
}
return (... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121272/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121272/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@dn = dso_local local_unnam... |
#include <stdio.h>
int main(void){
int c,cont1=0,cont2=0,a=0,b=0;
for(int i=0;i<4;i++){
c = getchar();
if(a==0)a=c;
else if(c!=a && b==0)b=c;
else if(c==a)cont1++;
else if(c==b)cont2++;
}
if(cont1==1 && cont2==1)printf("Yes\n");
else printf("No\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121366/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121366/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = external local_unn... |
#include<stdio.h>
int main(void)
{
int x=0,y=0,i,j;
char s[4];
scanf("%s", s);
for(i=1; i<4; i++)
{
if(s[0]==s[i])
x++;
else
{
for(j=i+1; j<4; j++)
{
if(s[i]==s[j])
y++;
}
}
}
if(x==1&&y==1)
printf("Yes\n");
else
printf("No\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121416/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121416/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[4];
int count=0,i,j;
scanf("%s",str);
for(i=0;i<3;i++)
for(j=i+1;j<4;j++)
{
if(str[j]==str[i])
count++;
}
if(count==2)
printf("Yes");
else
printf("No");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121467/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121467/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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[4];
int i;
char tmp[4];
int j=0;
scanf("%s",s);
static int cnt[4];
int k;
int l=0;
for(i=0;i<4;i++){
tmp[j]=s[i];
for(k=i+1;k<4;k++){
if(tmp[j]==s[k])cnt[l]++;
}
if(cnt[l]!=0)l++;
}
if(cnt[0]*cnt[1] == 1)printf("Yes\n");
else printf("No\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121517/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121517/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define ll long long
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k))
#define INF ((1LL<<62)-(1LL<<31))
#define max(p,q)((p)>(q)?(p):(q))
#define min(p,q)((p)<(q)?(p):(q))
#define bit(n,m)(((n)>>(m))&1)
int upll(const vo... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121560/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121560/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 c1,c2,c3,c4;
scanf("%c %c %c %c",&c1,&c2,&c3,&c4);
if(c1==c2){
if(c1!=c3&&c3==c4)
printf("Yes\n");
else
printf("No\n");
}
else if(c1==c3){
if(c1!=c2&&c2==c4)
printf("Yes\n");
else
printf("No\n");
}
else if(c1==c4){
if(c... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121610/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121610/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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[4];
char judge1;
char judge2;
int ans1 = 0;
int ans2 = 0;
int i;
scanf("%s\n", s );
judge1 = s[0];
if( s[0] != s[1] )
{
judge2 = s[1];
}
else if( s[1] != s[2] )
{
judge2 = s[2];
}
else if( s[2] ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121654/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121654/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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[5];
int i, j, cnt;
scanf("%s", s);
for(i=0; i<4; i++){
cnt=0;
for(j=0; j<4; j++){
if(s[i] == s[j])
cnt++;
}
if(cnt != 2){
printf("No\n");
return 0;
}
}
printf("Yes\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121704/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121704/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 solve(char* key,int n1,char* s,int n2){
int i,j,flag;
int k;
k=0;
while(n1+k*(n1-1)<=n2){
for(i=0;i<n2-(n1+k*(n1-1))+1;i++){
flag=1;
for(j=0;j<n1;j++){
if(key[j]!=s[i+(k+1)*j]){
flag=0;
break;
}
}
if(flag) return 1;
}
k++;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121748/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121748/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 count=0;
double a,b;
/* double tempa=0,tempb=0;store a and b*/
while (scanf("%lf %lf",&a,&b)!=EOF){
double GCD,LCM;
double tempa=0,tempb=0; /*store a and b*/
tempa=a;
tempb=b;
while (count==0){
a=fmod(a,b);
/* a=a%b;*/
if (a==0){
GCD=b;
count=1... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121799/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121799/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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 m, int n )
{
// 引数に0がある場合は0を返す
if ( ( 0 == m ) || ( 0 == n ) )
return 0;
// ユークリッドの方法
while( m != n )
{
if ( m > n ) m = m - n;
else n = n - m;
}
return m;
}//gcd
int lcm( int m, int n ,int yaku)
{
// 引数に0がある場合は0を返す
if ( ( 0 == m ) || ( 0 == n ) )
return 0;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121841/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121841/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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 m, int n )
{
if ( ( 0 == m ) || ( 0 == n ) )
return 0;
while( m != n )
{
if ( m > n ) m = m - n;
else n = n - m;
}
return m;
}
int lcm( int m, int n )
{
if ( ( 0 == m ) || ( 0 == n ) )
return 0;
return ((m / gcd(m, n)) * n);
}
int main(void){
int m,n;
in... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121885/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121885/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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()
{
long long int num1,num2,num;
while (scanf("%lld %lld",&num1,&num2) !=EOF){
num = num1*num2;
while(num1 != num2)
{
if(num1 > num2){
num1 = num1-num2;
}
else{
num2 = num2-num1;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121928/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121928/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int euclid(int, int);
int main(void) {
int a, b, gcd, lcm;
while(~scanf("%d %d", &a, &b)) {
gcd = a > b ? euclid(a, b) : euclid(b, a);
lcm = a / gcd * b;
printf("%d %d\n", gcd, lcm);
}
return 0;
}
int euclid(int a, int b) {
return a % b ? euclid(b, a % b... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121971/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121971/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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 (b == 0) return a;
return gcd(b, a % b);
}
int main(void)
{
int a, b;
while (~scanf("%d%d", &a, &b)) {
int g = gcd(a, b);
printf("%d %d\n", g, a / g * b);
}
return (0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_122013/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_122013/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,tmp,gdc,lcm,alpha;
long k,l;
while(scanf("%ld %ld",&a,&b)!=EOF){
if(a>b){ //?????¶??????a<=b?????¶????????????
tmp=a;
a=b;
b=tmp;
}
for(k=1;k<=b;k++){
if(b%k==0){
l=b/k;
if(a%l==0){
gdc=l;
break;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_122057/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_122057/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 L[1000100];
int n;
while(scanf("%d", &n) != EOF){
int sum = n;
for(int i = 0; i < n; i++){
scanf("%d", &L[i]);
}
int l = L[n-1];
for(int i = n-2; i >= 0; i--){
if(l>0){
sum--;
l--;
}
if(L[i] > l){
l = L[i];
}
}
printf("%d", sum);
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_12210/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_12210/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 gcd(int a, int b) {
int r;
if(a >= b){
do{
r=a%b;
a=b;
b=r;
}while(r != 0);
return a;
}
else if(a < b){
do{
r=b%a;
b=a;
a=r;
}while(r != 0);
return b;
}
}
int main(void){
int a,b;
while(scanf("%d %... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_122143/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_122143/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
typedef unsigned int u_int;
u_int euclid(u_int m,u_int n);
int main(void){
u_int m,n;
while(fscanf(stdin,"%u %u",&m,&n)!=EOF) printf("%u %u\n",euclid(m,n),m/euclid(m,n)*n);
return 0;
}
u_int euclid(u_int m,u_int n){
if(n==0) return m;
return euclid(n,m%n);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_122194/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_122194/source.c"
target datalayout = "e-m:e-p270: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>
/* ltzzさん、FE合格おめでとう。僕もなんか受けてみます。 */
int main(){
int a,b,c,d,e,f;
while(scanf("%d %d",&a,&b)!=EOF){
/* 大きい方をaに入れたい */
if(a<b){c=a;a=b;b=c;}
/* ユークリッドさんの互助会 */
c=a;d=b;
while((e=c%d) !=0){
c=d;d=e;
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_122237/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_122237/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 swap(int *i, int *j)
{
*i += *j;
*j = *i - *j;
*i -= *j;
}
int search(int a, int b)
{
a %= b;
if (a){
search(b, a);
}
else {
return (b);
}
}
int main(void)
{
int a, b;
long int lcd, gcd; /*gcd = 最大公約数、lcd = 最小公倍数*/
while (scanf("%d %d", &a, &b) != EOF){
if (a < b){
swap(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_122280/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_122280/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 swap(unsigned long *a, unsigned long *b) {
unsigned long tmp;
tmp = *a;
*a = *b;
*b = tmp;
}
unsigned long gcd(unsigned long a, unsigned long b) {
unsigned long tmp;
while (b) {
tmp = b;
b = a % b;
a = tmp;
}
return a;
}
unsigned long lcm(unsigned long a, unsigne... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_122330/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_122330/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 = 0, b = 0, c = 0, tmp = 0, r = 0;
while ( scanf("%d %d",&a,&b) != EOF ) {
r = a*b;
if ( b > a ) {
tmp = b;
b = a;
a = tmp;
}
while ( b > 0 ) {
c = b;
b = a % b;
a = c;
}
printf("%d %d\n",a... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_122374/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_122374/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int m,n,g,l,work,a,b;
while(scanf("%d%d",&m,&n)!=EOF){
a=m;
b=n;
if(m<n){
work=m;
m=n;
n=work;
}
while(n!=0){
work=m%n;
m=n;
n=work;
}
g=m;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_122424/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_122424/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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, int);
int main(void) {
int a, b, n;
while(scanf("%d %d", &a, &b) != EOF) {
n = gcd(a, b);
printf("%d %d\n", n, (a/n)*b);
}
return 0;
}
int gcd(int x, int y) {
int tmp, r;
if(x < y) {
tmp = x;
x = y;
y = tmp;
}
while(y != 0) {
r = x%y;
x ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_122468/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_122468/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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/(double)b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_122510/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_122510/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 d, r;
double f;
scanf("%d %d", &a, &b);
d = a / b;
r = a % b;
f = (double)a / (double)b;
printf("%d ", d);
printf("%d ", r);
printf("%6.5f\n", f);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_122554/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_122554/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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;
double f, ans;
scanf("%d %d", &a, &b);
ans = (double)a / b;
printf("%d %d %lf\n", a / b, a % b, ans);
return (0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_122604/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_122604/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main (int argc, const char * argv[]) {
int a,b;
int d,r;
float f,a1,b1;
scanf("%d %d",&a,&b);
a1=a;
b1=b;
d=a/b;
r=a%b;
f=a1/b1;
printf("%d %d %.5f\n",d,r,f);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_122648/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_122648/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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);
printf("%d %d %f", (int)a/b, a%b, a/(double)b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_122691/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_122691/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,d,r;
double f;
scanf("%d%d",&a,&b);
d = (int)(a / b);
r = (int)(a % b);
f = (double)a / b;
printf("%d %d %lf",d,r,f);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_122734/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_122734/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main() {
int x, y;
scanf("%d %d", &x, &y);
printf("%d %d %f\n", x/y, x%y, (double)x/(double)y);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_122778/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_122778/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 fa, fb;
scanf("%d %d", &a, &b);
fa = a;
fb = b;
printf("%d %d %f\n", a/b, a%b, fa/fb);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_122828/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_122828/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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);
printf("%d %d %.5f\n",a/b,a%b,(double)a/b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_122886/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_122886/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,count=0;
char s[17];
scanf("%s",s);
if(s[0]!='C'){
count++;
}
if(s[1]!='O'){
count++;
}
if(s[2]!='D'){
count++;
}
if(s[3]!='E'){
count++;
}
if(s[4]!='F'){
count++;
}
if(s[5]!='E'){
count++;
}
if(s[6]!='S'){
count++;
}
if(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_122929/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_122929/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 INIT_CAP 10
#define INF 1000000000
#define min(a, b) (((a) < (b)) ? (a) : (b))
typedef struct {
int to, w;
} Edge;
typedef struct {
Edge *elem;
int cap, size;
} VecEdge;
typedef struct {
int num, d;
} PNumDis;
VecEdge adj[65536];
PNumDis heap[1048576];
int hsize;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_122972/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_122972/source.c"
target datalayout = "e-m:e-p270: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.VecEdge = type { pt... |
#include <stdio.h>
int main(void){
int a[4], i, j1=0, j9=0, j7=0, j4=0;
for(i=0;i<4;i++){
scanf("%d", &a[i]);
}
for(i=0;i<4;i++){
if(j1==0 && a[i] == 1)
j1=1;
if(j9==0 && a[i] == 9)
j9=1;
if(j7==0 && a[i] == 7)
j7 = 1;
if(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_123065/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_123065/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
int acs(const void *a, const void *b) {
return *(int*)a - *(int*)b;
} /* 1,2,3,4.. */
int des(const void *a, const void *b) {
return *(int*)b - *(int*)a;
} /* 8,7,6,5.. */
int cmp_char(const void *a, const void *b) {
return *(char*)a -... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_123108/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_123108/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
int acs(const void *a, const void *b) {
return *(int*)a - *(int*)b;
} /* 1,2,3,4.. */
int des(const void *a, const void *b) {
return *(int*)b - *(int*)a;
} /* 8,7,6,5.. */
int cmp_char(const void *a, const void *b) {
return *(char*)a -... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_123151/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_123151/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[1010] ;
char T[1009] ;
int lengthS;
int lengthT;
int r ;
int p ;
scanf("%s",S);
scanf("%s",T);
lengthS = strlen(S);
lengthT =strlen(T);
int answer = lengt... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_123201/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_123201/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 s1[1001],s2[1001];
int len1,len2,count=0,i,j,max;
scanf("%s %s",s1,s2);
len1=strlen(s1);
len2=strlen(s2);
max=0;
for(i=0;i<(len1+1)-len2;i++){
count=0;
for(j=0;j<len2;j++){
if(s1[i+j]==s2[j]){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_123245/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_123245/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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[1001] = { '\0' };
char t[1001] = { '\0' };
int l_s = 0;
int l_t = 0;
int max_match = 0;
scanf("%s", s);
scanf("%s", t);
while(s[l_s] != '\0'){
l_s++;
}
while(t[l_t] != '\0'){
l_t++;
}
for(int i=0; i<l_s - l_t + 1; i++){
int match = 0;
for(int j=0; j<l_t; j++... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_123302/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_123302/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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[100];
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_123360/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_123360/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[103]; scanf("%s", s);
int len = strlen(s);
for(int i=0; i<len; i++) printf("x");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_123403/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_123403/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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[101];
scanf("%s", s);
for (int i=0; s[i]!='\0'; i++) s[i]='x';
printf("%s\n", s);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_123447/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_123447/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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[100+1];
scanf("%s",S);
for(int i=0;S[i]!='\0';i++){
S[i]='x';
}
printf("%s",S);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_123490/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_123490/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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[100];
scanf("%s",&S);
int i;
for(i=0;i<S[i];i++){
S[i]='x';
printf("%c",S[i]);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_123533/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_123533/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
char s[101];
scanf("%s",s);
for(i = 0; i < strlen(s); i++)
s[i] = 'x';
printf("%s",s);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_123577/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_123577/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{ int i,j,k,p,m,t;
scanf("%d %d",&i,&j);
for(k=1;k<=i;k++)
{
for(p=1;p<=j;p++)
{
if(k%2!=0)
{
printf("#");
}
else
{m=k/2;
if(m%2==0){
if(p==1)
printf("#");
else
printf(".");
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_12362/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_12362/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <string.h>
int main(void){
int i, len;
char S[100];
scanf("%s",S);
len = strlen(S);
for(i = 0; i < len; i++)
{
printf("x");
}
return(0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_123663/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_123663/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,len;
char a[101];
scanf("%s",a);
len=strlen(a);
for(i=0;i<len;i++){
printf("x");
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_123728/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_123728/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#include <stdbool.h>
#define LL long long
#define DB double
#define INF 1145141919810364364
#define PI 3.14159265358979
#define MIN(x,y) ((x)<(y)?(x):(y))
#define MAX(x,y) ((x)<(y)?(y):(x))
#define FOR(i,a,n) for(i=a;i<n;i++)
#define MOD 10000... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_123779/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_123779/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str.2 = private unnamed_a... |
#include<stdio.h>
int main() {
int a, b;
int getcoin = 0;
int cnt = 2;
scanf("%d %d", &a, &b);
for(int i = 0; i < cnt; i++) {
if(a >= b) {
getcoin += a;
a--;
}
else {
getcoin += b;
b--;
}
}
printf("%d\n", getcoin);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_123821/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_123821/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,b;
int p=0;
scanf("%d %d",&a,&b);
if(a>b){
p = p + a + a - 1;
}
else if(a<b){
p = p + b + b - 1;
}
else
p = p + a + b;
printf("%d",p);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_123872/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_123872/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int x = 0;
int y = 0;
int a = 0;
int b = 0;
scanf("%d %d", &a, &b);
if (a == b) {
x = a + b;
}
else {
if (a > b) {
x = a;
a--;
y = a;
}
else {
x = b;
b--;
y = b;
}
}
x = x + y;
printf("%d", x);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_123922/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_123922/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 sum = 0;
for (int i = 0; i < 2; i++) {
if (a > b) sum += a--;
else sum += b--;
}
printf("%d\n", sum);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_123966/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_123966/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 count, i;
for(i=0; i<2; i++){
if(a>b){
count += a;
a--;
}
else{
count +=b;
b--;
}
}
printf("%d",count);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_124008/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_124008/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 coins=0;
int i;
for(i=0;i<2;i++){
if(a>b){
coins+=a;
a--;
}else{
coins+=b;
b--;
}
}
printf("%d\n",coins);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_124051/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_124051/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int A;
int B;
int i;
int sum = 0;
scanf("%d", &A);
scanf("%d", &B);
for (i = 0; i < 2; i++){
if(A >= B){
sum += A;
A--;
}
else{
sum += B;
B--;
}
}
printf("%d\n", sum);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_124095/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_124095/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,i;
n=0;
scanf("%d%d",&a,&b);
for(i=0; i<=1; i++)
{
if(a>b)
{
n=n+a;
a=a-1;
}
else
{
n=n+b;
b=b-1;
}
}
printf("%d\n",n);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_124145/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_124145/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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) printf("%d\n",a+a-1);
else if(a==b) printf("%d\n",a+a);
else printf("%d\n",b+b-1);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_124189/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_124189/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,i,sum=0;
scanf("%d",&a);
scanf("%d",&b);
for(i=0;i<2;i++)
{
if(a<b)
{
sum += b;
b -= 1;
}
else
{
sum += a;
a -= 1;
}
}
printf("%d",sum);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_124231/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_124231/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 const *argv[]) {
int A,B,count=0;
scanf("%d %d\n",&A,&B );
if (A > B) {
count += A;
A--;
} else {
count += B;
B--;
}
if (A > B) {
count += A;
A--;
} else {
count += B;
B--;
}
printf("%d\n",count );
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_124275/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_124275/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,b=0,t=0;
scanf("%d %d",&a,&b);
if(a>b)
{
t=a-1;
if(t>b)
{
printf("%d",a+a-1);
}
else
{
printf("%d",a+b);
}
}
else
{
t=b-1;
if(t>a)
{
printf("%d",b+b-1);
}
else
{
printf("%d",a+b);
}
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_124318/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_124318/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main (void){
int A;int B;
scanf("%d %d",&A,&B);
int ans;
if(A == B){
ans = A + B;
}else if(A < B){
ans = B + B - 1;
}else {
ans = A + A - 1;
}
printf("%d\n",ans);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_124361/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_124361/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 num;
if(a > b) num = a + a - 1;
else if(a == b) num = 2 * a;
else num = b + b - 1;
printf("%d\n",num);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_124404/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_124404/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAX_DATA (100)
#define LIMIT_LEN (40)
#define LIMIT_PAGE (1001)
struct word_t {
char word[LIMIT_LEN];
char pages[LIMIT_PAGE];
};
typedef struct word_t Word;
int compare_word(const void *a, const void *b) {
return strcmp(((Word*)a)->word, ((Word*)b)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_124462/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_124462/source.c"
target datalayout = "e-m:e-p270: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.word_t = type { [40... |
#include<stdio.h>
#include<math.h>
int A,B,i,j,k,l,c,S[200],L=200;
char R[200];
int main()
{
for(;~scanf("%d%d",&A,&B);)
{
A*=10;
for(c=0;A!=0&&c<L;c++)
{
S[c]=A/B;
if(A%B==0)break;
A=A%B*10;
}
if(c!=L)
{
for(i=0;i<=c;i++)printf("%d",S[i]);
puts("");
continue;
}
for(j=1;j<L;j++)
{... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_124512/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_124512/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@L = dso_local local_unname... |
#include <stdio.h>
#include <string.h>
int max(int a,int b)
{
if(a>b) return a;
else return b;
}
int dp[4000][4000];
int main()
{
char a[4000],b[4000];
scanf("%s%s",a,b);
int n1=strlen(a),n2=strlen(b);
for(int i=n1;i>=0;i--)
{
for(int j=n2;j>=0;j--)
{
if(j==n2 || i==n1){ dp[i][j]=0; continue;}
if(a[i]=... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_124570/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_124570/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#include<stdbool.h>
#include<assert.h>
typedef long long ll;
typedef long double ld;
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k))
#define rrep(i,l,r)for(ll i=(l);i>=(r);i--)
#define INF (1LL<<60)
#defin... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_124620/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_124620/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdlib.h>
#include <stdio.h>
#include <stdbool.h>
void swap(int *xs, int front, int back)
{
int temp = xs[front];
xs[front] = xs[back];
xs[back] = temp;
}
bool isSwap(int nowBibs, int nextBibs, int baton)
{
return (nowBibs % baton) > (nextBibs % baton);
}
void printIntArray(int *arr, int nu... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_124664/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_124664/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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[1005];
int b[1005];
int c[1005];
int dist[105][105];
int min(int x,int y){
if(x<y){return x;}
else{return y;}
}
int main(){
int N,M;
scanf("%d %d",&N,&M);
int i,j,k;
for(i=0;i<N;i++){
for(j=0;j<N;j++){
if(i==j){dist[i][j]=0;}
else{dist[i][j]=1<<25;}
}
}
for(i=0;i<M;i++... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_124707/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_124707/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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.