Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <math.h>
struct link {
struct link *next;
int val;
};
struct link *newval(struct link *prev, int val)
{
struct link *p = prev, *pp = NULL;
for (; p; pp = p, p = p->next) {
if (p->val == val)
return pre... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203010/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203010/source.c"
target datalayout = "e-m:e-p270: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.link = type { ptr, ... |
#include <stdio.h>
#include <math.h>
long int gcd(long int a,long int b){
if(b==0){
return a;
}else{
return gcd(b,a%b);
}
}
int main(void){
long int a,b,i;
int t=0,ans=1;
scanf("%ld %ld",&a,&b);
a=gcd(a,b);
if(a!=1){
for(i=2;i<=a;i++){
if(i>sqrt(a)){
ans++;
break;
}
t=0;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203054/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203054/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <limits.h>
#include <stdlib.h>
#include <math.h>
int main(void)
{
long int i, j;
long int a, b;
long int sum;
long int max;
long int count;
long int r;
long int work;
scanf("%ld%ld", &a, &b);
if(a < b) {
work = a;
a = b;
b = work;
}
r = a % b;
wh... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203098/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203098/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 300000
int T[MAX+1], L[MAX+1];
int main(){
int N, Q, q, x, i, m, maxv, cur, p;
scanf("%d %d", &N, &Q);
for ( i = 0; i < N; i++ ) {
scanf("%d", &x);
T[x] = 1;
}
m = 0;
for ( i = 1; i <= MAX; i++ ){
L[i] = m;
if ( T[i] ) m = i;
}
for ( i = 0; i < Q; i++ ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203140/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203140/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 FOR(n) for(int i=0;i<n;i++)
#define FORJ(n) for(int j=0;j<n;j++)
#define PRN(n) printf("%d\n",n)
#define PRF(n) printf("%lf\n",n)
#define PRL(n) printf("%lld\n",n)
#define PRS(s) printf("%s\n",s)
#define PRC(c) printf("%c",c)
#define mod 1... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203184/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203184/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x_max,y_max;
char map[102][102];
char visited[102][102];
void tadoru(int x,int y,char color) {
if(map[y][x]!=color || visited[y][x])return;
visited[y][x]=1;
tadoru(x-1,y,color);
tadoru(x+1,y,color);
tadoru(x,y-1,color);
tadoru(x,y+1,color);
}
int main(void) {
int sta... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203227/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203227/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@map = dso_local local_unna... |
#include <stdio.h>
void judge(int x, int y, int z)
{
int f = 0;
if(x * x == y * y + z * z){
f = 1;
}else if(y * y == z * z + x * x){
f = 1;
}else if(z * z == x * x + y * y){
f = 1;
}
printf( (f == 1) ? ("YES\n") : ("NO\n") );
return;
}
int main(void)
{
int n,a,b,c;
scanf("%d", &n);
while(n--){
scanf... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203285/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203285/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
int a,b,c,N,box,sum,powerA,powerB,powerC;
scanf("%d",&N);
while(N--)
{
scanf("%d%d%d",&a,&b,&c);
if(b>c)
{
box=c;
c=b;
b=box;
}
if(a>b)
{
box=b;
b=a;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203335/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203335/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
int a,b,c,i,n;
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d%d%d",&a,&b,&c);
if(a*a+b*b==c*c||a*a+c*c==b*b||c*c+b*b==a*a)
printf("YES\n");
else
printf("NO\n");
}
return(0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203379/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203379/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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 i;
int b;
int c;
int d;
scanf("%d", &a);
for (i = 0; i < a; i++){
scanf("%d %d %d", &b, &c, &d);
if ((c < b) && (d < b)){
if ((d * d) + (c * c) == b * b){
printf("YES\n");
}
else {
printf("NO\n");
}
}
else if ((b < c) && (d < c)){... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203436/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203436/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int t;
scanf("%d",&t);
while(t--)
{
int a[110],b[110]={0};
int n;
int min=1000;
scanf("%d",&n);
for(int i=1;i<=n;i++)
{
scanf("%d",&a[i]);
b[a[i]]++;
min=min>a[i]?a[i]:min;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20348/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20348/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main(){
int n;
int z,w,a;
int i;
scanf(" %d",&n);
for(i=0;i<n;i++){
scanf(" %d %d %d",&z,&w,&a);
if((z*z)+(w*w)==a*a){
printf("YES\n");
}else{
if((w*w)+(a*a)==z*z){
printf("YES\n");
}else{
if((a*a)+(z*z)==w*w){
printf("YES\n");
}else{
printf("NO\n")... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203522/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203522/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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,a[3],i,j,max;
scanf("%d",&m);
for(i=0;i<m;i++)
{
scanf("%d %d %d",&a[0],&a[1],&a[2]);
max=0;
for(j=0;j<3;j++)
{
if(max<a[j]){ max = a[j]; n=j;}
}
if(a[n]*a[n] == a[(n+2)%3]*a[(n+2)%3]+a[(n+1)%3]*a[(n+1)%3]) printf("YES\n");
else printf("NO\n");
}
retur... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203566/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203566/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 size;
scanf("%d",&size);
int a[size][3];
int i;
for(i=0;i<size;i++){
scanf("%d %d %d",&a[i][0],&a[i][1],&a[i][2]);
}
int j;
char out[4]="NO";
for(i=0;i<size;i++){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203609/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203609/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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,s[3],i,j,jugde,a,b,c;
char d[100];
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d %d %d",&s[0],&s[1],&s[2]);
if(s[0]<s[1]){
j=s[1];
s[1]=s[0];
s[0]=j;
}
if(s[0]<s[2]){
j=s[2];
s[... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203702/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203702/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int i,j,n,a[5],b[5];
int main(){
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("\n%d %d %d",&a[0],&a[1],&a[2]);
for(j=0;j<3;j++)b[j]=a[j]*a[j];
if(b[0]==b[1]+b[2])printf("YES\n");
else if(b[1]==b[2]+b[0])printf("YES\n");
else if(b[2]==b[0]+b[1])printf("... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203753/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203753/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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, a, b, c;
scanf("%d", &n);
for ( i = 0; i < n; i++) {
scanf("%d %d %d", &a, &b, &c);
if ((a*a) + (b*b) == (c*c)) {
printf("YES\n");
} else if ((b*b) + (c*c) == (a*a)) {
printf("YES\n");
} else if ((c*c) + (a*a) == (b*b)) {
printf("YES\n");
} else
p... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203818/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203818/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/* 5月17日正午はIPA基本情処試験の合格発表ですね。 */
#include <stdio.h>
int isRight(int x,int y,int z){
if(x*x==(y*y+z*z))return -1;
return 0;
}
int main(){
int a,b,c,d,e;
scanf("%d",&a);
for(b=1;b<=a;b++){
scanf("%d %d %d",&c,&d,&e);
if(isRight(c,d,e) || isRight(d,c,e) || isRight(e,c,d)) printf("YES\n");
else print... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203883/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203883/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int n,a,b,c,i;
scanf("%d", &n);
for(i=0;i<n;i++){
scanf("%d%d%d", &a, &b, &c);
if(a*a+b*b==c*c || b*b+c*c==a*a || c*c+a*a==b*b) puts("YES");
else puts("NO");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203926/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203926/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
int t;
scanf("%d",&t);
for (int i = 0; i < t; i++)
{
int n,k=0,c;
scanf("%d",&n);
int a[n];
for (int m = 0; m < n; m++)
{
scanf("%d",&a[m]);
}
int minimum = a[0];
for ( c = 1 ; c < n; c... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20397/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20397/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
int main(){
int n;
scanf("%d", &n);
int a[n];
int b[n];
int c[n];
int i;
for(i=0;i<n;i++)
{
scanf("%d%d%d", &a[i], &b[i], &c[i]);
}
for(i=0;i<n;i++)
{
if(a[i]*a[i]==b[i]*b[i]+c[i]*c[i])
{
printf("YES\n");
}
else if(b[i]*b[i]==a[i]*a[i]+c[i]*c[i])
{
printf("YES\n");
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204026/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204026/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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 t,i,sum,n;
long min = 10000000000;
scanf("%d",&t);
int b[t], k=0;
while(t--)
{
scanf("%d",&n);
int a[n];
for(i=0;i<n;i++)
{
scanf("%d",&a[i]);
if(min>a[i])
min=a[i];
}
// printf("\nmin is%d", min);
for(i=0;i<n;i++)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20407/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20407/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main(void)
{
int t;
scanf("%d",&t);
for(int i=0;i<t;i++)
{
int x,j,min=300,c=0;
scanf("%d ",&x); int A[x+1];
for(j=0;j<x;j++)
{
scanf("%d ",&A[j]); if(min>A[j]) min=A[j];
}
for(j=0;j<x;j++)
{
if(min==A... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20412/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20412/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <math.h>
int main(void) {
int tmp;
int n,i;
scanf("%d", &n);
for(i=0; i<n; i++){
int a=0,b=0,c=0;
scanf("%d %d %d", &a, &b, &c);
if(a<b) {tmp=a; a=b; b=tmp;}
if(a<c) {tmp=a; a=c; c=tmp;}
if( a == sqrt(b*b + c*c) ) printf("YES\n");
else printf("NO\n");
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204170/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204170/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int a,b,c,n,i,j,k;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&c);
if(a<b){
k=a;
a=b;
b=k;
}
if(a<c){
k=a;
a=c;
c=k;
}
if(a*a==b*b+c*c){
printf("YES\n");
}else{
printf("NO\n");
}
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204213/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204213/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
typedef long long ll;
int cmpint(const void *x, const void *y) {
return *(int *)y - *(int *)x;
}
int main() {
int n, a[300000];
ll sum = 0;
scanf("%d", &n);
for (int i = 0; i < 3 * n; i++) {
scanf("%d", &a[i]);
}
qsort(a, n * 3, sizeof(int), cmpint);
for (int i = 1; i < ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204264/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204264/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
int N, a[300000];
long long int ans;
int comp(const void *p1, const void *p2) { return *(const int *)p1 - *(const int *)p2; }
int main(void) {
int i, count;
scanf("%d", &N);
for (i = 0; i < 3 * N; i++) scanf("%d", &a[i]);
qsort(a, N * 3, sizeof(int), comp);
i = N * 3 - 1... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204307/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204307/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int n,a[1001],b[1001],c[1001],i,k=1001;
double x,y,z,d[1001],w=10000;
while(1){
scanf("%d\n",&n);
if(n==0){
break;
}
for(i=0;i<n;i++){
scanf("%d %d %d\n",&a[i],&b[i],&c[i]);
x=b[i],y=c[i];
x=x/100;
z=y/(x*x);
if(z>22){
z=z-22;
}
else{
z=22-z;
}
d[i]=z;
if((z<w) || (z==w && k>a[i])){
w=z;
k... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204358/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204358/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <stdbool.h>
#include <string.h>
#include <math.h>
#define Max(a, b) ((a) > (b) ? (a) : (b))
#define Min(a, b) ((a) > (b) ? (b) : (a))
#define Abs(x) ((x) > 0 ? (x) : -(x))
#define REP(i, n) for(int i = 0; i < n; i++)
#define INF 1000000000000 //10^12
#define MOD 100000000... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204400/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204400/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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, d;
scanf("%d %d", &n, &d);
int i;
for(i = 1; i <= n; ++i){
if((((i - 1) * 2 * d) + 2 * d) + i >= n ) break;
}
printf("%d\n", i);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204451/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204451/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/* ex4_1
offNaria */
#include <stdio.h>
int main(void){
int number, range;
scanf("%d %d", &number, &range); //監視員は2*range+1本の木を監視できる
if(number % (2 * range + 1) == 0){
printf("%d\n", number / (2 * range + 1)); //あまりなく監視できるなら必要人数を返す
}else{
printf("%d\n", number / (2 * range + 1) + 1); //そうでなければ(整数部分)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204495/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204495/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/* ex4_1
moka223711 */
#include <stdio.h>
int main(void){
// n本の木があり、1〜nの番号がついている
// 番号iの木に監視員がつき、i-dからi+dまでの木を監視できる
// すべての木を監視するのに必要な監視員の数の最小値を求める
int n, d, ans = 0;
scanf("%d %d", &n, &d);
// 監視員はi-dからi+dまでの2d+1本の木を監視できる
// nを2d+1で割った商を求め、余りがあったときはもう一人監視員を加える
ans = n / ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204538/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204538/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main() {
int t, v, ok = 0;
scanf("%d %d", &t, &v);
ok = (v*2)+1;
if (t%ok != 0)
printf("%d\n", (t/ok) + 1);
else
printf("%d\n", t/ok);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204589/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204589/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int countwatch(int tree,int gold);
int main(){
int n,d;
scanf("%d%d",&n,&d);
printf("%d\n",countwatch(n,d));
return 0;
}
int countwatch(int tree,int gold){
int man;
//切り上げ計算
//切り上げ=(被序数+序数-1/序数)
man = ((tree+(gold*2+1)-1)/(gold*2+1));
return man;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204631/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204631/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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,D,a;
scanf("%d %d",&N,&D);
a=(N%((2*D)+1));
if(a>0){
printf("%d",(N/((2*D)+1))+1);
}
else{
printf("%d",(N/((2*D)+1)));
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204675/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204675/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 FOR(n) for(int i=0;i<n;i++)
#define PRN(n) printf("%d\n",n)
#define PRS(s) printf("%s\n",s)
int main(void){
int n,d,c=0;
scanf("%d %d",&n,&d);
if(n%(2*d+1))c++;
PRN(n/(2*d+1)+c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204718/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204718/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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,D,can=0;
int ans=1;
scanf("%d %d",&N,&D);
while(N>can){
can=(D*2+1)*ans;
ans++;
}
printf("%d",ans-1);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204761/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204761/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/* 134b */
#include<stdio.h>
#include<math.h>
int main(void)
{
int n,b,r,a;
scanf("%d %d",&n,&r);
b=n%(2*r+1);
a=(n-b)/(2*r+1);
if(b>0){
a=a+1;
}
printf("%d\n",a);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204804/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204804/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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, d, can, people;
scanf("%d %d", &n, &d);
can = 2*d + 1; //1人で監視できる本数
if (n%can==0) {
people = n / can;
} else {
people = n / can + 1;
}
printf("%d\n", people);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204848/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204848/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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, D;
scanf("%d%d", &N, &D);
printf("%d\n",(N+2*D)/(2*D+1));
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204891/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204891/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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, d;
scanf("%d %d", &n, &d);
printf("%d\n", (n + 2 * d)/ (2 * d + 1));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204934/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204934/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
void swap (int *x, int *y) {
int temp;
temp = *x;
*x = *y;
*y = temp;
return;
}
int gcd(int a, int b){
int c;
while (b > 0){
c = a % b;
a = b;
b = c;
}
return a;
}
long int modpow(long int a,long int n,l... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204978/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204978/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main() {
int t;
int results[5] = { 0 };
scanf("%d", &t);
for (int ti = 0; ti < t; ti++)
{
int n, x;
int arr[100] = { 0 };
scanf("%d %d", &n, &x);
for (int ni = 0; ni < n; ni++)
{
int tmp;
scanf("%d", &tmp);
arr[tmp - 1] = 1;
}
int res = 0;
for (int i = 0; x > 0 && ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20502/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20502/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main(){
int s, c;
int res;
scanf("%d", &s);
scanf("%d", &c);
res = s % 500;
if(res > c){
printf("No\n");
} else {
printf("Yes\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205063/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205063/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int n,a;
scanf("%d %d",&n,&a);
n%=500;
if(n<=a)printf("Yes\n");
else printf("No\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205106/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205106/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int n,a;
scanf("%d%d",&n,&a);
puts(n%500<=a?"Yes":"No");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205164/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205164/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 argc,char **argv)
{
int a ,n;
int i = 0;
scanf("%d%d",&n,&a);
i = n % 500;
if (i <= a)
{
printf("Yes\n");
}
else if(i > a)
{
printf("No\n");
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205207/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205207/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int n, a;
scanf("%d", &n);
scanf("%d", &a);
if(a >= 499){
printf("Yes\n");
} else if( (n % 500) <= a){
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205265/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205265/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, N, sum, calc;
scanf("%d", &N);
scanf("%d", &A);
calc = N / 500;
sum = N - 500 * calc;
if(sum <= A){
printf("Yes");
}else{
printf("No");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205315/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205315/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ch_line(char ch, int num);
int main()
{
int n;
char str[105];
int op, ed;
op = ed = 0;
scanf("%d", &n);
scanf("%s", str);
for (int i = 0; i < n; i++){
if(str[i] == '(') {
op++;
}
if (str[i] == ')') {
if (op > 0) {
op--;
} else {
ed++;
}
}
}
ch_line('(',... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205359/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205359/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 inf 1145141919
int max(int a,int b){if(a>b){return a;}return b;}
int min(int a,int b){if(a<b){return a;}return b;}
int main(void){
int i,op=0,cl=0,n;
char s[128];
scanf("%d%s",&n,s);
for(i = 0;i < n;i++){
if(s[i] == '('){op++;}
else{if(op != 0){op--;}else{cl++... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205401/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205401/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
bool is_equilateral_triangle(unsigned char *A, unsigned char *B, unsigned char *C)
{
if (*A == *B && *B == *C) { return true; }
else { return false; }
}
void exawizard2019_a(unsigned char *A, unsigned char *B, unsigned char *C)
{
if (is_equilat... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205445/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205445/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str.1 = private unnamed_a... |
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
int a, b, c;
scanf("%d", &a);
scanf("%d", &b);
scanf("%d", &c);
if (a == b && b == c && a == c)
{
printf("Yes\n");
}
else
{
printf("No\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205489/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205489/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
int A, B, C;
scanf("%d", &A);
scanf("%d", &B);
scanf("%d", &C);
if(A == B && B == C) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205531/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205531/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 <string.h>
#include <math.h>
#include <stdio.h>
int compare(const void *a,const void *b){
if(*(long long *)a>*(long long *)b)return 1;
return -1;
}
int main()
{ int a,b,k,x,n,m,i,y,c;
scanf("%d%d%d",&a,&b,&c);
if(a==b&&b==c)
printf("Yes");
else printf("No");
re... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205575/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205575/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#pragma warning(disable:4996)
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define _USE_MATH_DEFINES
#include <math.h>
#include <float.h>
#pragma region 定義
typedef long long ll;
typedef unsigned long long ull;
#define _itoa(A,N) sprintf(A, "%d", N);
int i_dsort(const void* a, const void* b);
int i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205625/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205625/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#include <time.h>
#define _CRT_SECURE_NO_WARNINGS
#define TLong long long
// fact(n)
int fact(int n){
if(n == 1) return 1;
else return (n * fact(n - 1));
}
// combination(n,r)
int combination(int n, int r){
if(r == 0 || r == n) return 1... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205740/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205740/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void){
int i;
char *tok;
char text[20];
char year[20];
char mouth[20];
char date[20];
for(i = 0; i < 20; i++){
text[i] = '\0';
year[i] = '\0';
mouth[i] = '\0';
date[i] = '\0';
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205841/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205841/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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[11] = {};
scanf("%s", s);
s[0] = '2';
s[1] = '0';
s[2] = '1';
s[3] = '8';
printf("%s\n", s);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205892/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205892/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/*
cat <<EOF >mistaken-paste
*/
#pragma GCC diagnostic ignored "-Wincompatible-pointer-types"
#define _USE_MATH_DEFINES
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <math.h>
#include <time.h>
#define BIG 2000000007
#define VERYBIG 2000000000000007LL
#d... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205935/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205935/source.c"
target datalayout = "e-m:e-p270: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 local_unname... |
#include <stdio.h>
int main (){
int i; scanf("%d", &i);
if(i<=2) printf("-1");
else{
int j;
for(j=i;i>0;i--) printf("%d ", i);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_2060/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_2060/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 judge(int);
int cont=0;
int main()
{
int a,d,n,i,m=0;
int an[1000];
while(1){
scanf("%d%d%d",&a,&d,&n);
if(a==0 && d==0&&n==0)break;
for(i=a;i<10000000;i+=d){
cont+=judge(i);
if(cont==n){
an[m]=i;
m++;
break;
}
}
cont=0;
}
for(i=0;i<... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206057/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206057/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@cont = dso_local local_unn... |
#include <stdio.h>
int main(){
int n;
scanf("%d",&n);
while(n>0){
int x;
char a[350]={};
scanf("%d",&x);
scanf("%s",a);
if(x==2){
if(a[0]>=a[1]){
printf("NO\n");
n--;
continue;
}
else{... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20610/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20610/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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)
{
char s[100005];
int n=0,p=0,ans;
scanf("%s", s);
while(strncmp(&s[n], "\0", 1)!=0)
{
if(strncmp(&s[n], "p", 1)==0) p++;
n++;
}
if(n%2==0) ans=(n/2)-p;
else ans=((n-1)/2)-p;
printf("%d", ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206143/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206143/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int getLB(int a[],int k,int head,int tail){
if(a[0]>=k)return 0;
if(head>tail)return -1;
int mid=(head+tail)/2;
if(a[mid]<k)head=mid+1;
else if(a[mid]>=k){
if((mid-1>=0&&a[mid-1]<k)||mid==0)return mid;
tail=mid-1;
}
return getLB(a,k,head,tai... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206187/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206187/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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))
int r[100][100];
int main(){
int row = 0, height = 0, i, j;
while(scanf("%d", &r[row][height]) != EOF && r[row][height] != 100){
height++;
if(getchar() == '\n'){
row++;
height = 0;
}
}
for(i = 1;i < row / 2 + 1;i++){
r[... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206237/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206237/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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()
{
double l;
scanf("%lf",&l);
l=l/3;
l=l*l*l;
printf("%lf\n",l);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206280/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206280/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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 l;
scanf("%d",&l);
double ans=(double)l*l*l/27;
printf("%.12lf\n",ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206323/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206323/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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(){
double L;
scanf("%lf",&L);
double l;
l=L/3;
l=l*l*l;
printf("%f",l);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206367/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206367/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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()
{
double a;
double b;
double result;
scanf("%lf", &a);
b = a/3.0000000000;
result = b*b*b;
printf("%.10f", result);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206453/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206453/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <math.h>
int main()
{
int n;
scanf("%d",&n);
double k;
k = (double) n / (double) 3;
k = pow(k,3);
printf("%.12f",k);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206510/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206510/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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()
{
double l;
scanf("%lf",&l);
printf("%.12lf",pow(l/3,3));
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206554/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206554/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
struct node{
struct node *right;
struct node *left;
struct node *p;
int key;
};
typedef struct node * Node;
#define NIL NULL
Node root;
Node treeMinimum(Node x){
while(x->left != NIL){
x = x->left;
}
return x;
}
Node treeMaximum(Node x){
while(x->right != NIL... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206598/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206598/source.c"
target datalayout = "e-m:e-p270: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 { ptr, ... |
#include<stdio.h>
#include<stdlib.h>
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
#define NIL NULL
Node root;
Node treeMinimum(Node x){
while(x->left!=NIL)
x=x->left;
return x;
}
Node treeMaximum(Node x){
while(x->right!=NIL)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206640/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206640/source.c"
target datalayout = "e-m:e-p270: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 { ptr, ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct node{
long key;
struct node *left;
struct node *right;
struct node *p;
}Node;
void print_tree(Node *x,int order) {
if (order == 0) {
printf(" %ld", x->key);
}
if(x->left != NULL) print_tree(x->left,order);
if (order == 1... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206684/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206684/source.c"
target datalayout = "e-m:e-p270: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 { i64, ... |
#include <stdio.h>
#include <stdlib.h>
typedef struct node{
struct node *left;
struct node *right;
struct node *parent;
int key;
}Node;
typedef Node *NodePointer;
NodePointer root = NULL;
NodePointer minimum(NodePointer);
NodePointer createNode(void){
NodePointer tree = malloc(sizeof(Node));
tree->l... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206727/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206727/source.c"
target datalayout = "e-m:e-p270: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 { ptr, ... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
typedef struct node{
struct node *left;
struct node *right;
struct node *parent;
int key;
}node;
node *T;
void Insert(int);
void Inorder(node*);
void Preorder(node*);
int Find(int);
void Delete(int);
node* Successor(node*);
node* Minimum(node*);
node* Maxi... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206785/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206785/source.c"
target datalayout = "e-m:e-p270: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 { ptr, ... |
#include<stdio.h>
#include<stdlib.h>
#define NIL -1
#define MAX 500001
typedef struct{
int right;
int left;
int key;
int parent;
} Node;
void Insert(Node*,int,int);
void PreOrder(Node*,int);
void InOrder(Node*,int);
void Find(Node*,int, int);
void Delete(Node*,int);
int Successor(Node*, int);
int main(v... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206842/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206842/source.c"
target datalayout = "e-m:e-p270: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>
#include<stdlib.h>
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
#define NIL NULL
Node root;
Node treeMinimum(Node x){
while(x->left!=NIL){
x = x->left;
}
return x;
}
Node treeSearch(Node x, int k){
if(x == N... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206886/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206886/source.c"
target datalayout = "e-m:e-p270: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 { ptr, ... |
#include<stdio.h>
#include<stdlib.h>
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
#define NIL NULL
Node root;
Node treeMinimum(Node x){
while(x->left != NIL){
x = x->left;
}
return x;
}
Node treeSearch(Node u, int k){
if(u == NI... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206936/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206936/source.c"
target datalayout = "e-m:e-p270: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 { ptr, ... |
#include<stdio.h>
#include<stdlib.h>
typedef struct node{
int key;
struct node *parent,*left,*right;
}Node;
Node *sum,*num;
void xu(int k);
Node* fan(int k);
void delete(int k);
void malon(Node *x);
void rin(Node *x);
int main(){
int i,n,x; scanf("%d",&n);
char rum[10];
for(i=0;i<n;i++){
scanf("%s",rum);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206994/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206994/source.c"
target datalayout = "e-m:e-p270: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>
#include <stdlib.h>
#include <string.h>
struct Node {
int key;
struct Node *right, *left, *parent;
};
typedef struct Node Node;
Node *root, *NIL;
Node * treeMinimum(Node *x) {
while(x->left != NIL)
x = x->left;
return x;
}
Node * find(Node *u, int k) {
while(u != NIL && k != u->key)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207036/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207036/source.c"
target datalayout = "e-m:e-p270: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>
int n,i,a1[5002]={0},a2[5002]={0},a3[5002]={0},st[5002]={0},cnt1=0,cnt2=0,cnt3=0,w=0;
int main()
{
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d",&st[i]);
if(st[i]==1){
a1[cnt1]=i;
cnt1++;
}
else if(st[i]==2){
a2[cnt2]=i;
cnt2++;
}
else if(st[i]==3){
a3[cnt3]=i;
cnt3++;
}
}
if(cnt1==0 || cnt2==... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20708/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20708/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@a1 = dso_local local_unnamed... |
#include<stdio.h>
#include<stdlib.h>
struct node{
int key;
struct node *parent,*left,*right;
};
struct node *root,*NIL;
struct node * minimum(struct node *x){
while(x->left!=NIL) x=x->left;
return x;
}
struct node * successor(struct node *x){
if(x->right!=NIL) return minimum(x->right);
struct node *y=x->... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207173/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207173/source.c"
target datalayout = "e-m:e-p270: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, ... |
/* ALDS1_8_C_BinarySearchTreeIII */
/* 20181126 AOJ */
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct BinaryTreeNode_ {
int key;
struct BinaryTreeNode_ *parent;
struct BinaryTreeNode_ *left;
struct BinaryTreeNode_ *right;
} BinaryTreeNode;
void insert(Bi... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207216/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207216/source.c"
target datalayout = "e-m:e-p270: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.BinaryTreeNode_ = t... |
#include<stdio.h>
#include<string.h>
int main(void){
char s[12],t[12];
scanf("%s",s);
scanf("%s",t);
for(int i=0;i<strlen(s);i++){
if(s[i]!=t[i]){
printf("No\n");
return 0;
}
}
printf("Yes\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207274/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207274/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[11], t[11];
scanf(" %s\n %s", s, t);
int x = strlen(s);
t[x]='\0';
if(strcmp(s,t) == 0) {
printf("Yes\n");
}else {
printf("No\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207317/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207317/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
int main(void){
char s[11],t[11];
scanf("%s",s);
scanf("%s",t);
if(strlen(s)+1!=strlen(t)){
printf("No");
return 0;
}
for(int i=0;i<strlen(s);i++){
if(s[i]!=t[i]){
printf("No");
return 0;
}
}
p... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207368/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207368/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <string.h>
int main(void) {
char s[20], t[20];
int i;
scanf("%s", s);
scanf("%s", t);
if (strlen(t) - strlen(s) == 1 && strncmp(s, t, strlen(s))==0) {
printf("Yes");
}
else {
printf("No");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207425/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207425/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a[100],b[100];
scanf("%s %s", a, b);
for( i=0; i<strlen(a); i++){
if(a[i]!=b[i]){
puts("No");
return 0;
}
}
puts("Yes");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207469/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207469/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
int main(void){
char s[11],t[12];
int i=0,j=0,k=0,flag=0;
scanf("%s",s);
scanf("%s",t);
while(s[i]!=0){
i++;
}
if( i <1 || i >10 ){
flag++;
}
while(t[j]!=0){
j++;
}
if( j!=i+1 ){
flag++;
}
while(s[k]!=0){
if(s[k]!=t[k]){
flag++;
}
k++;
}
if(flag... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207511/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207511/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[11]={};
char T[11]={};
int n=0;
scanf("%s",S);
scanf("%s",T);
n = strlen(S);
// if(n==0){
// printf("No\n");
// }else{
if(strncmp(S,T,n)==0){
if(T[n]==0){
printf("No\n");
}else{
if(T[n+1]==0){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207562/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207562/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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[11],t[11];
int i,i1;
scanf("%s",s);
scanf("%s",t);
for(i=0; s[i]!='\0'; ++i);
for(i1=0; t[i1]!='\0'; ++i1);
if(i1!=(i+1)){
printf("No\n");
return 0;
}
for(int j=0;j<i;j++){
if(s[j]!=t[j]){
printf("No");
return 0;
}
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207612/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207612/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 l, flag, i;
char ch1[20], ch2[20], ch3[20];
scanf("%s %s", ch1, ch2);
l=strlen(ch2);
for (i=0; i<l-1; i++) ch3[i]=ch2[i];
ch3[i++]='\0';
flag=strcmp(ch1, ch3);
if (flag==0) puts("Yes");
else puts("No");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207656/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207656/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int a,b,c,i,j,S;
scanf("%d %d %d",&a,&b,&c);
S=(a+b-1)*(c-a+1);
for(i=0;i<a-1;i++) S+=2*(b+i);
printf("%d\n",S);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_2077/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_2077/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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(){
char s[11], t[11];
scanf("%s%s",s,t);
int ans = 0;
int i;
for(i = 0; s[i]; i++)
if(s[i] == t[i])
ans ++;
if(i == ans){
printf("Yes");
}
else{
printf("No");
}
printf("\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207742/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207742/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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 c[10], key = 1, C, i, j;
while(scanf("%d,%d,%d,%d,%d", &c[1], &c[2], &c[3], &c[4], &c[5]) != EOF){
key = 1;
for ( i = 1; key; i++ ) {
key = 0;
for ( j = 5; j > i; j-- ) {
if ( c[j] < c[j - 1]) {
C = c[j];
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207786/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207786/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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 card[14];
int c[5];
int i,j,t;
int pair,tri,fo,st;
int flag=0;
while(scanf("%d,%d,%d,%d,%d",&c[0],&c[1],&c[2],&c[3],&c[4])!=EOF){
flag=pair=tri=fo=st=0;
for(i=1;i<14;i++)
card[i]=0;
for(i=0;i<5;i++){
card[c[i]]++;
if(card[c[i]]==4){
printf("four card\n");
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207836/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207836/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <float.h>
#include <inttypes.h>
#include <limits.h>
#include <signal.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <math.h>
#ifdef __cplusplus
#include <bits/stdc++.h>
#endif
//#pragma GC... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207887/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207887/source.c"
target datalayout = "e-m:e-p270: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._IO_FILE = type { i... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#define ll long long
#define INF 1<<31-1
#define LNF 9223372036854775807
#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 1000000007
//#define MOD 998244353
#define N... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207937/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207937/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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.