Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include <stdio.h>
int main(void)
{
int X,t;
scanf("%d%d",&X,&t);
if(X >= t)
{
int r=X-t;
printf("%d",r);
}
else
{
printf("0");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_326463/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_326463/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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 , t , c;
scanf("%d %d",&X, &t);
if(X>t){
c=X-t;
printf("%d",c);
}
else
{
printf("0");
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_326506/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_326506/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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,n,a,b,c,d;
scanf("%d",&n);
for(i=1;i<=n;i++)
{
scanf("%d %d %d %d",&a,&b,&c,&d);
if(a!=c)
printf("%d %d\n",a,c);
else if(a!=d)
printf("%d %d\n",a,d);
else if(b!=c)
printf("%d %d\n",b,c... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_32655/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_32655/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 x,t;
scanf("%d %d",&x,&t);
if(x > t) printf("%d",x-t);
else printf("0");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_326593/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_326593/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 order(int P[8], int index, int N)
{
int i;
int count;
count = 1;
for (i=index+1; i<N; i++)
{
if (P[index] > P[i])
count++;
}
return (count);
}
int main(void)
{
int N;
int P[8];
int Q[8];
int R[] = {5040,720,120,24,6,2,... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_326687/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_326687/source.c"
target datalayout = "e-m:e-p270: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.R = private u... |
#include <stdio.h>
int pos[100300];
int back[100300];
int main(void){
int m,n,k;
int i,temp,app;
long long int result=0;
scanf("%d%d%d",&n,&m,&k);
for(i=1;i<=n;i++){
scanf("%d",&temp);
pos[temp] = i;
back[i] = temp;
}
for(i=0;i<m;i++){
scanf("%d",&app);
result += (pos[app] - 1)/k + 1;
if (pos[app]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_32673/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_32673/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 a[1000], b[1000];
int main(void) {
int n, m, pos, res;
int i, j;
while (1) {
pos = 0, res=0;
scanf("%d %d", &n, &m);
if (n == 0 && m == 0)break;
for (i = 0; i < n; i++)scanf("%d", &a[i]);
for (i = 0; i < m; i++)scanf("%d", &b[i]);
for (i = 0; i < m; i++) {
pos = pos + b[i];... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_326780/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_326780/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 repl(i,a,b) for(i=(int)(a);i<(int)(b);i++)
#define rep(i,n) repl(i,0,n)
#define EPS 1e-9
#define bool int
#define false 0
#define true 1
#define max(x,y) x>y?x:y
#define maxch(x,y) x=max(x,y)
//typedef vector<double> vec;
//typede... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_326852/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_326852/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@X = dso_local local_unname... |
#include<stdio.h>
int main()
{
int A,B,C;
scanf("%d %d %d",&A,&B,&C);
A=A+B;
if(A>=C){
printf("Yes");
}
else{
printf("No");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_326902/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_326902/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{ int a,b,c;
scanf("%d%d%d",&a,&b,&c);
if(a+b>=c){printf("Yes");}
else{printf("No");}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_326953/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_326953/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 MOD 1000000009+7
int main(){
int A,B,C;
scanf("%d %d %d",&A,&B,&C);
if(A+B>=C)printf("Yes\n");
if(A+B<C)printf("No\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_326997/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_326997/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int A,B,C;
scanf("%d%d%d",&A,&B,&C);
printf("%s",A+B>=C ? "Yes" : "No");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_327039/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_327039/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int a,b,c;
scanf("%d", &a);
scanf("%d", &b);
scanf("%d", &c);
if(a + b >= c)
puts("Yes");
else
puts("No");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_327082/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_327082/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
// AOJ 0146: Lupin The 4th
// 2017.9.28 bal4u@uu
// 2017.11.21
#include <stdio.h>
#include <string.h>
#define INF 1e10
#define ABS(a) ((a)>=0?(a):-(a))
#define MAX 32768
int s[16], d[16], v[16]; // ????????±?????????????????¢???????????±?????°
double dp[16][MAX]; // DP????????¨?????????
int w[16][MAX]; // ?????... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_327132/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_327132/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 BLACK 0
#define WHITE 1
#define GRAY -1
int a[101][101];
int n;
int color[101];
int time=0;
int d[101];
int k;
int head=0,tail=0;
int queue[101];
void BFS (int);
void Enqueue(int u){
if(tail == 101)tail=0;
queue[tail] =u;
tail++;
}
int Dequeue(void){
if(head==101)head=0;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_327190/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_327190/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@time = dso_local local_unn... |
#include<stdio.h>
#define MAX 101
#define WHITE 0
#define GRAY 1
#define BLACK 2
#define INF -1
int n, G[MAX][MAX], d[MAX], color[MAX];
int Q[MAX], head=0, tail=0;
void bfs(int );
void enqueue(int );
int dequeue(void);
int main()
{
int i, j, u, k, v;
scanf("%d", &n);
for(i=0; i<=n; i++)
{
for(j=0; j... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_327240/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_327240/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@head = dso_local local_unn... |
#include <stdio.h>
int n, M[1000][1000];
int d[1000];
int Q[1000];
int tail=0;
int head=0;
void enq(int x) {
Q[tail++] = x;
}
int deq() {
return Q[head++];
}
void bfs(int s) {
int i,u,v;
enq(s);
for(i=1;i<=n;i++){
d[i] = 100000;
d[s] = 0;
}
while(head != tail){
u = deq();
for(v=1;v<=n;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_327299/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_327299/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@tail = dso_local local_unn... |
#include<stdio.h>
#define MAX 101
void enqueue(int q);
int dequeue();
int size();
void bfs(int i);
int G[MAX][MAX];
int d[MAX];
int n;
int Que[1000];
int head=0, tail=0;
void enqueue(int q){
Que[head]=q;
head++;
}
int dequeue(){
tail++;
return Que[tail-1];
}
int size(){
return head-tail;
}
void ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_327349/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_327349/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@head = dso_local local_unn... |
#include<stdio.h>
#include<stdlib.h>
#define NIL -1
#define MAX 101
void BFS(int, int);
void Enqueue(int*,int);
int Dequeue(int*);
int Adj[MAX][MAX];
int D[MAX], F[MAX];
int C[MAX]={0};
int count = 1;
int head = 0, tail = 0;
int main(void){
int i, j, n, u, k, v;
scanf("%d", &n);
for(i=1; i<n+1; i++){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_327392/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_327392/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@C = dso_local local_unname... |
#include <stdio.h>
#include <limits.h>
#define N 100
#define LEN 1000
int Q[LEN];
int head = 0, tail = 0;
int n, M[N][N];
int d[N];
void enqueue(int x) {
Q[tail] = x;
tail = (tail + 1) % LEN;
}
int dequeue() {
int x = Q[head];
head = (head + 1) % LEN;
return x;
}
void bfs(int s) {
int i,u, v;
enqueue(s);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_327435/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_327435/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@head = dso_local local_unn... |
#include<stdio.h>
#include<stdlib.h>
#define QSIZE 100
#define INFTY 1<<21
void enqueue(int);
int dequeue(void);
void bfs(int);
int queue[QSIZE];
int head=0;
int tail=0;
int n,A[QSIZE][QSIZE],d[QSIZE];
int main()
{
int i,j,x,y,z;
scanf("%d",&n);
for(i=0;i<n;i++){
for(j=0;j<n;j++)A[i][j]=0;}
for(i=0;i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_327493/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_327493/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@head = dso_local local_unn... |
#include <stdio.h>
#include <stdlib.h>
#define N 100
void visit(int);
int n,arr[N+1][N+1],count[N+1],cnt=0;
int main(){
int i,j,m,node,num;
scanf("%d",&n);
if(n<1 || n>100) exit(2);
for(i=0;i<=n;i++){
for(j=0;j<=n;j++){
arr[i][j]=0;
}
}
count[0]=999;
for(i=0;i<n;i++){
count[i+1]=999;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_327536/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_327536/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@cnt = dso_local local_unna... |
#include<stdio.h>
#define MAX 100
#define INF 100000000
#define WHITE 0
#define GRAY 1
#define BLACK 2
typedef struct{
int data[MAX];
int head;
int tail;
}queue;
queue Q;
int n,d[MAX],g[MAX][MAX],color[MAX];
void bfs(int);
void enqueue(int);
int dequeue();
int isEmpty();
int main(){
int i,j,k,m,v;
scan... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_327587/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_327587/source.c"
target datalayout = "e-m:e-p270: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.queue = type { [100... |
#include<stdio.h>
int main()
{
int n, h, m;
scanf("%d %d %d", &n, &h, &m);
int i;
int l[55], r[55], x[55];
for (i = 0; i < m; i++)
scanf("%d %d %d", &l[i], &r[i], &x[i]);
int high[55];
for (i = 0; i < n; i++)
high[i] = h;
int j;
for (i = 0; i < m; i++)
for (j = l[i] - 1; j < r[i]; j++)
if (high[j] > x... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_32763/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_32763/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 phrase[5]={5, 7, 5, 7, 7};
int main(void){
int n, tmp, ans, len[41];
char str[11];
while(1){
scanf("%d", &n);
if(n == 0) break;
for(int i=0; i<n; i++){
scanf("%s", str);
len[i] = strlen(str);
}
int j = tmp = ans = 0;
for(int i=0; i<n; i++){
tmp += ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_327738/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_327738/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@phrase = dso_local local_u... |
#include<stdio.h>
int main(){
int x,i,div;
int pn=0;
scanf("%d",&x);
for(;;){
if(x==2){
pn=x;
break;
}
for(i=2;i<x;i++){
div = x % i;
if(div==0)
break;
if(x-1 == i){
pn = x;
b... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_327781/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_327781/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(void){
int X, rX, flag = 0;
scanf("%d", &X);
rX = (int)sqrt(X);
for (int i = X; i < 100200; i++) {
for (int j = 2; j <= rX; j++) {
if (i % j == 0) {
flag = 1;
break;
}
}
if (flag == 0) {
printf("%d", i);
return 0;
}
flag = 0;
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_327824/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_327824/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 INF 1... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_327868/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_327868/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@fac = dso_local local_unna... |
#include<stdio.h>
int so(int p)
{
if (p <= 1)return 0;
for (int i = 2; i * i <= p; i++)
if (p % i == 0)return 0;
return 1;
}
int main(void)
{
int x;
scanf("%d", &x);
int p = x;
while (!so(p))p++;
printf("%d", p);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_327918/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_327918/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#include <string.h>
#include <stdlib.h>
#include <time.h>
#define GYOU_MAX 256
int main(void) {
int X;
scanf("%d", &X);
int flag;
for (int i = 2; ; i++) {
flag = 0;
for (int j = 2; j <i; j++) {
if (i%j == 0) {
flag = 1;
break;
}
}
if (flag == 0 && i >= X)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_327969/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_327969/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 OUT(x) ((0>x)||(x>2))
typedef struct{
double new;
double prev;
}point;
typedef struct{
int x;
int y;
}ipoint;
point bo[3][3];
int main(){
int i,j,k,x,y,n;
char buf[16];
ipoint dic[]={{0,0},{1,0},{2,0},
{0,1},{1,1},{2,1},
{0,2},{1,2},{2,2}},
dir[]={{-... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328025/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328025/source.c"
target datalayout = "e-m:e-p270: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.ipoint = type { i32... |
#include<stdio.h>
int e[100002],f[100002][2];
//大きい順
void merge(int i,int j,int *s){
if(i!=j){
merge(i,(i+j)/2,s);
merge((i+j)/2+1,j,s);
int a=i,b=(i+j)/2+1;
int d;
for(d=i;d<=j;d++){
if((i+j)/2<a){
e[d]=s[b];
b++;
}
else if(j<b){
e[d]=s[a];
a++;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328090/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328090/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@e = dso_local local_unname... |
#include <stdio.h>
#include <stdlib.h>
#define rep(i,l,r) for((i)=(l);(i)<(r);(i)++)
typedef struct Data{
long long b,c;
}data;
int cmp(const void *a,const void *b){
long long *A = (long long *)a;
long long *B = (long long *)b;
if (*A > *B) return 1;
if (*A < *B) return -1;
return 0;
}
int cmpb(const void... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328133/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328133/source.c"
target datalayout = "e-m:e-p270: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.Data = type { i64, ... |
#include<stdio.h>
#include<stdlib.h>
typedef long long int int64;
int cmp(const void *a,const void *b){
return *(int *)a-*(int *)b;
}
void run(void){
int n;
scanf("%d",&n);
int *a=(int *)calloc(n,sizeof(int));
int i;
for(i=0;i<n;i++) scanf("%d",a+i);
qsort(a,n,sizeof(int),cmp);
i=0;
int64 sum=0;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328177/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328177/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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,l,a=0,c=0,b[256]={0};
char s[100];
scanf("%s",s);
for(l=0;s[l];l++)b[s[l]]++;
while(l){
for(i=0;i<256;i++){
if(b[i]){
a++;
l--;
c++;
b[i]--;
}
else{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328234/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328234/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main (void)
{
int A,B;
scanf("%d%d",&A,&B);
if(A>=13)
printf("%d\n",B);
else if(A>5)
printf("%d\n",B/2);
else
printf("%d\n",0);
return 0 ;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328278/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328278/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int a,b;
scanf("%d %d",&a,&b);
if(a>=13)
printf("%d",b);
else if(a>=6&&a<=12)
printf("%d",b/2);
else
printf("0");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328320/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328320/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
int a,b;
scanf("%d %d",&a,&b);
if(a>=13)
printf("%d\n",b);
else if(a>=6)
printf("%d\n",b/2);
else if(a>=0)
printf("0\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328364/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328364/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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;
int B;
scanf("%d %d", &A, &B);
if (A >= 13)
{
printf("%d", B);
}
else if (13 > A && A > 5) //不等式の書き方とは違い活を使うだろ普通
{
printf("%d", B / 2);
}
else if (5 >= A)
{
printf("0");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328407/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328407/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int a,b;
scanf("%d %d",&a,&b);
if(a < 6){
printf("0\n");
}else if(a < 13){
printf("%d\n",b / 2);
}else{
printf("%d\n",b);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328450/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328450/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void) {
int A,B;
scanf("%d %d",&A,&B);
if (A<=5) {
printf("0\n");
} else if (6<=A && A<=12) {
printf("%d\n",B/2);
} else {
printf("%d\n",B);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328500/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328500/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
int a,b;
scanf("%d%d",&a,&b);
if(a>=13){
printf("%d\n",b);
}else if(a>=6){
printf("%d\n",b/2);
}else{
puts("0");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328551/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328551/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int a,b;
scanf("%d %d",&a,&b);
if(a>=13){
printf("%d\n",b);
}else if(a<=5){
printf("0\n");
}else{
printf("%d\n",b/2);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328601/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328601/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int a,b;
scanf("%d %d",&a,&b);
if(a<=5) printf("0");
else if(a<=12) printf("%d",b/2);
else printf("%d",b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328645/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328645/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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 answer = b;
if(a <= 12) answer /= 2;
if(a <= 5) answer = 0;
printf("%d\n",answer);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328689/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328689/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 NUM 200001
#define HASH 200001
typedef struct List {
struct List *next;
int id;
} list;
int hash_string(char* s)
{
long long x = 0;
int i;
for (i = 0; s[i] != 0; i++) {
x += s[i] - 'a';
x = x << 5;
}
return x % HASH;
}
int lex_smaller(char* s1, char* s2)
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328746/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328746/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.List = type { ptr, ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define N 200000
#define L 10
int compare(const void *a, const void *b) {
char *s = *(char **) a;
char *t = *(char **) b;
return strcmp(s, t);
}
int main() {
static char s[L + 1], *ss[N];
int n, i, j, k;
scanf("%d", &n);
for (i = 0; i < n; i++) {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328797/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328797/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@main.s = internal global [... |
#include <stdio.h>
int main () {
long long int i, n;
int p = 2;
scanf("%lld", &n);
while(n--) {
scanf("%lld", &i);
if(i%2 == 0) {
if (p == 2) {
p = 1;
} else {
p = 2;
}
printf("%d\n", p);
} else {
printf("%d\n", p);
}
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_32884/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_32884/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include <ctype.h>
#include <stdint.h>
#include <string.h>
#include <wchar.h>
#include <math.h>
#define N_MAX (100)
#define P_MAX (100)
#define DP_ARRAY_SIZE (N_MAX * P_MAX / 32 + 1)
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328898/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328898/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#define N_MAX 100000
#define A_MAX 100000
int parse(char *text);
int main(void)
{
int i, n, max, cnt;
int count[A_MAX+2];
char buf[7];
for(i=0;i<A_MAX+1;i++) {
count[i] = 0;
}
scanf("%d%*c", &n);
i = 0;
while(1) {
int flag = 0;
scanf("%c", &buf[i]);
if(buf[i] == ' ' || buf[i] ==... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328940/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328940/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n, i, j, cnt = 0;
char r[21];
char b[11];
scanf("%s", b);
scanf("%d", &n);
for (i = 0;i < n;i++) {
scanf("%s", r);
strcat(r, r);
if (strstr(r, b) != NULL) {
cnt += 1;
}
}
printf("%d\n", cnt);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328991/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328991/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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;
scanf("%d",&T);
for(i=1;i<T+1;i++){
if(i>1 && i<=T){
printf("that ");
}
if(i%2==1){
printf("I hate ");
}
else if(i%2==0){
printf("I love ");
}
if(i==T){
prin... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_32907/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_32907/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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(){int n,m;scanf("%d",&n);m=ceil((-1+sqrt(1+8*n))/2);printf("%d\n",m);n-=m;while(n>0){m--;if(n-m>=0){printf("%d\n",m);n-=m;}}} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329163/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329163/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int n,m,i,j,k,y,w;
int _money,money,charge;
double inter;
int moneyMax;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&_money);
scanf("%d",&y);
scanf("%d",&m);
moneyMax=-1;
for(j=0;j<m;j++){
money=_money;
scanf("%d %lf %d",&w,&inter,&charge);
if(w){
for(k=0;k<y;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329206/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329206/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int n,i,x=0,y=0;
long long a[100000],b=1;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%lld",&a[i]);
if(a[i]==0) x=1;
}
if(x==1) printf("0\n");
else{
for(i=0;i<n;i++){
if(a[i]<=1000000000000000000/b) b*=a[i];
else{
printf("-1\n");
return 0;
}
}
printf("%lld\n... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329257/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329257/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int n,i=1;
scanf("%d",&n);
if(n==1)
{
printf("I hate it ");
}
else
if(n==2)
{
printf("I hate that I love it ");
}
else
{
while(i<n)
{
if(i%2==0)
printf("I love that ");
else
printf("I hate that... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_32930/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_32930/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
#define MOD 1000000000000000000
int main()
{
int N;
scanf("%d",&N);
long A[N],temp=1,temp2;
int flag=0;
for(int i=0;i<N;i++){
scanf("%ld",&A[i]);
if(A[i]==0){
flag=1;
}
}
if(flag==1){
temp=0;
}else{
for(int i=0;i<N;i++){
if(temp > MOD || (A[i]>MOD/te... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329343/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329343/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main() {
long long n, ans = 1;
scanf("%lld", &n);
long long a[100000], b = 1000000000000000000;
for (int i = 1; i <= n; i++) { scanf("%lld", &a[i]); }
for (int i = 1; i <= n; i++) {
if (a[i] == 0) { printf("0"); return 0; }
}
f... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329387/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329387/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
long long int NUM = 1000000000000000000;
int main(){
int n;
int flag = 1;
long long int ans = 1;
scanf("%d",&n);
for(int i=0;i<n;i++){
long long int a;
scanf("%lld",&a);
if(a != 0 && ans > NUM/a){
flag = 0;
ans = 1;
}
else{
ans *= a;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329437/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329437/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@NUM = dso_local local_unna... |
#include<stdio.h>
#include<stdlib.h>
int main(void){
int n;
scanf("%d",&n);
long long int *a;
long long int ans=1;
a=(long long int *)malloc(n*sizeof(long long int));
for(int i=0;i<n;i++){
scanf("%lld",&a[i]);
if(a[i]==0){
printf("0");
return 0;
}
}
for(int i=0;i<n;i++){
if(ans!=0&&10000000000000... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329495/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329495/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int n,x,i,j,p,q,s,a[101][101],b[101][101],ans=-99999;
int main(void){
scanf("%d",&n);
//for(i=0;i<=n;i++){a[0][i]=0;b[i][0]=0;}
for(i=1;i<=n;i++){
for(j=1;j<=n;j++){
scanf("%d",&x);
if(x>ans)ans=x;
a[i][j]=x+a[i-1][j];
b[i][j]=x+b[i][j-1];
}
}
for(i=1;i<=n;i++){
for(p=i;p<=n;p+... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329545/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329545/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ans = dso_local local_unna... |
#include<stdio.h>
int main (void)
{
long long N,cul,bef;
char c;
int i;
long long count=0;
long long max=0;
scanf("%lld",&N);
scanf("%c",&c);
scanf("%lld ",&bef);
//printf("first :%d\n",bef);
for(i=1;i<N;i++){
scanf("%lld",&cul);
scanf("%c",&c);
//pri... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329589/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329589/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#include <string.h>
#include <stdlib.h>
#include <time.h>
#define pai 3.1415926535
int main(void) {
int N;
scanf("%d", &N);
int H[100000];
for (int i = 0; i < N; i++) {
scanf("%d", &H[i]);
}
int count = 0;
int max = 0;
for (int i = 0; i < N-1; i++) {
if (H[i] >= H[i + ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329631/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329631/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 NEW(p,n){p=malloc((n)*sizeof(p[0]));if(p==NULL){printf("not enough memory\n");exit(1);};}
//pの型の変数n個の要素分のメモリを確保し、そのアドレスをpに代入するマクロ
int main(void){
int N;
scanf("%d",&N);
int* H;
NEW(H,N+1); //Hi→H[i]とする、添字範囲0~N
for(int i=1;i<=N;i++){
scanf("%d",... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329675/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329675/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int n;
scanf("%d", &n);
int max = 0, cnt = 0;
int cell_now, cell_next;
scanf("%d", &cell_now);
int i;
for(i=1; i<n; i++){
scanf("%d", &cell_next);
if(cell_next <= cell_now){
cnt++;
}else{
if(cnt > max){
max = cnt;
}
cnt = 0... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329718/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329718/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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[100001];
int main(){
int n,i,max,max1;
scanf("%d",&n);
for(i=0;i<n;++i){
scanf("%d",&a[i]);
if(i==0){
max=0;
max1=0;
}
else{
if(a[i]<=a[i-1])
++max1;
else{
if(max1>max)
max=max1;
max1=0;
}
}
}
if(max... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329761/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329761/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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,m=0,c=0,i;
scanf("%d %d",&n,&b);
for(i=1;i<n;i++){
scanf("%d",&a);
if(b>=a)c++;
else c=0;
if(c>m)m=c;
b=a;
}
if(c>m)m=c;
printf("%d\n",m);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329804/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329804/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ll long long
#define rep(i,l,r)for(int i=(l);i<(r);i++)
#define INF ((1LL<<62)-(1LL<<31))
#define min(p,q)((p)<(q)?(p):(q))
ll gcd(ll p,ll q){for(ll t;q;)t=p%q,p=q,q=t;return p;}
ll exgcd(ll p,ll q,ll*x,ll*y){
ll tx,ty,t,x2=0,y2=1;
*x=1;*y=0;
while(q){
tx=*x-p/q*x2;*x... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329848/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329848/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
long calc(long max, long count) {
int i;
long mx = 0, mn = 0;
//for(i = 1;i < count;i++) mn += i;
mn = (count - 1) * count / 2;
mx = max * count - mn;
return mx - mn + 1;
}
int main(void) {
int n, k;
scanf("%d %d", &n, &k);
if(k > n) {
printf("1\n");
return 0;
}
int... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329899/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329899/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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){
long long int n,k,i,j,min = 0,sum = 0;
scanf("%lld%lld",&n,&k);
for(i=0;i<k-1;i++){
min += i;
}
for(i=k;i<=n+1;i++){
min += i-1;
sum += i*n - 2*min +1;
}
printf("%lld",sum%(1000000000 +7));
r... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329949/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329949/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 MIN(x,y) (((x) > (y)) ? (y) : (x))
#define ABS(x) ((x) >= 0 ? (x) : (-(x)))
long long sum_f[200010];
int P = 1000000007;
int main() {
int n, k;
scanf("%d %d", &n, &k);
for (int i = 1; i <= n + 1; i++) {
sum_f[i] = sum_f[i - 1] + i;
}
long long sum = 0;
for (int i = k; i <= n ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329992/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329992/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@P = dso_local local_unname... |
#include<stdio.h>
#include<string.h>
int main()
{
char s[10000];
scanf(" %[^\n]",s);
printf("%c",s[0]);
for(int i=0;i<strlen(s);i++){
if(s[i]==' '){
printf("%c",s[i+1]);
}
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330033/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330033/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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 string1[15],string2[150],string3[15];
scanf("%s %s %s",string1,string2,string3);
printf("%c%c%c",string1[0],string2[0],string3[0]);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330077/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330077/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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 a[101];
char b[101];
char c[101];
int t;
scanf("%d",&t);
for(int i=0;i<t;i++)
{
scanf("%s",a);
scanf("%s",b);
scanf("%s",c);
int flag=0;
for(int i=0;a[i]!=NULL;i++)
{
if(c[i]!=b[i] && c[i]!=a[i])
{
flag=1;
}
}
if(flag==1)
{
printf("NO\n");
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33012/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33012/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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(){
char a[100],b[100],c[100];
scanf("%s %s %s",&a,&b,&c);
printf("%c%c%c\n",a[0],b[0],c[0]);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330206/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330206/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
char a[105], b[105], c[105];
int main()
{
int t;
scanf("%d", &t);
for(int loop=1;loop<=t;loop++)
{
scanf("%s", a); getchar();
scanf("%s", b); getchar();
scanf("%s", c); getchar();
int ok = 1;
for(int i=0;i<strlen(a);i++)
{
if(a[i]==b[i]&&(a[i]!=c[i]))
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33025/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33025/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 X, A, B;
scanf("%d %d %d", &X, &A, &B);
int T, Y;
T = A - X;
Y = B - X;
if ( T < 0 ) {
T *= -1;
}
if ( Y < 0 ) {
Y *= -1;
}
if (T < Y) {
printf("A");
} else {
printf("B");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330307/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330307/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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,a,b;
scanf("%d%d%d",&x,&a,&b);
int la = (x-a)*(x-a);
int lb = (x-b)*(x-b);
if(la < lb)
{printf("A\n");}
else
{printf("B\n");}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330394/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330394/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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,a,b,d1,d2;
scanf("%d%d%d",&x,&a,&b);
d1=x-a;
if(d1<0) d1=d1*(-1);
d2=x-b;
if(d2<0) d2=d2*(-1);
if(d1<d2) printf("A");
else printf("B");
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330459/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330459/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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;
int b;
int c;
int d;
int e;
scanf("%d%d%d",&a,&b,&c);
if(b>a){
d=b-a;
}else{
d=a-b;
}
if(c>a){
e=c-a;
}else{
e=a-c;
}
if(d>e){
printf("B");
}else{
printf("A");
}
return 0... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330509/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330509/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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,a,b,la,lb;
scanf("%d %d %d",&x,&a,&b);
la=x-a;
if(la<0)la=-1*la;
lb=x-b;
if(lb<0)lb=-1*lb;
if(la>lb){
printf("B");
}else{
printf("A");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330574/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330574/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x,y,total;
scanf("%d%d",&x,&y);
if(y%2==0)
{
total=x+(y/2);
printf("%d\n",total);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330617/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330617/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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", b / 2 + a);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330660/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330660/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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,A,C;
scanf("%d %d",&X,&Y);
A=Y/2;
C=X+A;
printf("%d\n",C);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330703/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330703/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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",A+B/2);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330754/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330754/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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", a + b / 2);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330798/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330798/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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;
int Y;
scanf("%d",&X);
scanf("%d",&Y);
int cost = X + Y/2;
printf("%d",cost);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330840/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330840/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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;
int y;
scanf("%d %d",&x,&y);
printf("%d",x+(y/2));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330884/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330884/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int X, Y;
scanf("%d %d%*c", &X, &Y);
printf("%d\n", X + Y / 2);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330941/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330941/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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",X+(Y/2));
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330985/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330985/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 X, Y;
scanf("%d %d", &X, &Y);
printf("%d", X + Y/2);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331027/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331027/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a,b;
int ans;
//データの読み込み
scanf("%d %d",&a,&b);
// printf("nは%dです\n", n);
// printf("データの読み込み終了\n");
//実際の処理
ans = a+b/2;
// printf("計算部分終了\n");
//出力
printf("%d",ans);
// printf("結果の出力終了\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331070/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331070/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <stdbool.h>
#include <math.h>
#include <limits.h>
int main(void){
int h,w,black=0;
scanf("%d%d",&h,&w);
char s[h][w+2];
int cost[h*w][h*w];
for (int i=0; i<h; i++){
scanf("%s",s[i]);
}
for (int i=0; i<h; i++){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331113/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331113/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a[26],b[26];
int main(){
char s[100];
char p[100];
scanf("%s",s);
scanf("%s",p);
for(int i=0;i<strlen(s);i++){
char f[100]={'\0'};
for(int j=0;j<strlen(p);j++){
if(i+j>=strlen(s)){
f[j]=s[i+j-strlen(s)];
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331164/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331164/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
int main()
{
int i, j, k;
char s[101], p[101];
scanf("%s%s", s, p);
int len_s = strlen(s);
for( i = 0, j = 0, k = i; s[i]; k = ++i, j = 0 ){
while( s[k] == p[j] ){
k = (k + 1) % len_s;
if( p[++j] == '\0' ){ printf("Yes\n"); re... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331207/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331207/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[101],p[101],s2[201];
int i,ck;
scanf("%s",s);
scanf("%s",p);
strcpy(s2,s);
strcat(s2,s);
i=0;
ck=0;
while((strlen(p)+i) <= (strlen(s2)))
{
if(strncmp(&s2[i],p,strlen(p))==0)
{
ck=1;
break;
}
i++;
}
if(ck)
printf(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331258/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331258/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ch[101],ptn[100],rnkt[1000];
scanf("%s %s",&ch,&ptn);
strcpy(rnkt,ch);
strcat(rnkt,ch);
if(strstr(rnkt,ptn)!=NULL) printf("Yes\n");
else printf("No\n");
return(0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331300/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331300/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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],p[100],r[200];
scanf("%s",s);
scanf("%s",p);
strcpy(r,s);
strcat(r,s);
if(strstr(r,p)) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331359/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331359/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
int main(void)
{
char s[100], p[100], add[200];
scanf("%s", &s);
scanf("%s", &p);
strcpy(add, s);
strcat(add, s);
printf(strstr(add, p) != NULL ? "Yes\n" : "No\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331452/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331452/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
int main(){
char s[201];
char p[101];
char temp[101];
scanf("%s %s", s, p);
strcpy(temp, s);
strcat(s,temp);
if(strstr(s, p)){
printf("Yes\n");
}else{
printf("No\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331496/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331496/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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.