Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include <stdio.h>
#include <string.h>
int main(){
char str[21], min[21];
int d;
scanf("%d", &d);
scanf("%s", min);
d--;
while(d--){
scanf("%s", str);
if(strcmp(str, min) < 0)
strcpy(min, str);
}
prin... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_99650/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_99650/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 swap(a, b) ((a != b) && (a += b, b = a - b, a -= b))
int main(void)
{
int l, i, j;
char input[21], head[21];
head[0] = 'z' + 1;
scanf("%d", &l);
for (i = 0; i < l; i++) {
scanf("%s", input);
for (j = 0; j < 21; j++) {
if (input[j] < head[j]) {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_99708/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_99708/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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(){
int n,i,j,x;
char str1[20],str2[20],tmp[20];
scanf("%d",&n);
scanf("%s",str1);
for(i=0 ; i<n-1 ; i++){ /*文字の入力*/
scanf("%s",str2);
if(strcmp(str1,str2) >= 0){
strcpy(str1,str2);
}
}
printf("%s\n",str1);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_99751/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_99751/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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() {
int n;
int i;
char min[20];
char current[20];
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%s", current);
if (i == 0) {
strcpy(min, current);
}
if (strcmp(min, current) > 0) {
strcpy(min, current);
}
}
printf("%s\... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_99823/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_99823/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 m, d;
int cnt = 0, i, j;
scanf("%d", &m);
scanf("%d", &d);
for (i = 4; i <= m; i++) {
for (j = 22; j <= d; j++) {
if ((j/10) > 1 && (j%10) > 1) {
if ((j / 10) * (j % 10) == i) {
cnt++;
}
}
}
}
printf("%d\n", cnt);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_99867/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_99867/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 M,D,c=0;
scanf("%d %d",&M,&D);
for (int sar = 1; sar <= M; sar++)
{
for (int i = 2; i <= 9; i++)
{
for (int j = 2; j <= 9; j++)
{
if(i*j==sar && i*10+j<=D) c++;
}
}
}
p... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_99917/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_99917/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
int acs(const void *a, const void *b){return *(int*)a - *(int*)b;} /* 1,2,3,4.. */
int des(const void *a, const void *b){return *(int*)b - *(int*)a;} /* 8,7,6,5.. */
#define MAXN (100000)
#define MOD (1000000007)
int m... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_99960/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_99960/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 H,W,n;
for(int i=0;i<100000;i++){
scanf("%d%d",&H,&W);
if(H==0&&W==0) break;
for(int m=0;m<H;m++){
if(m==0||m==H-1){
for(n=0;n<W;n++){
printf("#");
}
}else{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100058/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100058/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 H,W;
int i,j;
do{
scanf("%d %d",&H,&W);
if(H!=0 || W!=0){
for(i=0;i<H;i++){
for(j=0;j<W;j++){
if(i==0 || j==0 || i==H-1 || j==W-1){
printf("#");
}else{
printf(".");
}
}
puts("");
}
puts("");
}
}while(H!=0 || W!=0);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100108/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100108/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 h, w, counth, countw;
while(1){
scanf("%d %d", &h, &w);
if(h == 0 && w == 0) break;
for(counth = 0; counth < h; counth ++){
for(countw = 0; countw < w; countw ++){
for(;(0 < counth && counth < h- 1) && (0 <countw && countw... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100159/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100159/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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=0;i<H;i++){
for(j=0;j<W;j++){
if( i==0 || i==H-1 ){
printf("#");
}
else if( j == 0 || j == W-1){
printf("#");
}
else {
printf(".");
}
}
printf("\... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100201/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100201/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 argc, char **argv){
int i,j;
int h,w;
for(;;){
// Input
scanf("%d %d",&h, &w);
// Finish Check
if( h == 0 && w == 0 ){
break;
}
// Output
for(i=1;i<=h;i++){
for(j=1;j<=w;j++){
if( i==1 || i==h || j==1 || j==w ){
printf("#");
} else ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100245/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100245/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(".");
}
}
printf("\n");
}
printf("\n");
}
retu... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100289/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100289/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <= W; i++){
printf("#");
}
printf("\n");
for(j = 1; j <= H - 2; j++){
printf("#");
for(i = 1; i <= W - 2; i++){
printf(".");
}
printf("#\n");
}
for(i = 1; i <= W; i++){
printf... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100331/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100331/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int i, j;
while(1) {
scanf("%d %d", &h, &w);
if(h == 0 && w == 0)
break;
else {
for(i = 0; i < h; i++) {
for(j = 0; j < w; j++) {
if(i == 0 || j == 0 || i == h-1 || j == w-1)
printf("#");
else
printf(".");
}
printf("\n");
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100382/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100382/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 p,q,H,W;
while(1){
scanf ("%d %d",&H,&W);
if (H == 0 && W == 0) break;
for (p = 0; p < H; p++){
for (q = 0; q < W; q++){
if (p == 0 || p == H-1 || q == 0 || q == W-1){
printf ("#");
}
else printf (".");
}
printf("\n");
}
printf ("\n");
}
retu... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100425/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100425/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 h, w, i, j;
for( ; ; ){
scanf(" %d %d", &h, &w );
if(h==0 && w==0) break;
for(i=0; i<h; i++){
for(j=0; j<w; j++){
if(i==0 || i==h-1 || j==0 || j==w-1 ) {
printf("#");
}else{
printf(".");
}
}
printf("\n");
}
printf("\n");
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100476/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100476/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 H,W,i,j;
while(1){
scanf("%d %d",&H,&W);
if(H==0 && W==0) break;
for(j=0;j<H;j++){
if(j==0 || j==H-1){
for(i=0;i<W;i++){
printf("#");
}
printf("\n");
}else{
for(i=0;i<W;i++){
if(i==0 || i==W-1){
printf("#");
}else{
printf(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100612/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100612/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, m, n;
scanf("%d %d", &h, &w);
while( h != 0 | w != 0){
for(m = 1;m <= h;m++){
/* for the first line and last line */
if(m == 1 || m == h){
for(n=1;n<=w;n++){
printf("#");
}
printf("\n");
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100663/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100663/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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){
while(1){
int h, w;
scanf("%d%d", &h, &w);
if(!h && !w) break;
for(int i=0; i<h; i++){
if(i==0 || i==h-1){
for(int l=0; l<w; l++) printf("#");
printf("\n");
}else{
for(int l=0; ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100706/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100706/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 long a,b,ab;
scanf("%lld",&a);
scanf("%lld",&b);
scanf("%lld",&ab);
if(a>(1+b)){
a=b+1;
}
else if(b>(1+a)){
b=1+a;
}
printf("%lld",a+b+2*ab);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_10075/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_10075/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 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<W&&j>1)
printf(".");
else
printf("#");
}printf("\n");
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100793/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100793/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int a,b,w,h;
while(1){scanf("%d %d",&w ,&h);
if (w==0 && h==0){break;
}
for(b=1; b<=w; b++){
for(a=1; a<=h; a++){
if( b==1 || b==w )
putchar('#');
else if( a==1 || a==h )
putchar('#');
else
putchar('.');
}
putchar('\n');
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100836/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100836/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
long long int a,b,c,length;
scanf("%I64d%I64d%I64d",&a,&b,&c);
if(a==b||(b-a)==1||(a-b)==1) length=a+b+c*2;
else if((b-a)>1) length=(a+b+c*2)-((b-(a+1)));
else if((a-b)>1) length=(a+b+c*2)-(a-(b+1));
printf("%I64d",length);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_10088/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_10088/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <math.h>
int main(void)
{
int h, w;
int i, j;
for (;scanf("%d%d", &h, &w),h+w;){
for (i = 1; i <= h; i++){
for (j = 1; j <= w; j++)putchar(i>1&&j>1&&i<h&&j<w?'.':'#');
puts("");
}
puts("");
}
return (0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100922/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100922/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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&&!w)
return 0;
for(i=0;i<h;i++){
for(j=0;j<w;j++){
if(i==0||i==h-1||j==0||j==w-1)
printf("#");
else
printf(".");
}
printf("\n");
}
printf("\n");
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_100966/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_100966/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,j,h,w;
while(1){
scanf("%d %d",&h,&w);
if(h==0&&w==0)break;
else for(i=0;i<h;i++){
for(j=0;j<w;j++){
if(i==0||i==h-1||j==0||j==w-1)printf("#");
else printf(".");
}
printf("\n");
}
printf("\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101008/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101008/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int a,b,i,j;
while(1){
scanf("%d%d",&a,&b);
if(a == 0 && b == 0){
break;
}
for(i=1;i<=a;i++)
{
for(j=1;j<=b;j++)
{
if(i > 1 && i < a && j < b && j > 1)
printf(".");
else
printf("#");
}
printf("\n");
}
printf("\n");
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101059/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101059/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 H,W,i,j;
while(1){
scanf("%d %d",&H,&W);
if(H==0 && W==0){
break;
}else{
for(i=0;i<H;i++){
for(j=0;j<W;j++){
if(i+1!=H && j+1!=W &&i!=0 && j!=0){
printf(".");
}else{
printf("#");
}
}
printf("\n");
}
}
printf("\n");
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101101/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101101/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 line1(int W){
for(W;W>0;W--)
putchar('#');
putchar('\n');
}
void line2(int W){
putchar('#');
W = W-2;
for(W;W>0;W--)
putchar('.');
printf("#\n");
}
int main(){
while(1){
int W,H;
scanf("%d %d", &H,&W);
if(W==0 && H==0)break;
li... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101196/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101196/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str.1 = private unnamed_a... |
#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
int main()
{
int H, W;
int h, w;
while (1) {
scanf("%d%d", &H, &W);
if (H == 0 && W == 0) break;
for (w = 0; w < W; w++) putchar('#');
putchar('\n');
for (h = 2; h < H; h++) {
putcha... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101239/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101239/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 long int n,max=0,num,i,start=0,end=0;
scanf("%I64d",&n);
long long int a[n];
long long int arr[1000001][3]={0};
for(i=0;i<n;i++)
{
scanf("%I64d",&a[i]);
arr[a[i]][0]++;
if(arr[a[i]][0]==1)
{
arr[a[i]][1]=i;
arr[a[i]][2]=i;
}
arr[a[i]][2]=i;
if(arr[a[i]][0]>m... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_10129/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_10129/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,s=0,in[500][2],tate,yoko;
for(i=0;i<500;i++){
scanf("%d %d",&in[i][0],&in[i][1]);
if(in[i][0]==0&&in[i][1]==0)
break;
s++;
}
for(i=0;i<s;i++){
for(tate=0;tate<in[i][0];tate++){
if(tate==0||tate==in[i][0]-1){
for(yoko=0;yoko<in[i][1];yoko++){
printf("#")... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101376/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101376/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 taketatuayana[32];
int tudaminami;
int satousatomi;
int matuokayositugu;
if(scanf("%s",taketatuayana)!=1)return 1;
satousatomi=0;
matuokayositugu=0;
for(tudaminami=0;taketatuayana[tudaminami]!='\0';tudaminami++) {
if(taketatuayana[tudaminami]=='A') {
if(!matuokayos... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101433/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101433/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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() {
while (1) {
int N, A, B, C, X;
scanf("%d %d %d %d %d", &N, &A, &B, &C, &X);
if (N == 0 && A == 0 && B == 0 && C == 0 && X == 0) break;
int Y[100];
for (int i = 0; i < N; i++) scanf("%d", &Y[i]);
int stopped = 0, frames = -1;
for (int i = 0; i <= 10000; i++)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101484/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101484/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <float.h>
#include <limits.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
// 内部定数
#define D_HUMAN_MAX 200000 // 最大人数
// 内部変数
static FILE *szpFpI; // 入力
static int siHCnt; // 人数
static long long slTCnt; // 修行回数
static lo... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101541/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101541/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
//tree distfromroot and calcparent
//tenka12016-B
#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... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101585/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101585/source.c"
target datalayout = "e-m:e-p270: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.rs = type { i64, i6... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <limits.h>
#define swap(type,a,b) do{type t=a;a=b;b=t;}while(0);
#define MAX(a,b) (((a)>(b))?(a):(b))
#define MIN(a,b) (((a)<(b))?(a):(b))
#define ll long long
#define INF 100000000
#define FOR(i,a,n) for(i=(a);i<(n);i++)
int comp(con... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101628/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101628/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,ans=0;
int *a;
scanf("%d",&n );
a = calloc(n,sizeof(int));
for(i=0; i<n; i++)
scanf("%d", &a[i]);
for(i=0; i<n-1; i++){
for(j=i+1; j<n; j++){
ans += a[i]*a[j];
}
}
printf("%d", ans);
free(a);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101679/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101679/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,k,s,t;
scanf("%d",&N);
int a[N];
for(i=0;i<N;i++){
scanf("%d",&a[i]);
}
t=0;
for(i=0;i<N;i++){
s=0;
for(j=1;j<N;j++){
if(j<=i){
continue;
}
k=a[i]*a[j];
s=s+k;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101721/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101721/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 takoyakis = 0; // たこ焼きの個数
int delicious_points_list[50]; // おいしさの値を格納する配列
int sum_heal_points = 0; // 回復量の総和
// たこ焼きの個数を設定する
scanf("%d", &takoyakis);
// たこ焼き達においしさ値を設定する
for(int i = 0;i < takoyakis; i++) {
scanf("%d", &delicious_points_list[i]);
}
// 各たこ焼... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101765/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101765/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 = 0, d[100] = { 0 }, i = 0, Pa = 0, j = 0, Po = 0, M = 0, didI[100] = {0}, didJ[100] = {0};
scanf("%d", &N);
for (i = 1; i <= N; i++)
{
scanf("%d", &d[i]);
}
for (i = 1; i <= N; i++)
{
//Pa = (N*(N - 1)) / 2;
for (j = i+1; j <= N; j++)
{
Po = Po + d[i] * d[j]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101808/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101808/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,k,r=0,a[200001];
scanf("%d",&n);
for(i=0;i<n;i++)
scanf("%d",&a[i]);
for(j=0;j<n-1;j++)
for(k=j+1;k<n;k++)
r=r+a[j]*a[k];
printf("%d",r);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101851/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101851/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, ans = 0;
scanf("%d", &n);
int a[n];
for (int i = 0; i < n; i++) scanf("%d", &a[i]);
for (int i = 0; i < n-1; i++) {
for (int j = i+1; j < n; j++) {
ans += a[i] * a[j];
}
}
printf("%d\n", ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101895/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101895/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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];
for(int i=0;i<n;i++)
scanf("%d",&a[i]);
int sum=0;
for(int i=0;i<n-1;i++)
for(int 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_101938/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101938/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 num;
int sum = 0;
scanf("%d",&num);
int tako[num];
for(int i = 0; i < num; i++){
scanf("%d",&tako[i]);
}
for(int j = 0; j < num-1; j++){
for(int k = j+1; k < num ; k++){
sum+=tako[j]*tako[k];
}
}
printf("%d"... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_101981/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_101981/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,d[101],ans = 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++){
ans += d[i] * d[j];
}
}
printf("%d\n",ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102023/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102023/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <inttypes.h>
int32_t N;
int64_t A[271828];
int64_t sum[271828];
void asumisu(int64_t res[4], int64_t hosei, const int64_t* data, int32_t size) {
if (data[0] - hosei > data[size - 1] - data[0]) {
res[0] = res[2] = data[0] - hosei;
res[1] = res[3] = data[size - 1] - data[0];
} else if... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102067/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102067/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
#include <math.h>
int main()
{
//freopen ("1.in","r",stdin);
int t;
scanf("%d",&t);
for(int i=0;i<t;i++)
{
int n,c0,c1,h;
int count=0;
int min;
scanf("%d %d %d %d",&n,&c0,&c1,&h);
char a[n];
scanf("%s",a);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_10211/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_10211/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 25
typedef struct{
int p, s, deg, dep, h, left, right;
}Node;
int depth(Node *, int);
int height(Node *, int);
void Preorder(Node *, int);
void Inorder(Node *, int);
void Postorder(Node *, int);
int main(){
int i, n, id, r;
Node T[MAX], tmp;
scanf("%d",&n);
for(i = 0; i < n;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102168/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102168/source.c"
target datalayout = "e-m:e-p270: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>
typedef struct{
int number;
int son[2];//???
int reach;
int parent;
int sibling;
int degree;
int height;
}node;
node B[10000];
int n;
int a;
int flag=0;
void preorder(int num){
// if(num!=a)printf(" ");
printf(" %d",B[num].number);
if(B[num].son[0]!=-1)preorder(B[num].son[0]);... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102225/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102225/source.c"
target datalayout = "e-m:e-p270: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
struct node{
int p, l, r;
};
struct node T[MAX];
int n;
//???????????????
void pre(int u){
if(u == -1) return;
printf(" %d", u);
pre(T[u].l);
pre(T[u].r);
}
//???????????????
void ino(int u){
if(u == -1) return;
ino(T[u].l);
printf(" %d", u);
ino(T[u].r);
}
//?... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102276/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102276/source.c"
target datalayout = "e-m:e-p270: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 N 100
#define NIL -1
void Pre(int t);
void In(int t);
void Post(int t);
typedef struct {
int p, left, right;
}_A;
_A A[N];
int main(){
int i, j;
int n, id, h, d;
scanf("%d", &n);
for(i = 0; i < n; i++){
A[i].p = NIL;
A[i].left = NIL;
A[i].right = NIL;
}
for(i = 0; i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102319/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102319/source.c"
target datalayout = "e-m:e-p270: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._A = type { i32, i3... |
#define _CRT_SECURE_NO_WARNINGS
#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_102362/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102362/source.c"
target datalayout = "e-m:e-p270: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 N 25
typedef struct{
int parent;
int left;
int right;
}Node;
int n;
Node in[N];
void init();
void PreOrder(Node *, int);
void InOrder(Node *, int);
void PostOrder(Node *, int);
int main(){
int i, id;
init();
scanf("%d",&n);
for(i = 0; i < n; i++){
scanf("%d",&id);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102405/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102405/source.c"
target datalayout = "e-m:e-p270: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 N 100000
#define nil -1
struct Node
{
int le;
int ri;
int pa;
};
int deep(int, int);
struct Node tree[N];
void post(int);
void pre(int);
void ino(int);
int D[N];
int main()
{
int n,i,v,l,r,root;
scanf("%d",&n);
for(i=0; i<n; i++) tree[i].pa = nil;
for(i=0; i<n; i++)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102456/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102456/source.c"
target datalayout = "e-m:e-p270: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>
#if 1
#define gc() getchar_unlocked()
#else
#define gc() getchar()
#endif
int in()
{
int n = 0, c = gc();
if (c == '-') { c = gc();
do n = 10*n + (c & 0xf), c = gc(); while (c >= '0');
return -n;
}
do n = 10*n + (c & 0xf), c = gc(); while (c >= '0');
return n;
}
typedef struct { int parent... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102506/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102506/source.c"
target datalayout = "e-m:e-p270: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>
#pragma warning(disable:4996)
int main()
{
int x, y, z;
scanf("%d %d %d", &x, &y, &z);
char result;
int xy = x - y;
int plus_z = xy + z;
int minus_z = xy - z;
if (z == 0)
{
if (xy == 0)
result = '0';
else if (xy > 0)
result = '+';
else
result = '-';
}
else
{
if (xy == ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_10255/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_10255/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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()
{
long long int n;
scanf("%lld", &n);
printf("%lld\n", n/2+1);
long long int count1=0;
long long int count2=1;
for(int i=1;i<=n;i++)
{
if(i%2==0)
{
count2++;
}
else
{
count1++;
}
pri... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_10260/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_10260/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
#if 1
#define gc() getchar_unlocked()
#else
#define gc() getchar()
#endif
int in()
{
int n = 0, c = gc();
if (c == '-') { c = gc();
do n = 10*n + (c & 0xf), c = gc(); while (c >= '0');
return -n;
}
do n = 10*n + (c & 0xf), c = gc(); while (c >= '0');
return n;
}
typedef struct { int parent... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102643/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102643/source.c"
target datalayout = "e-m:e-p270: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 N 25
struct Node{
int p,l,r;
};
struct Node t[N];
int n;
void preorder(int u){
if(u==-1) return;
printf(" %d",u);
preorder(t[u].l);
preorder(t[u].r);
}
void inorder(int u){
if(u==-1) return;
inorder(t[u].l);
printf(" %d",u);
inorder(t[u].r);
}
void postorder(int u){
if(u=... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102687/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102687/source.c"
target datalayout = "e-m:e-p270: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 n,i=1,j,val,k,m=1,flag;
scanf("%d",&n);
while(1)
{
if(i*2>n)
{
val=i;
break;
}
i++;
}
if(n==1)
val=1;
printf("%d\n",val);
for(k=1;k<=n;k++)
{
flag=0;
fo... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_10273/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_10273/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 30
#define NIL -1
typedef struct node_ {
int parent;
int left;
int right;
} Node;
Node N[max];
void pre(int s) {
if (s == -1) return;
printf(" %d", s);
pre(N[s].left);
pre(N[s].right);
}
void in(int t) {
if (t == -1) return;
in(N[t].le... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102773/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102773/source.c"
target datalayout = "e-m:e-p270: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 i,l,r,p;
int G[30][2],pc[30]={0};
char S[4][100]={"Preorder","Inorder","Postorder"};
void pre(int n)
{
if(n==-1)return;
printf(" %d",n);
pre(G[n][0]);
pre(G[n][1]);
return;
}
void pos(int n)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102816/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102816/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@pc = dso_local local_unnam... |
#include <stdio.h>
#include <stdlib.h>
int main()
{
int x,y,z;
scanf("%d %d %d",&x,&y,&z);
if(x==y)
{
if(z==0)
printf("0\n");
else
printf("?\n");
}
else if(x>y)
{
if(y+z<x)
printf("+\n");
else
printf("?\n");
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_10286/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_10286/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 <unistd.h>
int map[21][21];
void debugPrint(int Y, int X, int n, char D, int M, int m) {
int x,y;
printf("Count:%d ----- %c:%d(%d)\n",n,D,M,m);
for(y=20;y>=0;y--) {
for(x=0;x<=20;x++) {
if ((Y==y)&&(X==x)) printf("* ");
else
printf("%c ", (map[y][x])? 'x':'.');
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102902/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102902/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,j,n,x,y;
char c,t;
int map[30][30];
int r_x,r_y;
for(;scanf("%d",&n),n;)
{
for(i=0;i<30;i++)
for(j=0;j<30;j++)
map[i][j]=0;
for(j=n;j--;)
{
scanf("%d%d",&x,&y);
map[x][y]=1;
}
scanf("%d",&j);
getchar();
for(r_y=10,r_x=10;j--;)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_102946/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_102946/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
typedef long long ll;
typedef int keytype;
int gcd(int a, int b){ return (a % b) ? gcd(b, a % b) : b;}
int lcm(int a, int b){ return (a / gcd(a, b)) * b;}
void quicksort(keytype a[], int first, int last)
{
int i, j;
keytype x, t;
x = a[(first + ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103046/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103046/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 min(int a,int b) {
if(a<b) return a;
return b;
}
int main() {
int n,k;
scanf("%d%d",&n,&k);
printf("%d\n",min(k-1,n-k)+3*n);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_10309/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_10309/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 a,b;
scanf("%d %d",&a,&b);
char s[12];
scanf("%s",s);
int i;
for(i=0;i<a+b+1;i++){
if(i==a){
if(s[a]=='-')continue;
else{
printf("No");
return 0;
}
}
if(s[i]>='0'&& s[i]<='9'){
}else{
printf("No");
return 0;
}
}
printf(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103132/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103132/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,a,b;
scanf("%d %d",&a,&b);
char s[a+b+2];
scanf(" %s",&s);
for(i=0;i<=a+b;i++){
if(i==a){
if(s[i]!='-'){
printf("No");
return 0;
}
continue;
}
if(s[i]<'0'||s[i]>'9'){
printf("No");
return 0;
}
}
printf("... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103183/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103183/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
int descending_compare(const void *a, const void *b){
if (*(int*)a > *(int*)b){
return -1;
}else if (*(int*)a == *(int*)b){
return 0;
}else{
return 1;
}
}
int ascending_compare(const void *a, const voi... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103233/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103233/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 mozi[201], cpmz[201];
while(1){
int i=0, j, cnt=0, p; //cnt シャッフル回数
int len;
scanf("%s", mozi);
if(mozi[0]=='-') break;
len = strlen(mozi);
scanf("%d", &cnt);
while(i<cnt){
scanf("%d", &p);
for(j=0; j<p; j++)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103277/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103277/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 l,i,n,k,sum=0;
char a[220];
while(1){
scanf("%s",a);
l=strlen(a);
if(a[0]=='-'){break;}
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&k);
sum+=k;
}
for(i=0;i<l;i++){
printf("%c",a[(sum+i)%l]);
}
printf("\n");
sum=0;
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103334/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103334/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[200],h1[200],h2[200];
int sn, h, i;
while (scanf("%s", card), strcmp(card, "-") != 0) {
scanf("%d", &sn);
for (i = 0;i < sn;i++) {
scanf("%d", &h);
strncpy(h1, card + h, strlen(card) - h);
strncpy(h2, card, h);
h1[strlen(card) - h] =... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103378/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103378/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_103420/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103420/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
int main(int argc, char *argv[])
{
char str[201], tmp[201];
int i, h, s_cnt;
memset(str, '\0', sizeof(str));
while (1) {
scanf("%s", str);
if (str[0] == '-') {
break;
}
scanf("%d", &s_cnt);
int len =... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103464/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103464/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 cards[201],sub[200];
int i,m,h,len;
while(scanf("%s",cards),strcmp(cards,"-")){
scanf("%d",&m);
len=strlen(cards);
for(i=0;i<m;i++) {
scanf("%d",&h);
strcpy(sub,&cards[h]);
strcat(sub,cards);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103514/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103514/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[1000], temp[1000];
int i,j,k;
int c_num,s_num,shuffle;
while(1){
for(i=0;i<1000;i++){
scanf("%c", &card[i]);
// printf("%d ", i);
if(card[i] == '\n'){
c_num = i;
break;
}
if(card[0] == '-'){
break;
}
}
if(card[0] ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103558/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103558/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <ctype.h>
int main() {
char szInputStr[210];
int iShaffle;
int iShaffleStrlen;
int iCount, iCount2;
char iSlideTmp;
while (1) {
scanf("%s", szInputStr);
if (strcmp(szInputStr, "-") == 0) break;
scanf("%d", &iShaffle);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103600/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103600/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 t[200] , tn[200] ;
int m , h , i , j , k ;
while(1){
scanf("%s" , t) ;
scanf("%d" , &m) ;
if(strcmp(t , "-") == 0){
break;
}
for(i = 0 ; i < m ; i++){
scanf("%d" , &h) ;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103644/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103644/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 cards[400];
int h, i, j, l, m;
while (1) {
scanf("%s", cards);
if (cards[0] == '-' && cards[1] == '\0')
break;
l = 0;
while (cards[l] != '\0')
l++;
scanf("%d", &m);
for (i = 0; i < m; i++) {
scanf("%d", &h);
for (j = 0; j < h; j++)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103688/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103688/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <ctype.h>
int main(int argc, const char * argv[]) {
// insert code here...
while (1) {
char yama[201];
scanf("%s",yama);
if(yama[0] == '-'){
break;
}
int m;
scanf("%d",&m);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103738/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103738/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 INF = 1000100100;
int N, M, L;
int dist[305][305];
int dist2[305][305];
int min(int a, int b) {
if (a < b) { return a; }
else { return b; }
}
int main() {
scanf("%d %d %d", &N, &M, &L);
int i, j, k;
for (i = 0; i < 305; i++) {
for (j = 0; j < 305; j++) {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103781/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103781/source.c"
target datalayout = "e-m:e-p270: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<stdlib.h>
#include<string.h>
#include<stdint.h>
#include<tgmath.h>
#include<stdbool.h>
#include<sys/queue.h>
#include<time.h>
#define ll long long
#define min(a, b) ((a) > (b) ? (b) : (a))
#define max(a, b) ((a) > (b) ? (a) : (b))
#define N 262144
const double pi = 3.141592653589793;
typedef... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103846/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103846/source.c"
target datalayout = "e-m:e-p270: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.comp = type { doubl... |
#include<stdio.h>
int main()
{
int n,a[200][200],k,i;
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d %d",&a[i][0],&a[i][1]);
}
scanf("%d",&k);
for(i=0;i<n;i++)
{
if(a[i][0]<=k&&a[i][1]>=k)
{
printf("%d",n-i);
break;
}
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_10389/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_10389/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 ... |
//Bismillahir Rahmanir Rahim
#include<stdio.h>
int main()
{
int n, a[200],b[200],i,z;
scanf("%d",&n);
for (i=0; i<n;i++){
scanf("%d%d",&a[i],&b[i]);
}
scanf("%d",&z);
int k;
for (k=0; k<n; k++) {
if (z>=a[k] && z<=b[k]) {
printf("%d\n",n-k);
return 0;
}
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_10394/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_10394/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 num(){
char s[11];
int i, n;
for(i=0; i<sizeof(s); i++){
s[i] = getchar();
if(s[i] == ' ' || s[i] == '\n'){
s[i] = '\0';
break;
}
}
sscanf(s, "%d", &n);
return n;
}
int main(void)
{
int i, ok, b=1, c... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_103983/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_103983/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,e;
long d=0;
long a[200],c[200]={0};
scanf("%d",&n);
for(i=0;i<n;i++)
scanf("%ld",&a[i]);
while(1){
for(i=0;i<n;i++){
if(a[i]%2==0){
e=1;
a[i]/=2;
}
else{
e=0;
break;
}
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104025/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104025/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 size,ans=0;
scanf("%d",&size);
int num[size];
int i;
for(i=0;i<size;i++){
scanf("%d",&num[i]);
}
int flag=0;
while(1){
for(i=0;i<size;i++){
if(num[i]%2!=0){
flag =1;
break;
}
num[i]=num[i]/2;
}
if(flag==1)break;
an... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104069/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104069/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 order[100];
//char number[1000];
//char *getInt;
int x[200];
int j, q, k = 0;
if(fgets(order, 1000, stdin) == NULL){
printf("エラーー\n");
}
sscanf(order, "%d", &j);
/*if(fgets(number, 1000, stdin) == NULL){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104111/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104111/source.c"
target datalayout = "e-m:e-p270: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){
int n,i,cnt=0,cont=1;
scanf("%d",&n);
int a[n];
for(i=0;i<n;i++){
scanf("%d",&a[i]);
}
while(cont==1){
for(i=0;i<n && cont==1;i++){
if(a[i]%2==0){
a[i]/=2;
}else{
cont=0;
}
}
if(cont==1){
cnt++;
}
}
printf("%d",cnt);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104155/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104155/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,p=0,f=1;
scanf("%d", &N);
int a[N];
for(int i=0;i<N;i++) scanf("%d", &a[i]);
while(f){
for(int i=0;i<N;i++){
if(a[i]%2==1){ f=0; break;}
a[i]/=2;
}
if(f==1) p++;
}
printf("%d\n", p);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104205/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104205/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 arr[250];
int main()
{
int n,i;
int sum=0;
int flag=1;
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d",&arr[i]);
}
do
{
for(i=0;i<n;i++)
{
if(arr[i]%2!=0)
{
flag=0;
break;
}
arr[i]=arr[i]/2;
}
if(flag==0) bre... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104249/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104249/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdbool.h>
#include<string.h>
#define MAX 500000
#define BUF 200000
bool reverse = false;
int main(){
char S[MAX];
scanf("%s",S);
int Q;
int length=strlen(S);
int back = 1;
for(int i=0;i<length;i++){
S[i+BUF]=S[i];
S[i]='\0';
}
scanf("%d",&Q);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104292/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104292/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@reverse = dso_local local_... |
#include <stdio.h>
int main(){
char s[300000],c,r[300001];
int q,i,j,mp,ap,np,d,f,t,next[300000];
scanf("%s",s);
for (i=0;s[i]!='\0';i++) next[i]=i+1;
mp=0;ap=i-1;np=i;
scanf("%d",&q);
d=1;
for (i=0;i<q;i++) {
scanf("%d",&t);
if (t==1)
d=3-d;
else {
scanf("... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104335/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104335/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#pragma warning(disable:4996)
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define _USE_MATH_DEFINES
#include <math.h>
#include <float.h>
#pragma region 定義
typedef long long ll;
typedef unsigned long long ull;
#define _itoa(A,N) sprintf(A, "%d", N);
int i_dsort(const void* a, const void* b);
int i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104386/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104386/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@pc = internal unnamed_addr... |
#include <stdio.h>
int main(void){
int yoyu = 1;
int last, n, in;
scanf("%d", &n);
scanf("%d", &last);
for(int i = 0; i < n - 1; i++){
scanf("%d", &in);
if(last < in){
yoyu = 1;
last = in;
}else if(last - 1 == in && yoyu){
yoyu = 0;
last = in;
}else if(last - 1 == in){
printf("No\n");
re... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104429/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104429/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, j = 1;
long high, h[100000];
scanf("%d",&n);
for(int i = 0; i<n; i++)
scanf("%ld",&h[i]);
high = h[0];
while((high <= h[j])&&(j != n)){
if (high < h[j])
h[j]--;
high = h[j];
j++;
}
if (j == n)
printf("Yes");
else
printf("No"... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104472/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104472/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 d, n;
int i;
int count = 0;
int max = 0;
int c[100002];
scanf("%d", &n);
for(i = 0; i < n; i++){
scanf("%d", &c[i]);
}
max = c[0];
c[n] = 2000000000;
for(i = n-1; i > 0; i--){
if(c[i-1] - c[i] > 1){
count = 1;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_104522/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_104522/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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.