Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include<stdio.h>
//int debt[10001][2];
int tot[10001]={0};
int main()
{
int n,m,i,j,x,y,z,ans=0;
scanf("%d%d",&n,&m);
for(i=0;i<m;i++)
{
scanf("%d%d%d",&x,&y,&z);
tot[x]-=z;
tot[y]+=z;
}
for(i=1;i<=n;i++)
{
if(tot[i]>0)
ans+=tot[i];
}
pri... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_3275/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_3275/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@tot = dso_local local_unnamed_... |
#include<stdio.h>
#include<math.h>
#include<string.h>
int main()
{
int n;
scanf("%d",&n);
int a[n];
int max=0;
for(int i=0;i<n;i++)
{
scanf("%d",&a[i]);
if(a[i]>max) max=a[i];
}
int count=0;
int ct=0;
for(int i=0;i<n;++i)
{
//printf("%d",a[i]);
if(a[i]==max) ct++;
else
{
if(ct>count)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_32755/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_32755/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <stdlib.h>
long long i,a[200000][2],x,n,k;
long long w;
int main()
{
scanf("%I64d%I64d", &n, &k);
for(i=0; i<n; i++)
{
a[i][0]=k+1;
a[i][1]=-1;
}
for(i=0; i<k; i++)
{
scanf("%I64d", &x);
x--;
if(a[x][0]==k+1)a[x][0]=i;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_32760/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_32760/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 N 100
int n, G[N][N];
int d[N];
void wfs(int a, int len)
{
int i;
len++;
d[a] = len;
for(i = 0; i < n; i ++)
{
if(G[a][i] == 1)
{
if(d[i] <= len && d[i] >= 0)
{
continue;
}
wfs(i, len);
}
}
}
int main()
{
int i, j, k, u, v;
scanf("%d", &n)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_327650/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_327650/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@d = dso_local local_unname... |
#include<stdio.h>
int main()
{
int n,h,m,i,j;
scanf("%d%d%d",&n,&h,&m);
int arr[n];
for(i=0;i<n;i++)
{
arr[i] = h;
}
for(i=0;i<m;i++)
{
int l,r,mh;
scanf("%d%d%d",&l,&r,&mh);
for(j=l-1;j<r;j++)
{
if(arr[j] > mh)
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_32773/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_32773/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 a,j,count=0,i;
scanf("%d",&a);
for(i=1;;i++){
for(j=a;j>=1;j--){
if(a%j==0){
count++;
}
if(count>2){
break;
}
}
if(count==2){
break;
}
a=a+1;
count=0;
}
if(count==2){
printf("%d",a);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_327773/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_327773/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d",&x);
int j;
while (x <= 1000000)
{
j = 2;
while (j <= x)
{
if (x == j)
{
printf("%d",j);
return (0);
}
else if (x % j == 0)
{
break;
}
j++;
}
x++;
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_327816/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_327816/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
#define maxlen 105
#define alph 26
#define maxp 30
#define maxn 10002014
typedef long long ll;
char a[maxlen], c[maxlen];
int len_a, len_c, b, d;
int next[maxlen][alph];
int to[maxlen];
int used[maxlen];
int f[maxn], cnt, p;
ll sum[maxn];
ll pos[maxlen][maxp];
ll maxsum;
int m... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_32786/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_32786/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 maxn 100010
int cnt;
int p[maxn], np[maxn];
void init() {
int i, j;
for (i = 2; i < maxn; ++i) {
if (!np[i]) {
p[++cnt] = i;
for (j = i + i; j < maxn; j += i)
np[j] = 1;
}
}
}
void solve() {
int n, i;
scanf("%d", &n);
for (i = 1; i <= cnt; ++i) {
if (n <= p[i]) {
prin... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_327902/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_327902/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@np = dso_local local_unnam... |
#include <stdio.h>
int main(void){
long X;
int flag;
scanf("%ld",&X);
flag = 0;
while(flag == 0){
flag = 1;
for(long i = 2; i < X; i++){
if(X%i==0){
flag = 0;
break;
}
}
if(flag == 0){
X++;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_327946/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_327946/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,in,sum=0,i;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&in);
in=(in-1)%2;
sum=(sum+in)%2;
if(sum==0){
printf("2\n");
}
else{
printf("1\n");
}
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_32801/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_32801/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
#include<stdlib.h>
typedef long long int lli;
typedef char bool;
typedef int item;
typedef struct _cell
{
item car;
struct _cell *cdr;
} cell;
#define NULL_ITEM 0;
cell* make_cell(item val);
void delete_cell(cell* cp);
cell* cons(item val,cell* cp,bool *err);
item pop(cell** cpp, bool *err);
i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328053/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328053/source.c"
target datalayout = "e-m:e-p270: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._cell = type { i32,... |
#include<stdio.h>
#include<stdlib.h>
int cmp(const void *a, const void *b){
return *(int *)a - *(int *)b;
}
int main(){
int n,m,i,j;
scanf("%d%d", &n, &m);
int a[n],tmp[m][2];
for(i=0;i<n;i++){
scanf("%d", &a[i]);
}
for(i=0;i<m;i++){
scanf("%d%d", &tmp[i][1], &tmp[i][0]);
}
qsort(a,n,sizeof(in... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328110/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328110/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <stdbool.h>
typedef long long LL;
typedef long double Lf;
#define Rep(i,a,n)for(int i=(int)(a);i<(int)(n);i++)
#define rep(i,n)Rep(i,0,n)
#define Repp(i,l,r,k)for(int i=(l);i<(r);i+=(k))
#define Ma(x,y) ((x)>(y)?(x):(y))
#define mi(x,... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328161/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328161/source.c"
target datalayout = "e-m:e-p270: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.fac = type { i64, i... |
#include <stdio.h>
int main() {
int i;
int n, N;
int pre = 0;
scanf("%d", &n);
N = n;
for (i = 2; i * i <= n; ) {
if (n % i == 0) {
n /= i;
if (pre != i) {
pre = i;
N = N / i * (i - 1);
}
} else {
++i;
}
}
if (pre != n) {
N = N / n * (n - 1);
}
printf("%d\n", N);
return 0;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328219/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328219/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int a,b,c;
scanf("%d %d",&a,&b);
if(a>12)c=b;
else if(a>5)c=b/2;
else c=0;
printf("%d",c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328262/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328262/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,n,i,j;
scanf("%d%d",&a,&n);
if(a>=13)
{
printf("%d\n",n);
}
else if(a>=6 && a<=12)
{
printf("%d\n",n/2);
}
else
printf("0\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328305/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328305/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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)
b/=2;
if(a<6)
b=0;
printf("%d\n", b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328349/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328349/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ll long long
ll ppl[101];
int main()
{
ll n, m, i;
scanf("%lld %lld",&n,&m);
for(i = 0; i < m; ++i){
ll sender, reciever, amt;
scanf("%lld %lld %lld", &sender, &reciever, &amt);
ppl[sender] -= amt;
ppl[reciever] += amt;
}
ll total = 0;
for(i = 0; i <= n; ++i)
if(ppl[i] > 0)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_3284/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_3284/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr co... |
#include <stdio.h>
int main(void){
// Your code here!
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
printf("%d\n", 0);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328442/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328442/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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",0);
}
else
{
printf("%d\n",b/2);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328486/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328486/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int A;
int B;
scanf("%d %d",&A,&B);
if(A>=13){
printf("%d\n",B);
}else if(A<=12&&A>=6){
printf("%d\n",B/2);
}else{
printf("0\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328529/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328529/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>12){
printf("%d",b);
}
else if (a<6){
printf("0");
}
else{
printf("%d",b/2);
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328572/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328572/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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<=12 && 6<=a) {
printf("%d\n",b/2);
}else if(a<6){
printf("0\n");
}else{
printf("%d\n",b);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328615/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328615/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <= 5)
{
printf("0");
}
else
{
printf("%d",b / 2);
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328659/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328659/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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",B);
}
else if (A <= 12 && A >= 6) {
printf("%d",B / 2);
}
else {
puts("0");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328701/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328701/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
// Defining comparator function as per the requirement
static int myCompare(const void* a, const void* b)
{
// setting up rules for comparison
return strcmp(*(const char**)a, *(const char**)b);
}
// Function to sort the array
void sort(cha... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328781/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328781/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n;
char arr[200010][11];
int a[200010];
int c;
int maxx;
int compare(const void *a, const void *b)
{
return strcmp(a, b);
}
int main(void)
{
int i;
scanf("%d", &n);
for(i = 0; i < n; i++)
{
scanf("%s", arr[i]);
}
qsort((void *) arr, n, size... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328824/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328824/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
#include<stdbool.h>
#include<assert.h>
typedef long long ll;
typedef long double ld;
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k))
#define rrep(i,l,r)for(ll i=(l);i>=(r);i--)
#define INF (1LL<<60)
#defin... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328875/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328875/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#if 0
cat <<EOF >mistaken-paste
#endif
// thanks for @rsk0315_h4x
#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
#def... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328918/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328918/source.c"
target datalayout = "e-m:e-p270: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.hwll = type { i64, ... |
#include <stdio.h>
int main(void){
int n, i, j, k, len=0, count=0, flag;
char seek[12], ring[12];
scanf(" %s", seek);
scanf(" %d", &n);
while(seek[len] != '\0') ++len;
for(i=0; i<n; i++){
scanf(" %s", ring);
flag=0;
for(j=0; j<10 && flag==0; j++) {
flag=1;
for(k=0; k<len; k++){
if(ring[(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_328969/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_328969/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 c[11], c1[11], c2[21], *p, *p1;
int cnt = 0, n, a1;
scanf("%s",c);
fflush(stdin);
scanf("%d",&n);
for(a1 = 1; a1 <= n; a1++){
scanf("%s",c1);
strcpy(c2, c1);
strcat(c2, c1);
p = &c2[0];
p1 = strstr(p, c);
if(p1 != NULL)
cnt++;
}
pr... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329047/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329047/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
// Aizu Vol-5 0582: Triangle Types
// 2017.8.30 bal4u@uu
#include <stdio.h>
int main()
{
int a, b, c, t;
int sa, sb, sc;
sa = sb = sc = 0;
while (1) {
scanf("%d%d%d", &a, &b, &c);
if (a + b <= c || b + c <= a || c + a <= b) break;
if (c < a) t = c, c = a, a = t;
if (c < b) t = c, c = b, b = t;
t = a*a ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329104/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329104/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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
#define TBMod 1000000007
int main(int argc, char const *argv[])
{
int n,point[500007],pat[500007] = { 0 };
int sum = 0,i = 1;
scanf("%d",&n);
for (i = 1; (i <= n &... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329155/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329155/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d",&n);
if(n==2)
printf("I hate that I love it\n");
if(n>2&&n%2==1)
{
for(i=1;i<=(n/2);i++)
{
printf("I hate that I love that ");
}
}
if(n>2&&n%2==0)
{
for(i=1;i<=((n/2)-1);i++)
{
printf("I hate... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_32922/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_32922/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
int main(void){
int n;
long long a[100005];
scanf("%d", &n);
for(int i=0;i<n;i++){
scanf("%lld", &a[i]);
}
int zero = 0;
for(int i=0;i<n;i++) if(a[i]==0) zero++;
if(zero>0){
printf("0\n");
return 0;
}
long long prod = 1;
for(int i=0;i<n;i++){
if(a[i] <= 10... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329263/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329263/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/* abc_170_a */
#include<stdio.h>
#include<math.h>
int main()
{
int N;
int i;
int zero=0;
long long s;
long long A[100000];
scanf("%d",&N);
s=1;
for(i=0;i<N;i++){
scanf("%lld",&A[i]);
}
for(i=0;i<N;i++){
if(A[i]==0) zero++;
}
if(zero>0){
printf("0\n");
return 0;
}
for(i=0;i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329306/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329306/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 HATE "I hate"
#define LOVE "I love"
#define THAT "that "
#define IT "it"
int main()
{
int n,i;
scanf("%d",&n);
for(i=1;i<n;i++)
{
if(i%2)
{
printf(HATE);
}
else
{
printf(LOVE);
}
printf(" ");
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_32935/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_32935/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
#include <stdlib.h>
#include <stdbool.h>
#define inf ((1LL << 62) - 50)
#define clr(ar) memset(ar, 0, sizeof(ar))
#define read() freopen("lol.txt", "r", stdin)
struct Friend{
int money, monitor, pbitmask;
};
int f, n, lim;
struct Friend ar[101];
long long int b, fuck[101], ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_32940/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_32940/source.c"
target datalayout = "e-m:e-p270: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.Friend = type { i32, ... |
#include<stdio.h>
#define MAX 1000000000000000000
int main(){
int n,i,flag=0;
unsigned long long a[100001]={0},an;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%llu",&a[i]);
}
an=a[0];
for(i=1;i<n;i++){
if(a[i]==0){
flag=1;
}
an=an*a[i];
}
if(an>MAX){
printf("-1");
}else if... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329443/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329443/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
long long int ans = 1, tmp, tmp2;
int n, i,f = 0;
scanf("%d", &n);
for (i = 0; i < n; i++)
{
scanf("%lld", &tmp);
tmp2 = ans;
ans *= tmp;
if (tmp == 0)
{
printf("0");
return (0);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329487/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329487/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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()
{
long n,x,k,i;
long f[100005],flag;
//memset(f,0,sizeof(f));
for (i=1;i<100005;i++)
f[i]=-1;
scanf("%ld",&n);
flag=1;
for (i=1;i<=n;i++)
{
scanf("%ld %ld",&x,&k);
if (f[k]+1<x) { flag=0;
//br... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_32953/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_32953/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 ans = 0, max = 0;
int n;
scanf("%d", &n);
int h[n];
for (int i = 0; i < n; i++)
{
scanf("%d", &h[i]);
if (i != 0)
if (h[i] <= h[i - 1])
max++;
else
{
if (max > ans)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329580/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329580/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d",&n);
int a[n+5],max=0,cnt=0;
for(i=1;i<=n;i++)
scanf("%d",&a[i]);
for(i=1;i<n;i++)
{
if(a[i]>=a[i+1]){
cnt++;
if(max<cnt)
max=cnt;
}
else
{
cnt=0;
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329623/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329623/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,h[100000],i,r=0,q=0;
int main(){
scanf("%d",&n);
for(i=0;i<n;i++)scanf("%d",&h[i]);
for(i=-1;i<n-2;q=0){
while(h[++i]>=h[i+1]){
q++;
if(i>n-3)break;
}
if(r<q)r=q;
}
printf("%d",r);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329667/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329667/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@r = dso_local local_unname... |
#include <stdio.h>
#include <stdlib.h>
int map[1010][1010];
int a[2500];
int main()
{
int n,k,i,j,t;
scanf("%d%d",&n,&k);
if(k>=n)
{
printf("-1\n");
return 0;
}
t=n-k;
if(k>=t)
{
printf("-1\n");
return 0;
}
for(i=1;i<=n;i++)
a[i]=i;
for... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_32971/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_32971/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,count=0,tmp,j;
scanf("%d",&n);
int h[n];
for(int i=0;i<n;i++){
scanf("%d ",&h[i]);
}
for(int i=0;i<n-1;i++){
if(count>n-i)break;
tmp=0;
j=0;
while(h[i+j]>=h[i+j+1]){
tmp++;
j++;
if(i+... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329753/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329753/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
long i;
long count;//連続してる数を数える
long max=0;//最大値を求める
long N;
scanf("%ld", &N);
long long H[N];
for(i=0; i<N; i++){
scanf("%lld", &H[i]);
}
count=0;
for(i=0; i<=N-2; i++){
if(H[i]>=H[i+1]){
count++;
if(i==N-2 && count>max){
max=co... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329797/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329797/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 int a[1000005]={0},min;
int main()
{
int i,j,n,m,c,d,e,f,k,l=0;
scanf("%d%d",&c,&d);
scanf("%d%d",&n,&m);
scanf("%d",&k);
if(n*m-k>0)
{
e=(n*m-k)/n;
f=n*m-k;
for(i=0;i<=e+1;i++)
{
for(j=0;j<=f;j++)
{
i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_32984/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_32984/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@a = dso_local local_unnamed_... |
#include <stdio.h>
int main()
{
long long int n, k, i, count = 0, min, sumn, max;
scanf("%lld %lld", &n, &k);
sumn = n * (n + 1) / 2;
for(i = k; i <= n + 1; i++)
{
min = i * (i - 1) / 2;
max = sumn - (n - i) * (n - i + 1) / 2;
count += (max - min + 1) % 1000000007;
co... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329883/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329883/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 BUFSIZE 1000000007
typedef long long ll;
int N,K;
ll rem=0;
ll Sum(ll num){
ll sum1,sum2 = 0;
if(num == N+2)
return 0;
sum1 = num*(num-1)/2;
sum2 = num*(2*(N-num+1)+(num-1))/2;
rem += sum2 - sum1 + 1;
rem %= BUFSIZE;
Sum(num+1);
retur... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329926/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329926/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@rem = dso_local local_unna... |
#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
#define MIN(a,b) ((a)<(b)?(a):(b))
typedef long long ll;
int main()
{
int t;
scanf("%d", &t);
for (int i = 0; i < t; i++)
{
char a[128], b[128], c[128];
scanf("%s%s%s", a, b, c);
int bOK = 1;
for (in... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_32997/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_32997/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 ... |
//set many funcs template
//Ver.20190820
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<stdbool.h>
#include<time.h>
#include<assert.h>
#define inf 1072114514
#define llinf 4154118101919364364
#define mod 1000000007
#define pi 3.1415926535897932384
int max(int a,int b){if(a>b){return a;}return b;}
int... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330010/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330010/source.c"
target datalayout = "e-m:e-p270: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.sd = type { i32, i3... |
#include <stdio.h>
int main()
{
char s[3][101];
scanf("%s %s %s",s[0],s[1],s[2]);
printf("A%cC\n",s[1][0]);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330104/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330104/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a[100],b[100],c[100];
scanf("%s %s %s",&a,&b,&c);
printf("%.1s%.1s%.1s",a,b,c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330148/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330148/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
int main(){
char a[20000];
scanf("%s",a); printf("%c",a[0]);
scanf("%s",a); printf("%c",a[0]);
scanf("%s",a); printf("%c",a[0]);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330199/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330199/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
char a[101],b[101],c[101];
scanf("%s %s %s",a,b,c);
printf("%c%c%c\n",a[0],b[0],c[0]);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330249/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330249/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 value1(int A);
int value2(int B);
int main(){
int x,a,b,A,B;
scanf("%d %d %d",&x,&a,&b);
A=(x-a);
B=(x-b);
value1(A);
value2(B);
if(value1(A)>value2(B)){
printf("B\n");
}
else{
printf("A\n");
}
return 0;
}
int value1(int A){
if(A<0)
return(A*-1);
else
return(A);
}
int value2(int B){
if(B<0... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330292/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330292/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include<string.h>
int main()
{
int t;
scanf("%d",&t);
while(t--)
{
int n,i;
char a[101],b[101],c[101];
scanf("%s",a);
scanf("%s",b);
scanf("%s",c);
n=strlen(a);
for(i=0;i<n;)
{
if(c[i]==a[... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33035/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33035/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 X, A, B, a, b;
char c;
int main(){
scanf("%d%d%d", &X, &A, &B);
a = X>A?X-A:A-X;
b = X>B?X-B:B-X;
c = a>b?'B':'A';
printf("%c\n", c);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330407/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330407/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
a=x-a;
b=x-b;
if(a<0) a=-a;
if(b<0) b=-b;
if(a<b) printf("A");
else printf("B");
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330450/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330450/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 def(int a, int b) {
if (a > b) return a - b;
else return b - a;
}
int main(void) {
int x, a, b;
scanf("%d %d %d", &x, &a, &b);
if (def(x, a) > def(x, b)) printf("B\n");
else printf("A\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330522/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330522/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
int main(){
int a ,b,x;
scanf("%d%d%d",&x,&a,&b);
if(abs(x-a)<abs(x-b)) printf("A");
else printf("B");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330588/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330588/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
#include <limits.h>
#include <stdbool.h>
#define rep(i, n) for(int i=0; i<(n); ++i)
#define max 200001
//qsort(str, n, sizeof(int), up_comp);
int up_comp(const void *a, const void *b){return *(int*)a - *(int*)b;}
int down_comp(const void *a... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330638/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330638/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_330696/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330696/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main (void)
{
int x,y;
scanf("%d%d",&x,&y);
printf("%d",x + y/2);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330739/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330739/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
int x,y;
scanf("%d%d",&x,&y);
printf("%d",x+y/2);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330782/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330782/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, n;
scanf("%d %d", &X, &Y);
n = X + Y / 2;
printf("%d", n);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330832/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330832/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 train, bus, fee;
scanf("%d%d", &train, &bus);
fee = train + bus / 2;
printf("%d\n", fee);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330876/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330876/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
int x,y;
scanf("%d %d",&x,&y);
printf("%d\n",y/2+x);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330919/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330919/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
b=b/2;
printf("%d\n",a+b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330962/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330962/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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", &x); scanf("%d", &y);
printf("%d", x+(y/2));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331004/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331004/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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\n", x+y/2);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331048/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331048/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/* Coached by rainboy */
#include <stdio.h>
#include <string.h>
#define N 50
#define M 50
int di[] = { -1, 1, 0, 0 };
int dj[] = { 0, 0, -1, 1 };
int main() {
static char cc[N][M + 1];
static int dd[N][M], qq[N * M];
int n, m, i, j, head, cnt;
scanf("%d%d", &n, &m);
for (i = 0; i < n; i++)
scanf("%s", cc[i])... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331099/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331099/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@di = dso_local local_unnam... |
#include <stdio.h>
int main(void){
char s[101],p[101];
int i,j,sn=0,pn=0,t;
scanf("%s %s",s,p);
while(s[sn] != '\0') sn++;
while(p[pn] != '\0') pn++;
for(i=0;i<sn;i++){
t=1;
for(j=0;j<pn;j++)
if(s[(i+j)%sn] != p[j]) t=0;
if(t) break;
}
if( t )
printf("Yes\n");
else
printf... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331149/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331149/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 s[100], p[100], s_[200];
int main(){
int i;
/* scan s & p */
scanf("%s", s);
scanf("%s", p);
strcpy(s_,s);
strcat(s_,s);
strstr(s_,p)!=NULL ? printf("Yes\n") : printf("No\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331206/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331206/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,equal;
char s[101],p[101],scircle[201];
int s_length,p_length;
scanf("%s",s);
scanf("%s",p);
s_length = strlen(s);
p_length = strlen(p);
sprintf(scircle,"%s%s",s,s);
for(i = 0; i < s_length; i++) {
equal = 1;
for(j = 0; j < p_length; j++) {... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331264/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331264/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[200],p[100];
scanf("%s", s);
scanf("%s", p);
int a,b;
a = strlen(s);
b = strlen(p);
int i,j,k;
k = 0;
for ( i = 0 ; i < a ; i++ ){
s[ i + a ] = s[i];
}
for ( i = 0 ; i <= a ; i++ ){
if ( a == i ){
printf("No\n");
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331321/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331321/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
int main(){
int n,p;
scanf("%d",&n);
int a[n];
for(int i = 0;i < n;i++)
scanf("%d",&a[i]);
int b[100];
for(int i = 1;i <= 100;i++)
b[i] = 0;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33138/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33138/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,i,j,m=0,max=0;
scanf("%d",&n);
int a[n],pre[n],freq[n];
for(i=1;i<=n;i++)
{
scanf("%d",&a[i]);
freq[i]=1;
m++;
pre[m]=1;
for(j=1;j<i;j++)
{
if(a[i]==a[j] && freq[i]!=0)
{
pre[... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33143/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33143/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 s[100], s2[100], p[100];
scanf("%s%s",s, p);
strcpy(s2,s);
strcat(s,s2);
if(strstr(s,p)!=0){
printf("Yes\n");
} else{
printf("No\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331480/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331480/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 p[200]={'\0'}, s[100]={'\0'}, c;
int i;
i=0;
while ((c=getchar())!='\n') p[i]=c, i++;
i=0;
while ((c=getchar())!='\n') s[i]=c, i++;
sprintf(p, "%s%s", p, p);
if (strstr(p, s)!=NULL) {
printf("Yes\n");
} else {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331523/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331523/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[])
{
char p[100];
char s[100];
char s1[100];
scanf("%s",s);
scanf("%s",p);
strcpy(s1,s);
strcat(s,s1);
if ( strstr(s, p) == NULL ) printf("No\n");
else printf("Yes\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331581/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331581/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
int main() {
char s[101], p[101], t[201];
scanf("%s", s);
scanf("%s", p);
strcpy(t, s);
strcat(t, s);
if (strstr(t, p) != NULL)
printf("Yes\n");
else
printf("No\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331624/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331624/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 str[201], tmp[101];
char p[101];
int slen, plen;
int i, j, flag;
scanf("%s %s", str, p);
strcpy(tmp, str);
strcat(str, tmp);
slen = strlen(str);
plen = strlen(p);
flag = 0;
for (i = 0; i < ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331668/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331668/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ans[120],str[120],ring[220];
scanf("%s%s",ring,str);
strcpy(ans,ring);
strcat(ring,ans);
if(strstr(ring,str)!=NULL)
printf("Yes\n");
else
printf("No\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331710/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331710/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[200];
char p[100];
int l,i = 0,j,k;
scanf("%s\n",s);
scanf("%s\n",p);
while(s[i] != '\0') i++;
l = i;
for(i = l;i<l*2;i++){
s[i] = s[i - l];
}
for(i = 0;i < l*2;i++){
if(s[i] == p[0]){
j = 0;
k = i;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331754/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331754/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 DICE 6
#define MAX 100
typedef struct Dice {
int num[DICE];
}Dice;
int main(void) {
int i, j = 0;
int tmp;
char op[MAX];
Dice dice;
for(i=0; i<DICE; ++i) {
scanf("%d", &dice.num[i]);
}
scanf("%s", op);
while(op[j] != '\0') {
switch(op[j++]) {
case 'S' :... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331804/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331804/source.c"
target datalayout = "e-m:e-p270: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.Dice = type { [6 x ... |
#include <stdio.h>
#include <string.h>
int E[6] = {3,0,-2,2,0,-3};
int W[6] = {2,0,3,-3,0,-2};
int S[6] = {4,-1,0,0,1,-4};
int N[6] = {1,4,0,0,-4,-1};
void DICE(char a,int d[],int d2[]){
int i;
if(a == 'E'){
for(i = 0;i < 6; i++){
d2[i] = d[i + E[i]];
}
}
if(a == 'N'){
for(i = 0;i < 6; i++){
d2[i] = d[... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331848/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331848/source.c"
target datalayout = "e-m:e-p270: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>
struct Dice
{
int mae;
int ue;
int migi;
int hidari;
int sita;
int usiro;
};
struct Dice ROLL_E(struct Dice dice)
{
int a = dice.ue;
dice.ue = dice.hidari;
dice.hidari = dice.sita;
dice.sita = dice.migi;
dice.migi = a;
return dice;
}
struct Dice ROLL_N(struct Dice dice)
{
int a = d... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331891/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331891/source.c"
target datalayout = "e-m:e-p270: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.Dice = type { i32, ... |
#include <stdio.h>
//#define DEBUG
typedef struct dice{
int TOP ;
int FRONT ;
int RIGHT ;
int LEFT ;
int BACK ;
int BOTTOM ;
}DICE;
void showdice(DICE *); //???????¢?????????????????????¨??¢??°
void dicescan(DICE *); //??????????????°???????¨???\????????¢??°
void rotateN(DICE *); //N?????¢??¢??° TOP??... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331934/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331934/source.c"
target datalayout = "e-m:e-p270: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.dice = type { i32, ... |
#include <stdio.h>
void N(int dice[6])
{
int holder = dice[0];
dice[0] = dice[1];
dice[1] = dice[5];
dice[5] = dice[4];
dice[4] = holder;
}
void W(int dice[6])
{
int holder = dice[0];
dice[0] = dice[2];
dice[2] = dice[5];
dice[5] = dice[3];
dice[3] = holder;
}
void E(int dice[6])
{
int holder =... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331978/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331978/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,c[1001],a[1001],flag=0,i,j;
scanf("%d%d",&n,&m);
for(i=0;i<n;i++)
scanf("%d",&c[i]);
for(j=0;j<m;j++)
scanf("%d",&a[j]);
j=0;
for(i=0;i<n;i++)
{
// printf("%d\n",a[j]);
if(a[j]>=c[i])
{
flag++;
j++... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33202/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33202/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
#define FACE_LIMIT 6
#define FACE_NUMBER_LIMIT 100
#define COMMAND_LIMIT 100
enum FACE_DIRECTION {
TOP
,FORWARD
,RIGHT
,LEFT
,BACKWORD
,BOTTOM
};
typedef struct {
int number[FACE_LIMIT];
char command[COMMAND_LIMIT];
} Dice;
int InputDice(Dice* dice);
void Move(Dice* di... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332063/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332063/source.c"
target datalayout = "e-m:e-p270: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.Dice = type { [6 x ... |
// AOJ ITP1_11_A Dice I
// 2018.4.29 bal4u
#include <stdio.h>
int rot[5][7] = {
{0,1,2,3,4,5,6},{0,2,6,3,4,1,5},{0,4,2,1,6,5,3},{0,3,2,6,1,5,4},{0,5,1,3,4,6,2}};
int assign[7]; // サイコロの1~6の各面に割り当てる数字
int tr['Z'];
void dice_init(int *a)
{
int i;
int t[5] = {0,'N','E','W','S'};
for (i = 1; i <= 6; ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332113/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332113/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@rot = dso_local local_unna... |
#include <stdio.h>
#include <string.h>
typedef struct{
int top,front,right,left,back,bottom;
}Dice;
void roll(char c,Dice* d){
int tmp;
switch(c){
case 'N':
tmp=d->top;
d->top=d->front;
d->front=d->bottom;
d->bottom=d->back;
d->back=tmp;
break;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332157/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332157/source.c"
target datalayout = "e-m:e-p270: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.Dice = type { i32, ... |
#include <stdio.h>
int n;
char lang[128][128], mat[128][128];
char mark[128];
int dfs(int x)
{
int i;
if ( mark[x] )
return 0;
mark[x] = 1;
for ( i = 0; i < n; ++i )
if ( mat[x][i] )
dfs(i);
return 0;
}
int main()
{
int i, j, k, m, nol = 1;
scanf("%d%d", &n, &m);
for ( i = 0; i < n; ++i )
{
scanf("... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33220/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33220/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@mark = dso_local local_unnam... |
#include <stdio.h>
#include <string.h>
static int d[ 9 ];
static int
solve (
const int r
)
{
int res = 0;
if ( r >= 9 ) return ( 1 );
if ( !d[ r ] ) return solve ( r + 1 );
if ( r + 2 < 9
&& d[ r + 1 ] && d[ r + 2 ] )
{
--d[ r ]; --d[ r + 1 ]; --d[ r + 2 ];
res = solve ( r );
++d[ r... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332265/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332265/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 asc(const void *a, const void *b){
return *(int *)a - *(int *)b;
}
int
main(int argc, char *argv[])
{
int n;
scanf("%d", &n);
int a[100000], b[100000], c[100000];
for(int i = 0; i < n; i++) scanf("%d", &a[i]);
for(int i = 0; i < n; i++) scanf("%d", &b[i]);
for(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332308/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332308/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
int main(void)
{
int a,b[200000],i,j,n=0,m,x,y,z=0;
char c[10100],s[10100];
scanf("%s",&s);
x=strlen(s);
for (size_t i = 0; i < x; i=i+2)
{
if(s[i]=='L') {printf("No"); return 0;}
if(s[i+1]=='R') { printf("No"); return 0;}
}
pr... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332359/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332359/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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.