Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include <stdio.h>
int main(void){
int H, W, i, j;
//scan H and W until 0 0
while(1){
scanf("%d %d", &H, &W);
if (H == 0 && W == 0 )
break;
for ( i = 1; i <= H; i++ ){
for ( j = 1; j <= W; j++ ){
if(i > 1 && i <= H - 1 && j > 1 && j <= W - 1){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100988/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100988/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 H[10000],W[10000],i,j,x,y;
for(i=0;i<10000;i++)
{
scanf("%d %d",&H[i],&W[i]);
if(H[i]==0&&W[i]==0)
break;
}
for(i=0;i<10000;i++)
{
if(H[i]==0&&W[i]==0)
{
break;
}
for(x=0;x<W[i];x++)
{
printf... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101037/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101037/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 H,W,i,j;
while(1){
scanf("%d %d",&H,&W);
if(H==0 && W==0)break;
for(i=1;i<=H;i++){
for(j=1;j<=W;j++){
if(i!=1 && i!=H && j!=1 && j!=W){
printf(".");
}else{
printf("#");
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101080/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101080/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 h, w;
scanf("%d %d", &w, &h);
while (!(h == 0 && w == 0))
{
if (h == 0 && w == 0)
{
break;
}
for (int i = 1; i <= w; i++)
{
for (int j = 1; j <= h; j++)
{
if (i == 1 || j == 1 || i == w || j == h)
{
printf("#");
}
else
{
printf(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101167/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101167/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 input1,input2;
int i,j;
do
{
scanf("%d %d",&input1,&input2);
if(input1 == 0 && input2 == 0)
{
break;
}
for(i = 0 ; i < input1 ; i++)
{
for(j = 0 ; j < input2 ; j++)
{
if(j == 0 || j == input2 - 1)
{
printf("#");
}
el... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101217/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101217/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
void print_frame(int h, int w){
int i, j;
for(j = 0; j < h; j++){
if(j == 0 || j == h - 1){
for(i = 0; i < w; i++)
printf("#");
}else{
for(i = 0; i < w; i++){
if(i == 0 || i == w - 1)
printf("#");
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101260/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101260/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str.3 = private unnamed_a... |
#include <stdio.h>
int main(){
int i,j,n,m;
while(1){
scanf("%d%d",&n,&m);
if(n==0&&m==0){
break;
}
for(i=1;i<=n;i++){
for(j=1;j<=m;j++){
if(i==1||i==n||j==1||j==m) printf("#");
else printf(".");
}
printf("\n");
}
printf("\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101310/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101310/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 H, W;
while(1){
scanf("%d %d",&H,&W);
if(H==0 && W==0) break;
for(int i=1;i<=W;i++){
printf("#");
}
printf("\n");
for(int k=1;k<=H-2;k++){
printf("#");
for(int i=1;i<=W-2;i++){
printf(".");
}
printf("#\n");
}
for(int i=1;i<=W;i++){
printf("#");
}
printf("... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101354/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101354/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
#define max(p,q)((p)>(q)?(p):(q))
#define min(p,q)((p)<(q)?(p):(q))
#define MOD 1000000007
#define INF ((1LL<<62)-(1LL<<31))
int main(void) {
int n,a[401];
//dp[j][j+i]:a[j]~a[j+i]をまとめるためのmin
long dp[402][402] = {0};
long tmp;
long sum;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101404/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101404/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ll long long
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
int main(){
ll a,b,c,r,n;
while(scanf("%lld%lld%lld%lld%lld",&n,&a,&b,&c,&r),n){
int cnt=0;
while(n--){
ll t;
scanf("%ld",&t);
while(cnt<=10010&&r!=t){
r=(a*r+b)%c;
cnt++;
}
r=(a*r+b)%c;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101455/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101455/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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) {
// your code goes here
int n;
scanf("%d",&n);
int a[n+1],b[n+1],i,j,k,l=0,temp1,temp2;
for(i=0;i<n;i++)
scanf("%d%d",&a[i],&b[i]);
a[n]=0;
b[n]=0;
for(i=0;i<n;i++)
{
for(j=0;j<n;j++)
{
if(a[j]>a[j+1])
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_10152/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_10152/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 ... |
// AtCoder ABC126: D - Even Relation
// 2019.9.8 bal4u
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#if 1
int getchar_unlocked(void);
int putchar_unlocked(int c);
#define gc() getchar_unlocked()
#define pc(c) putchar_unlocked(c)
#else
#define gc() getchar()
#define pc(c) putchar(c)
#endif
int in() { ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101563/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101563/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct._IO_FILE = type { i... |
#include <stdio.h>
int main(){
int n,p,a,i,f=0;
long r=1;
scanf("%d%d",&n,&p);
for(i=0;i<n;i++){
scanf("%d",&a);
if(a%2)f=1;
}
if(f)for(i=0;i<n-1;i++)r*=2;
else {
if(p)r=0;
else for(i=0;i<n;i++)r*=2;
}
printf("%ld",r);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101606/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101606/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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() {
//code
int n,i,j,k;
scanf("%d",&n);
int a[n];
int sum=0;
for(i=0;i<n;i++)
{
scanf("%d",&a[i]);
sum+=a[i];
}
int mini=0,flag=0,temp,u,v;
for(i=0;i<n;i++)
{
for(j=i;j<n;j++)
{
u=0;
for(k=i;k<=j;k++)
{
u+=a[k];
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_10165/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_10165/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include<stdlib.h>
int main()
{
int t,n,c0,c1,h,n0,n1,i,ans,temp;
scanf("%d",&t);
while(t--)
{
scanf("%d %d %d %d",&n,&c0,&c1,&h);
char* arr=(char*)malloc((n+1)*sizeof(char));
scanf("%s",arr);
n0=n1=0;
for(i=0;i<n;i++)
{
if(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_10170/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_10170/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 i, j, n, d[101], total = 0;
scanf("%d", &n);
for( i = 0; i < n; i++ ){
scanf("%d", &d[i]);
}
for( i = 0; i < n; i++ ){
for( j = i+1; j < n; j++ ){
total += d[i]*d[j];
}
}
printf("%d\n", total);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101743/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101743/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void) {
int n, d[50], i, j, p=0;
scanf("%d", &n);
for (i=0; i<n; i++) {
scanf("%d", &d[i]);
}
for (i=0; i<(n-1); i++) {
for(j=i+1; j<n; j++) {
p += d[i]*d[j];
}
}
printf("%d\n", p);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101787/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101787/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <stdlib.h>
int main(void)
{
int t;
scanf("%i", &t);
while(t--)
{
int n, k;
scanf("%i %i", &n, &k);
int a[n * k];
for (int i = 0; i < n * k; i++)
{
scanf("%i", &a[i]);
}
int med = ceil((double) n / 2);
int stp = n - med + 1;
long long int... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_10183/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_10183/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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=0,c=0;
int b[10000];
scanf("%d",&a);
for(int i=0;i<a;i++)
{
scanf("%d",&b[i]);
}
for(int j=0;j<a;j++)
{
for(int i=j;i<a-1;i++)
{
c+=b[j]*b[i+1];
}
}
printf("%d",c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101873/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101873/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 d[n], ans=0;
for (int i=0; i<n; i++) scanf("%d", d+i);
for (int i=0; i<n-1; i++) {
for (int j=i+1; j<n; j++) {
ans += d[i]*d[j];
}
}
printf("%d\n", ans);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101916/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101916/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 h, c0, c1, n;
char c;
int sum = 0;
for (int i = 0; i < N; i++) {
scanf("%d%d%d%d\n", &n, &c0, &c1, &h);
sum = 0;
if (c0 > c1 + h) {
for (int j = 0; j < n; j++) {
scanf("%c", &c);
if (c == '1') {
sum += ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_10196/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_10196/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
int main() {
int N;
int d[50];
int i, j, tmp;
int ans = 0;
scanf("%d", &N);
for(i = 0; i < N; i++) {
scanf("%d", &d[i]);
}
for(i = 0; i < N-1; i++) {
for(j = i+1; j < N; j++) {
ans += d[i] * d[j];
}
}
printf("%d\n", ans);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102001/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102001/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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 143-B
// 2019.10.19 bal4u
#include <stdio.h>
int d[105];
int main()
{
int i, j, N, s;
scanf("%d", &N);
for (i = 0; i < N; ++i) scanf("%d", d+i);
s = 0;
for (i = 0; i < N; ++i) for (j = i+1; j < N; ++j)
s += d[i] * d[j];
printf("%d\n", s);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102045/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102045/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 NTL -1
#define M 25
typedef struct tree{
int p;
int l;
int r;
}tree;
void pre(int,tree *);
void in(int,tree *);
void post(int,tree *);
int main(){
int n,i,now,rt;
/*scan n*/
scanf("%d",&n);
tree t[n];
/*NTL*/
for(i=0;i<n;i++){
t[i].p=NTL;
}
/*scan tree*/
for(i=0;i<n... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102089/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102089/source.c"
target datalayout = "e-m:e-p270: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.tree = type { i32, ... |
#define dbg(fmt,...) fprintf(stderr,fmt,__VA_ARGS__)
#define dpri(x) dbg(#x ": %d\n", x)
#define dprs(x) dbg(#x ": %s\n", x)
#include <stdio.h>
#include <string.h>
typedef long long ll;
const int MYINF = 1e9+7;
typedef int bool;
const bool true = 1;
const bool false = 0;
typedef struct node_st {
int par;
int left;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102146/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102146/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node_st = type { i3... |
#include <stdio.h>
#include <stdlib.h>
int main()
{
int T; scanf("%d", &T);
for (int t = 0; t < T; t++){
int n, c0, c1, h; scanf("%d%d%d%d", &n, &c0, &c1, &h);
char *s = (char *)malloc((n+1)*sizeof(char)); scanf("%s", s);
int n0 = 0, n1 = 0, nh = 0;
for (int i = 0; i < n; i++)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_10219/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_10219/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 MAX 30
typedef struct{
int p,l,r;
}Roll;
int PreorderPrint(int,Roll *);
int InorderPrint(int,Roll *);
int PostorderPrint(int,Roll *);
void init(Roll *);
int PreorderPrint(int root,Roll *Tree){
if(root == -1) return -1;
printf(" %d",root);
PreorderPrint(Tree[... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102247/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102247/source.c"
target datalayout = "e-m:e-p270: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.Roll = type { i32, ... |
#include <stdio.h>
typedef struct{
int id;
int left;
int right;
int parent;
} node;
node tree[25];
void inorder(int);
void preorder(int);
void postorder(int);
int main(){
int n,i,j,count,k,m,l,r;
scanf("%d",&n);
for(i=0;i<n;i++) tree[i].parent = -1;
for(i=0;i<n;i++){
scanf("%d",&... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102298/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102298/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node = type { i32, ... |
#include<stdio.h>
#define MAX 100000000
#define NOT -1
struct Node {
int parent,left,right;
};
struct Node T[MAX];
int n;
//???????????????
void preParse(int u){
// printf("a\n");
if(u == NOT) return;
printf(" %d",u);
// printf("sex\n");
preParse(T[u].left);
preParse(T[u].right);
}
//??????
void ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102340/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102340/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.Node = type { i32, ... |
#include <stdio.h>
#define MAX 30
#define NIL -1
struct Node {
int parent;
int left;
int right;
};
void preorder(struct Node *tree, int cur) {
if (cur == NIL) return;
printf(" %d", cur);
preorder(tree, tree[cur].left);
preorder(tree, tree[cur].right);
}
void inorder(struct Node *tree, int cur) {
if (cur == ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102384/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102384/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.Node = type { i32, ... |
#include<stdio.h>
#define MAX 100005
typedef struct {
int p;
int l;
int r;
} Node;
Node np[MAX];
int i;
void Preorder(int i){
printf(" %d",i);
if(i != -1){
if(np[i].l != -1) {
Preorder(np[i].l);
}
if(np[i].r != -1){
Preorder(np[i].r);
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102427/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102427/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.Node = type { i32, ... |
#include <stdio.h>
void pre(int);
void in(int);
void post(int);
typedef struct Node
{
int p;
int l;
int r;
}tree;
tree T[25];
int n;
int main()
{
int i;
int v,l,r,root;
scanf("%d",&n);
for(i=0;i<n;i++)
{
T[i].p=-1;
}
for(i=0;i<n;i++)
{
scanf("%d%d%d",&v,&l,&r);
T[v].l... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102478/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102478/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.Node = type { i32, ... |
#include<stdio.h>
#define MAX 10000
#define NIL -1
struct Node
{
int p, l ,r;
};
struct Node T[MAX];
int n;
void pre(int);
void in(int);
void post(int);
int main()
{
int i, v, l, r, root;
scanf("%d",&n);
for(i = 0; i < n; i++)
{
T[i].p = NIL;
}
for(i = 0; i < n; i++)
{
scanf("%d ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102528/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102528/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.Node = type { i32, ... |
#include<stdio.h>
#define MAX 10000
#define NIL -1
typedef struct {int p, l, r;}Node;
Node T[MAX];
int n;
/*先行順巡回*/
void preParse(int u){
if(u == NIL) return;
printf(" %d", u);
preParse(T[u].l);
preParse(T[u].r);
}
/*中間順巡回*/
void inParse(int u){
if(u == NIL) return;
inParse(T[u].l);
print... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102579/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102579/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.Node = type { i32, ... |
#include <stdio.h>
#define MAX 10000
#define NIL -1
struct Node {int p, l, r;};
struct Node T[MAX];
int n;
/* 先行順巡回 */
void preParse(int u) {
if(u == NIL) return;
printf(" %d",u);
preParse(T[u].l);
preParse(T[u].r);
}
/* 中間順巡回 */
void inParse(int u) {
if(u == NIL) return;
inParse(T[u].l);
printf(" %d"... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102621/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102621/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.Node = type { i32, ... |
#include<stdio.h>
#define MAX 10000
#define NIL -1
typedef struct{
int p,l,r;
}Node;
Node T[MAX];
int n;
void preParse(int u){
if(u == NIL)return;
printf(" %d",u);
preParse(T[u].l);
preParse(T[u].r);
}
void inParse(int u){
if(u == NIL)return;
inParse(T[u].l);
printf(" %d",u);
inParse(T[u].r);
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102665/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102665/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.Node = type { i32, ... |
#include<stdio.h>
#define MAX 100000
#define NIL -1
struct Node { int p, l, r; };
typedef struct Node node;
node T[MAX];
void preParse(int u) {
if ( u == NIL) return;
printf(" %d", u);
preParse(T[u].l);
preParse(T[u].r);
}
void inParse(int u) {
if ( u == NIL ) return;
inParse(T[u].l);
printf(" %d... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102708/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102708/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.Node = type { i32, ... |
#include <stdio.h>
#define MAX 10000
#define NIL -1
struct Node {int p, l, r;};
struct Node T[MAX];
int n;
/* 先行順巡回 */
void preParse(int u) {
if(u == NIL) return;
printf(" %d",u);
preParse(T[u].l);
preParse(T[u].r);
}
/* 中間順巡回 */
void inParse(int u) {
if(u == NIL) return;
inParse(T[u].l);
printf(" %d"... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102751/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102751/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.Node = type { i32, ... |
#include <stdio.h>
#define MAX 10000
#define NIL - 1
int n;
struct Node {
int p, l, r;
};
struct Node T[MAX];
void Preorder (int u) {
if (u == NIL) {
return;
}
printf(" %d", u);
Preorder(T[u].l);
Preorder(T[u].r);
}
void Inorder (int u) {
if (u == NIL) {
return;
}
Inorder(T[u].l);
printf(" %d", u);
In... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102795/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102795/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.Node = type { i32, ... |
#include<stdio.h>
#define MAX 10000
#define qu -1
struct Node{
int C,left,right;
};
struct Node D[MAX];
int num;
void Po(int A){
if(A==qu){
return;
}
printf(" %d",A);
Po(D[A].left);
Po(D[A].right);
}
void Io(int A){
if(A==qu){
return;
}
Io(D[A].left);
printf(" %d",A);
Io(D[A].right);
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102838/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102838/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.Node = type { i32, ... |
#include <stdio.h>
#include <stdlib.h>
#define MAX 10000
#define NIL -1
typedef struct { int parent, left, right; }Node;
Node Tree[MAX];
int size, Depth[MAX], Height[MAX];
void preParse(int u);
void inParse(int u);
void postParse(int u);
int getDepth(int u);
int getSibling(int u);
void print(int u);
int main(int ar... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102881/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102881/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.Node = type { i32, ... |
#include<stdio.h>
int main(){
char cx[30];
int jhowmany, chowmany, i, j, jemx[20], jemy[20], cy[30], rx, ry, nx, ny, result;
scanf(" %d", &jhowmany);
while(jhowmany != 0){
nx = 10;
ny = 10;
//first, get an unit of input.
for(i=0;i<jhowmany;i++){
scanf(" %d %d... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102924/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102924/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
typedef struct E{
int T;
struct E *N;
}e;
e *l[100001];
void df(int i,int a[],int d){
a[i]=d;
e *t=l[i];
while(t!=NULL){
if(a[t->T]<0)df(t->T,a,d+1);
t=t->N;
}
}
int main(){
e *t;
int f[100001],s[100001],n,i,x,y;
scanf("%d",&n);
for(i=0;i<=n;i++){l[i]=NUL... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102982/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102982/source.c"
target datalayout = "e-m:e-p270: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.E = type { i32, ptr... |
#include <stdio.h>
int main()
{
int i, N, P[250001];
scanf("%d", &N);
for (i = 1; i <= N * N; i++) scanf("%d", &(P[i]));
int j, min[502][502] = {}, tmp;
for (i = 1; i <= (N + 1) / 2; i++) {
for (j = 1; j <= (N + 1) / 2; j++) {
tmp = ((i < j)? i: j) - 1;
min[i][j] = tmp;
min[N-i+1][j] = tmp;
min[i]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103024/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103024/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, ans=1;
char s[16]={0};
scanf("%d%d", &a, &b);
scanf("%s", s);
//a
for(int i=0; i<a; i++){
if( s[i] < '0' || s[i] > '9' ){ ans = 0; }
}
//-
if( s[a] != '-' ){ ans = 0; }
//b
for(int i=a+1; i<a+b+1; i++){
if( s[i] < '0' || s[i] > '9' ){ ans = 0; }... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103068/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103068/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <ctype.h>
int main(void) {
int A, B;
char S[128];
int i;
if (scanf("%d%d", &A, &B) != 2) return 1;
if (scanf("%127s", S) != 1) return 1;
for (i = 0; i < A + B + 1; i++) {
if (!(i == A ? S[i] == '-' : ('0' <= S[i] && S[i] <= '9'))) {
puts("No");
return 0;
}
}
puts(S[A + B ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103110/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103110/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
char s[11];
scanf("%s", s);
int i;
for(i=0;i<a;i++)
if (s[i]<'0' || s[i]>'9')
{
printf("No\n");
return 0;
}
if (s[a] != '-')
{
printf("No\n");
return 0;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103154/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103154/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
int main(){
int A, B, i;
scanf("%d%d", &A, &B);
char *S = (char *)malloc(sizeof(char) * (A + B + 2));
scanf("%s", S);
for(i = 0; i <= A + B; i++){
if(i == A){
if(S[i] != '-'){
printf("No\n");
return 0;
}
}
else{
if(!((int)'0' <= (int)S[i] && (int)S[i] ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103211/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103211/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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 dbg(fmt,...) fprintf(stderr,fmt,__VA_ARGS__)
#define dpri(x) dbg(#x ": %d\n", x)
#define dprs(x) dbg(#x ": %s\n", x)
#include <stdio.h>
#include <string.h>
typedef long long ll;
const int INF = 1e9+7;
void reverse(char *s, int n) {
int i;
char c;
for (i = 0; i < n/2; i++) {
c = s[i];
s[i] = s[n - i - 1]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103312/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103312/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@INF = dso_local local_unna... |
#include <stdio.h>
#include <string.h>
int main(void) {
char card[400]={};
scanf("%s", card);
char end[400]={};
char temp[400]={};
strcpy(end, "-");
int n, m, i, j, l;
while (strcmp(card, end)!=0)
{
scanf("%d", &n);
l=strlen(card);
for (i=0; i<n; i++)
{
scanf("%d", &m);
for (j=0; j<m; j++)
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103356/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103356/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
typedef long long ll;
int main()
{
ll t;
scanf("%lld",&t);
for(ll i=0;i<t;i++)
{
ll n;
scanf("%lld",&n);
getchar();
ll no_t=0,no_m=0;
char a[n];
for(int i=0;i<n;i++)
{
scanf("%c",&a[i]);
if(a[i]=='T')
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_1034/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_1034/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr co... |
#include<stdio.h>
#include<string.h>
int main(){
int i, r, n, n2, z, x;
char moji1[201] = {}, tmp1, tmp2;
for(;;){
scanf("%s",moji1);
if( moji1[0] == '-'){
break;
}
scanf("%d", &n);
for( i = 0; i < n; i++ ){
scanf("%d", &n2);
for(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103442/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103442/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ar[1000]={};
char temp[1000]={};
int m,h,i,j;
while(1){
scanf("%s%d",ar,&m);
if(strcmp(ar,"-")==0) break;
for(i=0;i<m;i++){
scanf("%d",&h);
strncpy(temp,ar,h);
strcpy(ar,ar+h);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103493/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103493/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 m, h;
char cards[256], temp[256], result[256];
int i, j=0, len;
while(1){
scanf("%s", cards);
len=strlen(cards);
if(strcmp(cards, "-")==0&&len==1)break;
scanf("%d", &m);
for(;m>0;m--){
scanf("%d"... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103536/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103536/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
int main(void) {
int ch;
scanf("%d", &ch);
int *chapter_ary = malloc(sizeof(int) * ch * 2);
for (int i = 0; i < ch; i++) {
scanf("%d %d", &chapter_ary[2*i], &chapter_ary[2*i + 1]);
}
int k;
scanf("%d", &k);
for (int i = 0; i < ch; i++) {
if (k >= chapter_ary[2*i] && k... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_10358/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_10358/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
#include <string.h>
#define STRING_LIMIT 201
#define COUNT_SIZE 100
#define DATA_SET_LIMIT 10
typedef struct {
char str[STRING_LIMIT];
int strSize;
int count;
int* position;
} DataSet;
int InputDataSet(DataSet* dataSet);
void ShiftingDataSet(DataSet* dataSet, int length);
v... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103622/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103622/source.c"
target datalayout = "e-m:e-p270: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.DataSet = type { [2... |
#include <stdio.h>
#include <string.h>
int main(){
char s[258] = {}, tmp[258] = {};
int m, h, i, l;
while(scanf("%s", s) && s[0] != '-'){
scanf("%d", &m);
while(m--){
scanf("%d", &h);
strcpy(tmp, s + h);
s[h] = '\0';
strcat(tmp, s);
strcpy(s, tmp);
}
puts(s);
}
r... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103666/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103666/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 card[201];
char shuffle[200];
int m;
int h;
for (;;) {
scanf("%s", card);
if (card[0] == '-') {
break;
} else {
scanf("%d", &m);
int i;
for (i = 0; i < m; i++) {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103709/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103709/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 i,j,k,l,m,n;
scanf("%d%d",&n,&m);
if(n==2)
printf("6");
if(n!=2 && m>n/2)
printf("%d",n*3+n-m);
if(n!=2 && m<=n/2)
printf("%d",n*3+m-1);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_10376/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_10376/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 ... |
//abc151E
#include <malloc.h>
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int compare_int(const void *a, const void *b) {
return *(int*) a - *(int*) b;
}
long long gya(long long a) { //逆元を求める
long long m=1000000007, b=m, u=1, v=0, c, t;
while(b){
t=a / b; //何これ
a-=t * b,... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103824/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103824/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@xa = dso_local local_unnam... |
#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_103868/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103868/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,flag=1,count=0;
scanf("%d",&n);
int a[n];
for(i=0; i<n; i++)
scanf("%d",&a[i]);
while(1){
for(i=0; i<n; i++)
if(a[i]%2!=0)
flag=0;
if(flag==0)
break;
else{
for(i=0; i<n; i++)
a[i]=a[i]/2;
}
count++;
}
printf("... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103918/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103918/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int i,n,k=0;
long seisuu[210]={0};
int hantei = 0;
scanf("%d", &i );
for (n = 0 ; n < i ; n++)
scanf("%ld",&seisuu[n]);
while (hantei == 0)
{
for (n = 0 ; n < i ; n++)
{
if (seisuu[n] % 2 != 0)
{hantei = 1;
break;}
else seisuu[n] /= 2 ;
} ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103961/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103961/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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=40,d;
scanf("%d",&a);
for(int i=0; i<a; i++){
scanf("%d",&b);
d=0;
while(b%2==0){b/=2;d++;}
if(c>d){c=d;}
}
printf("%d",c);
return 0;} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104003/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104003/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<math.h>
int main(){
int a, n, min = 30;
scanf("%d", &n);
for(int i = 0; i < n; ++i){
int j = 1;
scanf("%d", &a);
if(a % 2){
min = 0;
break;
}
//if(a > pow(2, min)) continue;
while(1){
a /= 2;
//printf("%d\n", a);
if(a % 2) break;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104047/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104047/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, a[200] = {0}, k=0;
scanf("%d", &N);
for(i=0; i < N; i++){
scanf("%d", &a[i]);
}
i = N;
while(i == N){
i = 0;
while(a[i]){
if(a[i] % 2 == 0) a[i]=a[i]/2;
else break;
i++;
}
k++;
}
printf("%d",k-1);
ret... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104090/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104090/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
int main(void){
int N,*A,i,count=0;
scanf("%d",&N);
A = (int*)malloc(sizeof(int)*N);
for(i=0;i<N;i++){
scanf("%d",&A[i]);
}
while(1){
for(i=0;i<N;i++){
if(A[i]%2==0){
A[i] /= 2;
}else{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104133/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104133/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
unsigned long An[200];
int result;
// Nを取得
scanf("%d", &N);
// 黒板の整数を取得
for (int i = 0; i < N ; i++)
{
scanf("%lu", &An[i]);
}
// 操作実行
while(1){
int end_flg = 0;
for (int i = 0; i < N; i++)
{
if(An[i] % 2 > 0... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104184/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104184/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, i, j, x;
int b[10000];
scanf("%d", &a);
for (i = 0;i < a;i++) {
scanf("%d", &b[i]);
}
for (j = 0;j < 10000;j++) {
for (i = 0;i < a;i++) {
if (b[i] % 2 == 0) {
b[i] = b[i] / 2;
} else {
break;
}
} if (b[i] % 2 == 1) {
break;
}
} printf("%d\n", j);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104227/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104227/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[200],i,n,flag=1,sum;
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d",&a[i]);
}
for(sum=0;flag;)
{
for(i=0;i<n;i++)
{
if(a[i]%2)
{
flag=0;
break;
}
a[i]/=2;
}
if(i==n)sum++;
}
printf("%d\n",sum);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104270/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104270/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <limits.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <math.h>
int main(void){
char s[500001];
scanf("%s", s+200000);
int l=200000, r=200000+strlen(s+200000);
int f=1;
int q, i;
scanf("%d", &q);
for(i=0; i<q; i++){
in... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104313/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104313/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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 2044: Lying about Your Age
// 2017.11.04 bal4u@uu
#include <stdio.h>
#include <string.h>
#define TM 0
#if TM
#include <time.h>
#endif
#define INF 11001001
int tbl[201][17];
char buf[20], *bp;
int getint()
{
int n = 0;
while (*bp >= '0') n = (n<<3) + (n<<1) + (*bp++ & 0xf);
return n;
}
int cmp(int *a, int ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104364/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104364/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@bp = dso_local local_unnam... |
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
int main(){
int n,i;
int h[100001];
int max = -1;
int flag = 0;
scanf("%d", &n);
for(i = 0;i < n;i++){
scanf("%d", &h[i]);
if(max < h[i]) max = h[i];
if(max - h[i] >= 2) flag = 1;
}
if(flag == 1) printf("No\n");
else printf("Yes... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104407/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104407/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int flag=0;
scanf("%d",&n);
int h[n+1];
for(int i=1;i<=n;i++){
scanf("%d",&h[i]);
}
for(int i=n;i>=2;i--){
if(h[i]<h[i-1]){
h[i-1]=h[i-1]-1;
}
if(h[i]<h[i-1]){
flag=1;
break;
}
}
if(flag==0){
printf("Yes");
}els... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104450/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104450/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
int n,i,hantei=0;
scanf("%d",&n);
int a[n];
for(i=0;i<n;i++)
scanf("%d",&a[i]);
for(i=n-1;i>0;i--){
if(a[i]>=a[i-1]){
}
else if(a[i-1]-a[i]==1){
a[i-1]-=1;
}
else{
hantei=1;
}
}
if(n==1) hantei=0;
if(hantei) printf("No\n");... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104500/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104500/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
int main(void){
int n;
int *ap;
scanf("%d",&n);
ap = (int *)malloc((n+1) * sizeof(int));
for(int i=1; i<n+1; i++){
scanf("%d",&ap[i]);
}
ap[0] = ap[1];
for(int i=1; i<n+1; i++){
if(ap[i-1]<ap[i]){
ap[i]--;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104544/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104544/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 c;
scanf("%c", &c);
if(c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u') puts("vowel");
else puts("consonant");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104595/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104595/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 c;
scanf("%c",&c);
if (c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o') printf("vowel\n");
else printf("consonant\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104638/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104638/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <stdlib.h>
int main()
{
char c;
scanf("%c",&c);
if(c=='a' ||c=='i' ||c=='u' ||c=='e' ||c=='o' )printf("vowel\n");
else printf("consonant\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104702/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104702/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 c;
scanf("%c", &c);
if (c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o') {
printf("vowel\n");
}
else{
printf("consonant\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104760/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104760/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 c;
scanf("%c", &c);
printf("%s\n", (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u')? "vowel" : "consonant");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104803/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104803/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 c;
scanf("%c",&c);
if(c=='a') printf("vowel\n");
else if(c=='i') printf("vowel\n");
else if(c=='u') printf("vowel\n");
else if(c=='e') printf("vowel\n");
else if(c=='o') printf("vowel\n");
else printf("consonant\n");
return(0);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104854/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104854/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 c;
scanf("%c",&c);
if (c == 'a'||c == 'i'||c == 'u'||c == 'e'||c == 'o'){
printf("vowel\n");
}
else{
printf("consonant\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104898/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104898/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
if(N%2==0 && N%N==0)
printf("%d",N);
else
printf("%d",N*2);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104940/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104940/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
if(N%2==0)
printf("%d",N);
else
printf("%d",(2*N));
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104984/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104984/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int N,a;
scanf("%d",&N);
if(N%2==0 && N%N==0)
{
printf("%d",N);
}
else
{
a=N*2;
printf("%d",a);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_105026/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_105026/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int N;
scanf("%d",&N);
if(N % 2 == 0) printf("%d", N);
else printf("%d",2*N);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_105077/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_105077/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[100001];
int l=0,i;
scanf("%s",a);
l=strlen(a);
printf("%s",a);
for(i=l-1;i>=0;i--)
{
printf("%c",a[i]);
}
printf("\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_10512/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_10512/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
int main()
{
int N;
scanf("%d",&N);
if(N % 2 == 0){
printf("%d",N);
}else{
printf("%d",2*N);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_105163/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_105163/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
int N;
scanf("%d",&N);
if(N%2!=0) N=N*2;
printf("%d\n",N);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_105213/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_105213/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,k;
scanf("%lld",&n);
k=n;
if(k%2!=0){
printf("%d\n",k*2);
}
else{
printf("%d\n",k);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_105264/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_105264/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void) {
int n;
scanf("%d", &n);
if (n % 2 == 0) {
printf("%d\n", n);
} else {
printf("%d\n", n * 2);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_105314/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_105314/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
int N;
scanf("%d",&N);
if( N%2 ==0){
printf("%d",N);
}else{
printf("%d",N*2);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_105358/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_105358/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
double w, h;
int main(void){
double x, y;
double grad;
scanf("%lf %lf %lf %lf", &w, &h, &x, &y);
printf("%f ", w*h/2);
printf("%d", (x == w/2 && y == h/2) ? 1 : 0);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_105408/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_105408/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
typedef long long int ll;
int main(void){
ll W,H,x,y;
scanf("%lld%lld%lld%lld", &W,&H,&x,&y);
double area;
int ok;
area = (double)W*H/2;
if((x*2==W) && (y*2==H)){
ok = 1;
}else{
ok = 0;
}
printf("%.9lf %d\n", area, ok);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_105451/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_105451/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <limits.h>
int main()
{
long W, H, x, y;
scanf("%ld %ld %ld %ld", &W, &H, &x, &y);
if(W == x*2 && H == y*2) printf("%lf 1\n", W*H/2.0);
else printf("%lf 0\n", W*H/2.0);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_105495/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_105495/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
long w, h, x, y;
int flag;
scanf("%ld%ld%ld%ld", &w, &h, &x, &y);
flag=0;
if(w==2*x && h==2*y){
flag=1;
}
printf("%.6f %d\n", (double)w*(double)h*0.5, flag);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_105538/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_105538/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
int main(void){
int i,j,sign=0;
double s;
int w,h,x,y;
scanf("%d%d%d%d",&w,&h,&x,&y);
s=(double)w*h/2;
if(2*x==w&&2*y==h){
sign=1;
}
printf("%lf %d\n",s,sign);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_105581/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_105581/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<stdbool.h>
#include<time.h>
#include<math.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 min(int a,int b){if(a<b)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_105631/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_105631/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#define ll long long int
void sort(int a[],ll n){
ll i,j,temp;
for(i=0;i<n;i++){
for(j=0;j<n;j++){
if(a[i]<a[j]){
temp=a[i];
a[i]=a[j];
a[j]=temp;
}
}
}
}
int main(){
ll n,i,c,ans;
c=1;
int a[... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_105675/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_105675/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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.