Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include<stdio.h>
int main(void) {
int height = 0; scanf("%d", &height);
int width = 0; scanf("%d", &width);
while (1) {
if ((height == 0) && (width == 0)) {
break;
}
else {
for (int i = 0; i < height; i++) {
for (int j = 0; j < width; j++) {
if ((i == 0) || (i + 1 == height) || (j == ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101306/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101306/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
struct ss
{
int a;
int b;
}ar[200],temp;
int main()
{
int n,i,j,k,m,sum,xz[200],st[200];
scanf("%d",&n);
m=1;k=1;
for(i=0;i<n;i++)
{
scanf("%d%d",&ar[i].a,&ar[i].b);
st[i]=0;
xz[i]=0;
}
for(i=0;i<n;i++)
{
for(j=i+1;j<n;j++)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_10135/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_10135/source.c"
target datalayout = "e-m:e-p270: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.ss = type { i32, i32 ... |
#include <stdio.h>
int main()
{
int i,j,k,l,m,a[1000],b[1000],n,count=0,left=0,right=0;
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d %d",&a[i],&b[i]);
count+=b[i];
if(a[i]<0)
left++;
else
right++;
}
for(i=0;i<n;i++)
{
for(j=0;j<... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_10140/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_10140/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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;
int n,a,b,c,x;
int res;
int y[102];
while(scanf("%d%d%d%d%d",&n,&a,&b,&c,&x),n){
for(i=0;i<n;i++){
scanf("%d",&y[i]);
}
res = 0;
for(i=0;i<n;i++,x=(a * x + b)%c,res++){
while(y[i] != x){
x = (a * x + b) % c;
res++;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101494/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101494/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 struct List {
struct List *next;
int id, parity;
} list;
int main()
{
int i, N, u[100001], v[100001], w[100001];
scanf("%d", &N);
for (i = 1; i <= N - 1; i++) scanf("%d %d %d", &(u[i]), &(v[i]), &(w[i]));
list *inc[100001] = {}, edge[200001];
for (i = 1; i <= N - 1; i++) {
edge[(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101551/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101551/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.List = type { ptr, ... |
#include <stdio.h>
#include <math.h>
long Combination(long n, long r) {
long answer = 1;
if (n-r < r) {
r = n-r;
}
for (long i = 1; i <= r; i++) {
answer *= n+1-i;
answer /= i;
}
return answer;
}
int main(void) {
int n,p;
scanf("%d %d", &n, &p);
int a[n];
for (int i = 0; i < n; i++) {... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101595/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101595/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <ctype.h>
#include <string.h>
#define ll long long
#define MAX 200000000000
#define MOD 1000000007
ll int bin(ll int);
int main(void){
ll int N,P;
scanf("%lld%lld",&N,&P);
ll int i;
ll int A[100];
ll int odd=0,even=0;
for(i=0;i<N;i++){
scanf("%d... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101638/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101638/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, j, total;
int d[100];
scanf("%d", &N);
total = 0;
for(i = 0; i < N; i++){
scanf("%d", &d[i]);
}
for(i = 0; i < N; i++){
for(j = 0; j < i; j++){
scanf("%d", &d[j]);
total = total + d[i] * d[j];... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101689/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101689/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,x;
int sum1=0;
int sum2=0;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&x);
sum1+=x;
sum2+=x*x;
}
printf("%d",(sum1*sum1-sum2)/2);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101731/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101731/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,j,g=0;
scanf("%d\n",&n);
int t[n];
for(i=0;i<n;i++) scanf("%d",&t[i]);
for(i=0;i<n-1;i++){
for(j=i+1;j<n;j++)
g+=t[i]*t[j];
}
printf("%d\n",g);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101782/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101782/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
long long ans=0,a[55];
scanf("%d",&n);
for(int i=1;i<=n;i++)
{
scanf("%lld",&a[i]);
}
for(int i=1;i<=n-1;i++)
{
for(int j=i+1;j<=n;j++)
{
ans+=a[i]*a[j];
}
}
printf("%lld",ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101825/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101825/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,j,sum=0;
int a[59];
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d",&a[i]);
}
for(i=0;i<n;i++)
{
for(j=i+1;j<n;j++)
sum+=a[i]*a[j];
}
printf("%d",sum);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101869/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101869/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
//set many funcs template
//Ver.20190820
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<stdbool.h>
#include<time.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){i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101911/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101911/source.c"
target datalayout = "e-m:e-p270: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>
#define N 100
int main(void)
{
int n;//たこ焼きの個数
int a[N];//おいしさ
int sum=0;//総和
//scanf_s("%d", &n);
scanf("%d", &n);
for (int i = 0; i < n; ++i) {
//scanf_s("%d", &a[i]);
scanf("%d", &a[i]);
}
for (int i = 0; i < n; ++i) {
for (int j = i+1; j < n; ++j) {
sum += a[i] * a[j];
//pr... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101955/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101955/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n, i, j, sum=0;
scanf("%d", &n);
int a[n+1];
for(i=0; i<n; i++){
scanf("%d", &a[i]);
}
for(i=0; i<n; i++){
for(j=i+1; j<n; j++){
sum+=a[i]*a[j];
}
}
printf("%d", sum);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101999/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101999/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int n,d[51],i,j,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",ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102040/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102040/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#define Max 10000
#define NIL -1
typedef struct Node{
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... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102084/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102084/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.Node = type { i32, ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct{
int id;
int parent;
int left;
int right;
}tree;
tree *T;
void preorder(int r){
printf(" %d",r);
if(T[r].left != -1) preorder(T[r].left);
if(T[r].right != -1) preorder(T[r].right);
}
void inorder(int r){
if(T[r].left != -1) in... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102127/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102127/source.c"
target datalayout = "e-m:e-p270: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, ... |
#include<stdio.h>
#define MAX 10000
#define NIL -1
struct Node{
int p,l,r;
};
struct Node T[MAX];
int n;
void preParse(int);
void inParse(int);
void postParse(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 %d %d",&v,&l,&r);
T[v]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102178/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102178/source.c"
target datalayout = "e-m:e-p270: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
typedef struct{
int parent;
int left;
int right;
}Node;
void Preorder(int);
void Inorder(int);
void Postorder(int);
Node T[MAX];
int c[2];
int n;
int main(){
int l, m, i, j;
scanf("%d", &n);
for(i = 0; i < n; i++){
T[i].parent = -1;
T[i].left = -1;
T... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102228/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102228/source.c"
target datalayout = "e-m:e-p270: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 l,r,p;
}Node;
Node Tree[MAX];
int n;
void Preorder(int u){
if(u==NIL) return;
printf(" %d",u);
Preorder(Tree[u].l);
Preorder(Tree[u].r);
}
void Inorder(int u){
if(u==NIL)return;
Inorder(Tree[u].l);
printf(" %d",u);
Inorder(Tree... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102286/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102286/source.c"
target datalayout = "e-m:e-p270: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 NO -1
struct tree { int p, l, r;};
struct tree T[MAX];
int n;
void Preorder ( int u ) {
if ( u == NO ) return;
printf(" %d", u);
Preorder(T[u].l);
Preorder(T[u].r);
}
void Inorder ( int u ) {
if ( u == NO ) return;
Inorder(T[u].l);
printf(" %d",... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102329/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102329/source.c"
target datalayout = "e-m:e-p270: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, ... |
#include<stdio.h>
int main()
{
int n,m,num,i;
scanf("%d",&n);
if(n %2 == 0)
m = n/2+1;
else
m = (n+1)/2;
printf("%d\n",m);
num = 0;
for(i = 1; i <= m; i ++)
{
if(num == n)
break;
printf("%d %d\n",1,i);
num ++;
}
for(i = 2; ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_10238/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_10238/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main(){
int x,y,z;
char ans;
scanf("%d %d %d",&x,&y,&z);
if(z==0)ans=x>y?'+':x==y?'0':'-';
else if(x>y){
ans=x-y>z?'+':'?';
}
else if(x<y){
ans=y-x>z?'-':'?';
}
else ans='?';
printf("%c"... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_10243/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_10243/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 MAX 10000
#define NIL -1
struct Node {int p,l,r;};
struct Node Ttw[MAX];
int n;
void preParse(int u){
if(u==NIL)return;
printf(" %d",u);
preParse(Ttw[u].l);
preParse(Ttw[u].r);
}
void inParse(int u){
if(u==NIL)return;
inParse(Ttw[u].l);
printf(" %d",u);
inP... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102480/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102480/source.c"
target datalayout = "e-m:e-p270: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 N -1
typedef struct{
int p,l,r;
}Node;
Node T[MAX];
int a;
void pre(int);
void in(int);
void post(int);
int main()
{
int i,b,c,left,right;
scanf("%d",&a);
for(i=0;i<a;i++)T[i].p=T[i].l=T[i].r=N;
for(i=0;i<a;i++){
scanf("%d %d %d",&c,&lef... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102523/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102523/source.c"
target datalayout = "e-m:e-p270: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 NIL -1
struct node{
int parent, left, right;
};
struct node t[25];
void preorder(int);
void inorder(int);
void postorder(int);
int main(){
int n, vec, left ,right, root;
int i;
scanf("%d", &n);
for(i=0; i<n; i++){
t[i].parent =t[i].left =t[i].right = NIL;
}
for(i=0; i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102567/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102567/source.c"
target datalayout = "e-m:e-p270: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>
int main()
{
int a, b, c;
scanf("%d%d%d", &a, &b, &c);
if (abs(a-b)<=c && c)
printf("?\n");
else if (a>b)
printf("+\n");
else if (a<b)
printf("-\n");
else
printf("0\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_10261/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_10261/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
struct Node {
int parent;
int left;
int right;
};
void setup(struct Node node[], int n) {
for (int i = 0; i < n; i++) {
node[i].parent = -1;
node[i].left = -1;
node[i].right = -1;
}
}
void input(struct Node node[], int n) {
int id, cleft , cright;
for (int i = 0; i < n; i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102653/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102653/source.c"
target datalayout = "e-m:e-p270: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 25
#define NIL -1
typedef struct{
int parent;
int left;
int right;
}node;
void preParse(int);
void inParse(int);
void postParse(int);
node t[MAX];
int main(){
int n, index, root;
int i;
scanf("%d", &n);
//初期化
for(i=0;i<n;i++){
t[i].parent = NIL;
}
fo... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102697/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102697/source.c"
target datalayout = "e-m:e-p270: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()
{
int x,y,z;
while(scanf("%d%d%d",&x,&y,&z)!=EOF){
if(x>y+z)
printf("+\n");
else if(y>x+z)
printf("-\n");
else if(x==y&&z==0)
printf("0\n");
else
printf("?\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_10274/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_10274/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 ... |
/* ALDS1_7_C:TreeWalk */
/* 20181125 AOJ */
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>
#define N 25
#define NIL -1
typedef struct {
int parent;
int left;
int right;
} Tree;
void Preorder(Tree *node, int id);
void Inorder(Tree *node, int id);
void Postorder(Tree *node, int id);
int mai... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102790/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102790/source.c"
target datalayout = "e-m:e-p270: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, ... |
#include<stdio.h>
#define NIL -1
typedef struct{
int parent;
int left;
int right;
} Tree;
Tree t[10000];
void Preorder(int i){
printf(" %d",i);
if(t[i].left!=NIL){
Preorder(t[i].left);
}
if(t[i].right!=NIL){
Preorder(t[i].right);
}
}
void Inorder(int i){
if(t[i].left!=NIL && t[i].right!=NI... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102840/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102840/source.c"
target datalayout = "e-m:e-p270: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, ... |
#include <stdio.h>
int main(){
int n,m,k,i,j,t,rx=10,ry=10,tx,ty,ta[21][21],z;
char d,x;
while(1){
rx=10;
ry=10;
scanf("%d",&n);
if(n==0){
break;
}
for(i=0;i<21;i++){
for(j=0;j<21;j++){
ta[i][j]=0;
}
}
for(i=0;i<n;i++){
scanf("%d%d",&tx,&ty);
ta[tx]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102899/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102899/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 map[21][21];
int i, j;
int A, M;
int x, y;
int in1, in2;
char c[2], a;
int dx, dy;
int count;
while(1) {
scanf("%d", &A);
if(A == 0) {break;}
for(i = 0; i < 21; i++) {
for(j = 0; j < 21; j++) {
map[i][j] = 0;
}
}
for(i = 0; i < A; i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102941/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102941/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n,k,mm,mn,i,j=0,count1=0;
int a[10001],b[10001];
scanf("%d %d",&n,&k);
for(i=0;i<n;i++)
{
scanf("%d",&a[i]);
}
int max1=a[0],min1=a[0];
mm=0;mn=0;
for(i=0;i<n;i++)
{
if (a[i]>max1)
{max1=a[i];
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 cons... |
/*
cat <<EOF >mistaken-paste
*/
#pragma GCC diagnostic ignored "-Wincompatible-pointer-types"
#define _USE_MATH_DEFINES
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <math.h>
#include <time.h>
#define BIG 2000000007
#define VERYBIG 200000000000007LL
#de... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103041/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103041/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@s = dso_local global [401 ... |
#include<stdio.h>
#include<string.h>
int a[2005];
int b[2005];
int main()
{
int t;
scanf("%d",&t);
while(t--)
{
int n;
scanf("%d",&n);
int k=0;
for(int i=0;i<n;i++)
{
scanf("%d",&a[i]);
if(a[i]%2!=0)
{
printf("%d ",a[i]);
}
else
{
b[++k]=a[i];
}
}
for(int i=1;i<=k;i++)
{... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_1031/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_1031/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr co... |
#include<stdio.h>
int main(){
char s[12];
int a,b,i,ans=1;
scanf("%d%d%s",&a,&b,s);
for(i=0;i<a+b+1;i++){
if(i==a){
if(s[i]!='-'){
ans=0;
break;
}
}
else{
if(s[i]=='-'){
ans=0;
break;
}
}
}
puts(ans?"Yes":"No");
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103142/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103142/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,count=0,i,sum;
scanf("%d %d",&a,&b);
sum=a+b;
char s[15];
scanf("%s",s);
for(i=0;i<=sum;i++){
if(i==a) continue;
else if(!(s[i]>='0' && s[i]<='9')|| s[a]!='-'){
count++;
break;
}
}
if(count==0) printf(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103186/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103186/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a, b, c, i;
char s[12];
int len;
c = scanf("%d %d", &a, &b);
c = scanf("%s", s);
len = strlen(s);
if(len != a + b + 1){
printf("No");
exit(0);
}
else{
for(i = 0; i < len; i++){
if(i == a){
if(s[i] != '-'){
print... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103229/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103229/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[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_103272/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103272/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int i;
char str[201],head[201],tail[201];
while(1)
{
scanf("%s",str);
if(!strcmp(str,"-")){break;}
scanf("%d",&m);
for(i=0;i<m;i++)
{
scanf("%d",&h);
strncpy(tail,str,h);
tail[h]='\0';
strcpy(head,str+h);
sprintf(str,"%s%s",head,... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103315/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103315/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 w[201],t[201];
int m,h,l,i;
while(1){
scanf("%s",w);
if(strcmp(w,"-")==0)
break;
l=strlen(w);
scanf("%d",&m);
while(m--){
scanf("%d",&h);
for(i=0;i<l;i++){
t[i]=w[(i+h)%l];
}
t[l]='\0';
strcpy(w,t);
}
printf("%s\n",t);
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103366/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103366/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[201],n;
int len,m,h,a,b,d,e;
while(1){
scanf("%s",c);
if(strcmp(c,"-")==0)break;
len=strlen(c);
scanf("%d",&m);
for(d=0;d<m;d++){
scanf("%d",&h);
for(a=0;a<h;a++){
n=c[0];
for(b=1;b<=len-1;b++){
c[b-1]=c[b];
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103409/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103409/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
// ITP1_9_B: Shuffle
// 2017.7.28
#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
char *gets(char *s);
int main()
{
char card[2][210], buf[100];
int id0, id1;
int i, m, h, len;
while (1) {
gets(card[0]); len = strlen(card[0]); card[1][len] = 0;
if (card[0][0] == '-') break;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103452/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103452/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: nofree no... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
int main(){
char str[200];
char te[200];
int m;
char temp = '-';
int i, j;
int num;
int h;
while(1){
scanf("%s", str);
if(str[0] == temp){
break;
}
else{
scanf("%d", &h);
for(j=0; j<h; j++){
scanf("%d", &num);... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103502/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103502/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/*
??????????????贈????????????
?????????Run time error
C?即??????則???????????????????????????????????贈??\??????????????卒???????????????????????則'\0'?????\??????????????属???????????????
??\???????????即???????????卒????????????????????贈???????????????
strcpy()???strcat()???????????則????属????'\0'?????\??????????????????... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103553/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103553/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,k,res,i;
scanf("%d%d",&n,&k);
int a[n];
for(i=1;i<=n;i++)
{
a[i]=0;
}
a[k]=1;
if(k==1||k==n){
res=(n-1)+2*(n-1)+3;
}
else{
if(k>n/2){
res= 2*(n-1)+3+2*(n-k)+(k-2)+1;
}
else{
res=2*(k-1)+3+(k-1)*2+1+2*(n-k)+(n-k-1);
}
}
printf("%d",res);
r... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_10364/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_10364/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <string.h>
int main(void){
int i,j,k,n,s;
char ca[201],can[201];
while(1){
scanf("%s\n%d", ca, &n);
if(!strcmp(ca, "-")) break;
for(i=0;i<n;i++){
scanf("%d", &s);
for(j=s;ca[j]!='\0';j++)
can[j-s] = ca[j];
for(k=0;k<s;k++)
can[j-s+... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103690/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103690/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 str[201];
char stra[201];
int m,h,length;
int i,k,j=0;
while(1){
scanf("%s",card);
length=strlen(card);
if(strcmp(card,"-")==0) break;
scanf("%d",&m);
for(k=0;k<m;k++){
strcpy(str,card);
scanf("%d",&h);
for(i=0;i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103733/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103733/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <stdint.h> // uint64_t
#define max(a,b) ((a) > (b) ? (a) : (b))
#define min(a,b) ((a) > (b) ? (b) : (a))
#define BUF_SIZE 100
// size: specify sizeof(str)
int get_str(char *str, int size) {
if(!fgets(str, size, stdin)) return -1;
return 0;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103777/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103777/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = external local_unn... |
#include<stdio.h>
int R=1,C=1,H[2000010],N[2000010];
int hyouka(int a,int b){
if(C<b)return 1;
if(C<a||b==0)return 0;
return N[H[a]]<N[H[b]]?1:0;
}
void hin(int a){
int i=C++;
for(N[H[0]=R]=a;hyouka(0,i/2);i/=2)H[i]=H[i/2];
H[i]=R++;
}
int hout(){
int rt=H[1],i,j=2,k=H[--C];
for(i=1;hyouka(i,C);i=j)H[i]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103841/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103841/source.c"
target datalayout = "e-m:e-p270: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... |
#pragma warning(disable:4996)
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define _USE_MATH_DEFINES
#include <math.h>
#include <float.h>
#pragma region 定義
typedef long long ll;
typedef unsigned long long ull;
#define _itoa(A,N) sprintf(A, "%d", N);
int i_dsort(const void* a, const void* b);
int i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103885/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103885/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a[n];
int i;
i = 0;
int counter;
counter = 0;
while (i < n)
{
scanf("%d",&a[i]);
i++;
}
i = 0;
while (i < n)
{
if (a[i] % 2 == 0)
{
a[i] /= 2;
}
else
{
printf("%d",counter);
return (0);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103928/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103928/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 N;
scanf("%d",&N);
int A[N];
int count = 0;
int check = 0;
for(int i=0; i<N; i++){
scanf("%d",&A[i]);
}
while(check == 0){
for(int i=0; i<N; i++){
// printf("A[%d] = %d\n",i,A[i]);
if(A[i] %2 == 0){
A[i] /= 2;
}
else{... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103971/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103971/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
typedef long long ll;
int main()
{
int N, i, count = 0, flg = 0;
scanf("%d", &N);
int A[N + 1];
for (i = 0; i < N; i++) {
scanf("%d", &A[i]);
if (A[i] % 2 != 0) flg = 1;
}
while (flg == 0) {
for (i = 0; i < N; i++) {
if (A[i] % 2 != 0) {
flg = 1;
break;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104020/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104020/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 i, a[n], c=0;
for(i=0;i<n;i++){
scanf("%d", &a[i]);
}
int f=1;
while(f==1){
for(i=0;i<n;i++){
if(a[i]%2==0){
a[i]/=2;
}else{
f=0;
break;
}
}
if(f==1) c++;
}
printf("%d", c);
return 0;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104064/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104064/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 long int gcd(long long int a, long long int b) {
if (b == 0) {
return a;
}
return gcd(b, a%b);
}
int main(void) {
int n;
scanf("%d", &n);
long long int a[n];
int i;
long long int element = 0;
for (i = 0; i < n; i++) {
scanf("%lld", &a[i]);
}
if (n == 1) {
printf("%lld\n", a[0])... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104107/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104107/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
int main (void){
int i,count;
long long int a[200],max=0,flag=0,n,k[100]={0};
scanf("%d",&n);
max=0;
flag=0;
for(i=0;i<n;i++)
{
scanf("%lld",&a[i]);
}
while(1)
{
for(i=0;i<n;i++)
{
if(a[i]%2==0){
a[i]/=2;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104158/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104158/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
//usr/bin/env picoc $0 - $@;exit
#include <stdio.h>
int main(){
int n,x,r=1<<29;
for(scanf("%d",&n);n--;){
int r0=0;
scanf("%d",&x);
for(;x%2<1;x/=2)r0++;
if(r>r0)r=r0;
}
printf("%d\n",r);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104200/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104200/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[200],b=0,i,c=0;
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d",&a[i]);
}
for(i=0;i<n;i++)
{
if(a[i]%2==0)
b++;
}
if(b!=n)
printf("%d\n",c);
else
{
while(b==n)
{
c++;
b=0;
for(i=0;i<n;i++)
{
a[i]=a[i]/2;
if(a[i]%2==0)
b++;
}
}
pr... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104244/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104244/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#pragma warning(disable:4996)
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <float.h>
#pragma region 定義
#define i_cin(X) scanf("%d", &X)
#define i_cin2(X,Y) scanf("%d %d",&X,&Y)
#define i_cin4(X,Y,Z,W) scanf("%d %d %d %d",&X,&Y,&Z,&W)
#define i_cin3(X,Y,Z) scanf("%d %d %d",&X,... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104288/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104288/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 q,a[2]={499999,500000},t,f,g=0;
char s[1000000],c[2];
scanf("%s",&s[a[1]]);
while(s[a[1]]!=0) a[1]++;
scanf("%d",&q);
for(;q>0;q--){
scanf("%d",&t);
if(t==1){
g^=1;
}else{
scanf("%d",&f);
f--;
f^=g;
scanf("%s",&c);
s[a[f]]=c... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104330/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104330/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 absolute(ll a){
if(a>0) return a;
return -a;
}
int main(){
int n,ans;
scanf("%d",&n);
ll h[n];
int p=1;
for(int i=0;i<n;i++)
scanf("%lld",&h[i]);
for(int i=1;i<n;i++){
if(h[i-1]<=h[i]-1)
h[i]-=1;
else if(h[i-1]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104424/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104424/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
//ABC136C
#include <stdio.h>
#include <string.h>
#include <math.h>
int main(){
int n;
scanf("%d",&n);
int i, j;
int h[n];
for(i=0;i<n;i++){
scanf("%d",&h[i]);
}
for(j=n-1;j>0;j--){
if(h[j-1] <= h[j]){
h[j-1] = h[j-1];
}else{
if(h[j-1] == h[j] + 1){
h[j-1] = h[j-1] - 1;
}else{
printf("No\n"... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104468/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104468/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 mypow(int a, int b)
{
int i, ans = 1;
for (i = 0; i < b; i++)
{
ans *= a;
}
return ans;
}
int main()
{
int n, i, j,k,h[100000];
scanf("%d", &n);
for (i = 0; i < n; i++)
{
scanf("%d", &h[i]);
}
/* if(n==1)
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104510/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104510/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i;
long h[100005];
char str[2000000],*p;
fgets(str,sizeof(str),stdin);
N=atoi(str);
fgets(str,sizeof(str),stdin);
p=strtok(str," \n");
h[0]=atol(p);
for(i=1;i<N;i++){
p=strtok(NULL," \n");
h[i]=atol(p);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104554/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104554/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = external local_unn... |
#include<stdio.h>
int main(void){
char input;
scanf("%c",&input);
if(input==97||input==101||input==105||input==111||input==117){
printf("%s\n","vowel");
}
else printf("consonant");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104598/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104598/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[256] = {['a'] = 1, ['i'] = 1, ['u'] = 1, ['e'] = 1, ['o'] = 1};
char c;
scanf("%c", &c);
puts(a[c] ? "vowel" : "consonant");
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104640/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104640/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ch;
scanf("%c", &ch);
if(ch=='a' || ch=='e' || ch=='i' || ch=='o' || ch=='u' ||
ch=='A' || ch=='E' || ch=='I' || ch=='O' || ch=='U')
{
printf("vowel\n", ch);
}
else
{
printf("consonant\n", ch);
}
ret... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104684/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104684/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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");
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104727/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104727/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,z,a,b,n;
char d[6] = {"aeiou"},c;
scanf("%c",&c);
for(x=0;x<5;x++) if (c == d[x]) break;
if (x == 5) printf("consonant");
else printf("vowel");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104778/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104778/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
char a[5]={'a','e','i','o','u'};
char ch;
scanf("%c",&ch);
////for(i=0;i<5;i++)
{
if(ch == a[0] || ch == a[1] || ch == a[2] || ch==a[3] || ch==a[4] ) printf("vowel");
else printf("consonant");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104828/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104828/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/*
A - 居合を終え、青い絵を覆う / UOIAUAI
<http://abc049.contest.atcoder.jp/tasks/abc049_a>
[Tips]
・文字列の初期化<http://www.cc.kyoto-su.ac.jp/~yamada/programming/string.html>
*/
#include <stdio.h>
#include <string.h>
int main(int argc, char const *argv[]) {
char c;
char vowels[] = "aiueo";
int len = strlen( vowels );
int i;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104879/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104879/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%c",&s);
if(s == 'a' || s == 'i' || s == 'u' || s == 'e' || s == 'o'){
printf("vowel\n");
}else{
printf("consonant");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104921/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104921/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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",n);
else
printf("%d\n",2*n);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104965/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104965/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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",n);
else
printf("%d\n",2*n);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_105021/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_105021/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
int main()
{
int x,i,n,m;
while(~scanf("%d",&n))
{
if(n%2==0)
{
printf("%d\n",n);
}
else
{
printf("%d\n",2*n);
}
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_105065/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_105065/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
printf("%d\n", n % 2 == 0 ? n : n * 2);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_105108/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_105108/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
int main(void)
{
//変数の宣言
//int n,k;
int N;
//データの読み込み
//scanf("%d %d",&n,&k)
scanf("%d",&N);
// printf("nは%dです\n", n);
// printf("データの読み込み終了\n");
//実際の処理
if(N%2==0){
printf("%d",N);
}else{
printf("%d",N*2);
}
// ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_105159/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_105159/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_105201/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_105201/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 here!
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_105245/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_105245/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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", N);
} else{
printf("%d\n", N*2);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_105289/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_105289/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_105346/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_105346/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
//>w^h
int main(void) {
double w, h;
int x, y;
scanf("%lf%lf", &w, &h);
scanf("%d%d", &x, &y);
printf("%lf ", w * h / 2);
if (x == w / 2 && y == h / 2)
printf("1\n");
else
printf("0\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_105397/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_105397/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a[100002];int i,l;
scanf("%s",a);
l=strlen(a);l--;
for(i=0;i<=l;i++)
printf("%c",a[i]);
for(i=l;i>=0;i--)
printf("%c",a[i]);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_10544/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_10544/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main(){
int x,y,w,h,i;
double s,w2,h2;
scanf("%d %d %d %d",&w,&h,&x,&y);
w2 = (double)w;
h2 = (double)h;
if((x==w2/2)&&(y==h2/2))
i=1;
else
i=0;
printf("%.6f %d",(w2 * h2) / 2.000000,i);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_105483/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_105483/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 here!
int W,H,x,y;
scanf("%d %d %d %d", &W, &H, &x, &y);
printf("%lf %d\n", (double)W*H/2, (2*x==W && 2*y==H)? 1:0);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_105526/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_105526/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int n,d,i,j;
char a[102][102];
scanf("%d%d",&n,&d);
for(i=0;i<d;i++)
{
scanf("%s",a[i]);
}
int cnt=0,f=1,max=-9999,cnt1=0;
for(i=0;i<d;i++)
{
cnt1=0;
for(j=0;j<n;j++)
{
if(a[i][j]=='0')
{
f=0;
cnt++;
if(max<cnt)
max=cnt;
break;
}
else
{... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_10557/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_10557/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main() {
int n;
scanf("%d",&n);
int a[n],i;
for(i=0;i<n;i++)
{
scanf("%d",&a[i]);
}
int count=1;
for(i=0;i<n;i++)
{
if(count==a[i])
{
count++;
}
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_105612/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_105612/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 num, kowasu = 0, now = 1;
int brick[200000] = {0};
scanf("%d", &num);
for (int i = 0; i < num; i++) {
scanf("%d", &brick[i]);
}
for (int i = 0; i < num; i++) {
if (now != brick[i]) {
kowasu++;
}
else {
now++;
}
}
if (kowasu == num) {
p... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_105663/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_105663/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int N,s = 1,ans = 0,t;
int i;
int a[200000];
scanf("%d",&N);
for(i = 0;i < N;i++){
scanf("%d",&t);
a[i] = t;
}
i = 0;
while(i < N){
if(a[i] == s){
ans++;
s++;
}
i++;
}
if(ans == 0){
printf("-1\n");
}
else{
ans = N - ans;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_105706/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_105706/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int i;
int notBreak = 1;
for(i=0;i<n;i++)
{
scanf("%d",&a);
if(a==notBreak){
notBreak++;
}
}
if(notBreak == 1)
printf("-1\n");
else
printf("%d\n",n-notBreak+1);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_105757/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_105757/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/*
cat <<EOF >mistaken-paste
*/
#pragma GCC diagnostic ignored "-Wincompatible-pointer-types"
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <math.h>
#define BIG 2000000007
#define VERYBIG 200000000000007LL
#define MOD 1000000007
typedef uint64_t ull;
ty... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_105807/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_105807/source.c"
target datalayout = "e-m:e-p270: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.hw = type { i32, i3... |
//set many funcs template
//Ver.20190820
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<stdbool.h>
#include<time.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){i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_105850/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_105850/source.c"
target datalayout = "e-m:e-p270: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.mkj = type { i64, i... |
#include <stdio.h>
int main(void){
// Your code here!
int x;
scanf("%d",&x);
printf("%d\n",x*x*x);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_105894/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_105894/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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",&x);
y = x * x * x;
printf("%d\n",y);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_105944/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_105944/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d", &a); fflush(stdin);
a = pow(a,3);
printf("%d\n", a);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_105988/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_105988/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
printf("%d\n",x*x*x);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_106037/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_106037/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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.