Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <ctype.h>
#include <limits.h>
#define inf (INT_MAX-1)
#define INF 9223372036854775807
#define sq(n) ((n)*(n))
#define rep(i,n) for(i=0;i<n;i++)
#define rev(i,n) for(i=n-1;i>=0;i--)
#define sort(a,n) qsort(a,n,sizeof(TYPE),cmp)
#defin... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_335411/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_335411/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@mod = dso_local local_unna... |
#include<stdio.h>
int main(void){
int a;
scanf("%d",&a);
int L=a/100;
int R=a%100;
if(1<=L && L<=12){
if(1<=R && R<=12){
printf("AMBIGUOUS\n");
}else{
printf("MMYY\n");
}
}else{
if(1<=R && R<=12){
printf("YYMM\n");
}else{
printf("NA\n");
}
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_335455/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_335455/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 s[4];
int a,b,c,d;
scanf("%s",s);
a=s[0]-48;
b=s[1]-48;
c=s[2]-48;
d=s[3]-48;
if((a*10+b)<=12 && (c*10+d)<=12 && (a*10+b)*(c*10+d)>0)
{
printf("AMBIGUOUS");
}
else if((a*10+b)<=12 && (a*10+b)>0)
{
printf("MMYY");
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_335499/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_335499/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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() {
static char s[8];
int a, b, my, ym;
scanf("%s", s);
a = (s[0] - '0') * 10 + (s[1] - '0');
b = (s[2] - '0') * 10 + (s[3] - '0');
my = a > 0 && a <= 12;
ym = b > 0 && b <= 12;
if (my && ym)
printf("AMBIGUOUS\n");
else if (my)
printf("MMYY\n");
else if (ym)
printf("YYMM\n"... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_335549/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_335549/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@main.s = internal global [... |
#include <stdio.h>
int main() {
int s,res,ues;
scanf("%d",&s);
res=s/100;
ues=s%100;
if(ues<=12 && ues>=1){
if(res<=12 && res>=1)printf("AMBIGUOUS");
else printf("YYMM");
}else{
if(res<=12 && res>=1)
printf("MMYY");
else printf("NA");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_335592/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_335592/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 S;
scanf("%d", &S);
if (S % 100 > 12)
{
if (S > 1299|| S < 100)
{
printf("NA");
}
else
{
printf("MMYY");
}
return 0;
}
if (S % 100 < 1)
{
if (S > 1299 || S < 100)
{
printf("NA");
}
else
{
printf("MMYY");
}
return 0;
}
if (S % 100... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_335635/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_335635/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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<stdint.h>
#include<inttypes.h>
#include<string.h>
#include<math.h>
typedef int32_t i32;
typedef int64_t i64;
#define MAX(a,b) ((a) > (b) ? (a) : (b))
#define MIN(a,b) ((a) < (b) ? (a) : (b))
#define ABS(a) ((a) > (0) ? (a) : -(a))
void run (void) {
char s[5];
scanf (... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_335679/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_335679/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 Do(int S){
int a, b, ma, mb;
a = S / 100;
b = S % 100;
if(a > 0 && a <= 12) ma = 1;
else ma = 0;
if(b > 0 && b <= 12) mb = 1;
else mb = 0;
if(ma == 1 && mb == 1) printf("AMBIGUOUS\n");
else if(ma == 1 && mb == 0) printf("MMYY\n");
else if(ma == 0 && mb == 1) printf("YYMM\n")... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_335721/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_335721/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str.4 = private unnamed_a... |
#include <stdio.h>
int main(void){
int a, b;
scanf("%d %d", &a, &b);
if(a == b){
printf("Draw\n");
}else if(a == 1){
printf("Alice\n");
}else if(b == 1){
printf("Bob\n");
}else{
printf(a > b ? "Alice\n" : "Bob\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_335772/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_335772/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
int a,b;
scanf("%d%d",&a,&b);
if(a==b){
printf("Draw");
}else if(a>b){
if(b==1){
printf("Bob");
}else{
printf("Alice");
}
}else{
if(a==1){
printf("Alice");
}else{
printf("Bob");
}
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_335815/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_335815/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
int A,B;
scanf("%d %d",&A,&B);
if(A==1){
A=14;
}
if(B==1){
B=14;
}
if(A>B){
printf("Alice");
}
else if(A<B){
printf("Bob");
}
else{
printf("Draw");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_335866/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_335866/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int a,b;
scanf("%d %d",&a,&b);
if(a==b){
printf("Draw\n");
}else if(a!=1&&b!=1){
if(a>b){
printf("Alice\n");
}else{
printf("Bob\n");
}
}else if(a==1){
printf("Alice\n");
}else{
printf("Bob\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_335909/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_335909/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
int a,b;
scanf("%d %d",&a,&b);
int c = a-b;
if(c==0) printf("Draw");
else if(a==1) printf("Alice");
else if(b==1) printf("Bob");
else if(c>0) printf("Alice");
else printf("Bob");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_335952/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_335952/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int a,b;
scanf("%d %d",&a,&b);
if(a==1)a=14;
if(b==1)b=14;
if(a>b)printf("Alice\n");
else if(a<b)printf("Bob\n");
else printf("Draw\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_335996/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_335996/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 cardA, cardB;
scanf("%d %d", &cardA, &cardB);
if ( cardA == 1 )
{
cardA += 13;
}
if ( cardB == 1 )
{
cardB += 13;
}
if ( cardA > cardB )
{
printf("Alice\n");
}else if ( cardB > cardA ){
printf("Bob\n");
}else{
printf("Draw\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_336038/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_336038/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 _data{
long long int num;
int c1;
int c2;
}typedef data;
data d[1001];
void sort(int n){
int i,j,t;
long long tmp;
for(i=0;i<n;i++){
for(j=i;j<n;j++){
if(d[i].num>d[j].num){
tmp=d[i].num;
d[i].num=d[j].num;
d[j].num=tmp;
t=d[i].c1;
d[i].c1=d[j].c1;
d[j].c1=t;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_336089/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_336089/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct._data = type { i64,... |
#include <stdio.h>
int main(void) {
int i, a, mai;
for( i = 0 ; i < 4 ; i++ ) {
scanf("%d%d",&a,&mai);
if(a == 1) {
printf("%d\n",6000*mai);
}
if(a == 2) {
printf("%d\n",4000*mai);
}
if(a == 3) {
printf("%d\n",3000*mai);
}
if(a == 4) {
printf("%d\n",2000*mai);... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_336160/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_336160/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,t,n,s;
for(i=0;i<4;i++){
scanf("%d %d",&t,&n);
switch(t){
case 1 :s=6000*n;break;
case 2 :s=4000*n;break;
case 3 :s=3000*n;break;
case 4 :s=2000*n;break;
}
printf("%d\n",s);
}
re... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_336203/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_336203/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,t,n,c;
for(i=0;i<4;i++){
scanf("%d%d",&t,&n);
if(t==1)c=6000;
else if(t==2)c=4000;
else if(t==3)c=3000;
else c=2000;
printf("%d\n",c*n);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_336247/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_336247/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 TMAX 100001
#define THALF 50000
void fill(int *p, int T, int d)
{
int i;
for(i=0; i<T; i++){
*(p+i) = d;
}
}
void stak(int *p, int head, int end, int d)
{
int i;
for(i=head; i<end; i++){
*(p+i) += d;
}
}
int main(void){
int N, T, t[TMAX], entry, exit, d, sw, max=0, i, j;
s... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_336311/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_336311/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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_336355/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_336355/source.c"
target datalayout = "e-m:e-p270: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 = internal global [52 x ... |
#include <stdio.h>
int main(){
int H,W;
scanf("%d%d\n",&H,&W);
char s[H+2][W+2];//隣接マスを見るため添字0,maxをピリオドで埋める
char bin;// \n
for(int i = 0; i < H + 2; ++i){
s[i][0] = '.';
s[i][W + 1] = '.';
}
for(int j = 0; j < W + 2; ++j){
s[0][j] = '.';
s[H + 1][j] = '.';
}
for(int i = 1; i < H + 1; ++i){
for(i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_336405/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_336405/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int W;
char canvas[50][50];
int i;
int j;
int flag;
scanf("%d %d%*c", &H, &W);
for(i = 0; i < H; i++) {
for(j = 0; j < W; j++) {
scanf("%c", &canvas[i][j]);
}
scanf("%*c");
}
for(i = 0; i < H; i++) {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_336456/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_336456/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
//
// main.c
// codeforces
//
// Created by Artem Bastun on 13/10/13.
// Copyright (c) 2013 Artem Bastun. All rights reserved.
//
#include <stdio.h>
#include <stdlib.h>
//int main(int argc, const char * argv[])
//{
// int k , d;
// scanf("%d %d" , &k , &d);
// if (d == 0) {
// if (k == 1) {
// ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_3365/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_3365/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr co... |
#include <stdio.h>
int main(void)
{
int n, jap, eng, mat, i,all,all2;
while (1)
{
scanf("%d", &n);
if (n == 0)
break;
for (i = 0; i < n; i++)
{
scanf("%d %d %d", &mat, &eng, &jap);
all = (mat + eng + jap) / 3;
all2 = (mat + eng) / 2;
if (mat == 100 || eng == 100 || jap == 100)
{
printf... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_336542/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_336542/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
char clas[3]={'A','B','C'};
int has100(int m,int e,int j){
if((m==100)||(e==100)||(j==100)){
return 1;
}
else{
return 0;
}
}
int ave3(int m,int e,int j){
return (m+e+j)/3;
}
void prclass(int x){
printf("%c\n",clas[x]);
}
void dvdstdnt(int n){
if(n!=0){
int m,e,j;
sca... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_336593/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_336593/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@clas = dso_local local_unn... |
#include <stdio.h>
int main()
{
int n, a[200010], check[1000010] = {0}, count = 0;
scanf("%d", &n);
for (int i = 0; i < n; i++)
{
scanf("%d", &a[i]);
}
for (int i = 0; i < n; i++)
{
if (check[a[i]] > 0)
{
check[a[i]] = 2;
continue;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_336636/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_336636/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
int i, N, p[11], max = 0, sum = 0;
scanf("%d", &N);
for (i = 1; i <= N; i++) scanf("%d", &(p[i]));
for (i = 1; i <= N; i++) {
if (p[i] > max) max = p[i];
sum += p[i];
}
printf("%d\n", sum - max / 2);
fflush(stdout);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_336687/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_336687/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
/*#include<math.h>
#include<string.h>*/
#include<stdlib.h>
/*int cnm(void const *a,void const *b)
{
return *(int *)b-*(int *)a;
}
typedef struct huffman{
int data;
struct huffman *lchild,*rchild,*prent;
}man,*huff;*/
/*int cnm(int *a,int *b)
{
return *a-*b;
}*/
int main()
{
int... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33673/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33673/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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, p[10];
int i, max=0, maxi, sum=0;
scanf("%d", &n);
for(i=0; i<n; i++)
scanf("%d", &p[i]);
for(i=0; i<n; i++){
if(p[i] > max){
max = p[i];
maxi = i;
}
}
p[maxi] /= 2;
for(i=0; i<n; i++)
su... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_336780/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_336780/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 max_n (int a[], int n)
{
int max = a[0];
int p;
for (int i = 1; i < n; i++)
if (a[i] > max) {
max = a[i];
p = i;
}
return p;
}
int main(void)
{
int n;
int p[10];
int sum = 0;
int a;
scanf("%d", &n);
for (int i = 0; i < n; i++)
scanf("%d", &p[i]);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_336823/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_336823/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,sum=0;
int p,max=0;
scanf("%d",&N);
for(int i=0;i<N;i++){
scanf("%d\n",&p);
sum+=p;
//printf("%d\n",sum);
max = max>p ? max:p ;
}
printf("%d\n",sum-max/2);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_336867/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_336867/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, b, x, ans;
int p[10000];
scanf("%d", &n);
b = 0;
x=0;
for (i = 0; i<n; i++){
scanf("%d", &p[i]); //ここまで配列の準備
b = b + p[i];
}
for(i = 0; i<n; i++){
if(p[i]>=x){
x = p[i];
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_336917/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_336917/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,most=0,ans=0,p;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&p);
if(p > most){
most = p;
}
ans += p;
}
ans -= (most/2);
printf("%d",ans);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_336960/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_336960/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a[1000][1000], row[1000], col[1000];
int main()
{
int i, j, k, n, m, tmp;
char c;
scanf("%d%d%d", &n, &m, &k);
for (i = 0; i < n; ++i)
row[i] = i;
for (i = 0; i < m; ++i)
col[i] = i;
for (i = 0; i < n; ++i)
for (j = 0; j < m; ++j)
scanf("%d", &a[i][j]);
getch... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33701/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33701/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 a;
int b;
scanf("%d",&a);
scanf("%d",&b);
printf("%d ",a*b);
printf("%d\n",2*a+2*b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337068/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337068/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int a, b;
scanf("%d %d", &a, &b);
printf("%d %d\n", a * b, (2 * a) + (2 * b));
return (0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337125/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337125/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
int a,b;
scanf("%d",&a);
scanf("%d",&b);
printf("%d %d\n",a*b,(a+b)*2);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337176/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337176/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int a,b;
scanf("%d %d",&a,&b);
printf("%d %d\n",a*b,2*a+2*b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337219/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337219/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, k, l ;
char is[204] = { 0 }, os[201] ;
scanf("%s", is) ;
i = j = k = l = 0 ;
while (is[i])
{
if (is[i] == 'W' && is[i + 1] == 'U' && is[i + 2] == 'B')
{
i += 3 ;
if (l)
{
k = 1 ;
}
l = 0 ;
}
else
{
if (!l && k)
{
o... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33727/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33727/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main()
{
int a,b,m,n;
scanf("%d %d",&a,&b);
m=a*b;
n=2*a+2*b;
printf("%d %d\n",m,n);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337312/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337312/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void) {
int a,b;
scanf("%d", &a);
scanf("%d", &b);
printf("%d %d\n", a*b, 2*a+2*b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337370/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337370/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int a;
int b;
printf("");
scanf("%d %d", &a, &b);
printf("%d %d\n", a * b, (a + b) * 2);
return (0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337413/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337413/source.c"
target datalayout = "e-m:e-p270:32: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>
int main(void){
int a,b;
scanf("%d %d" ,&a ,&b);
printf("%d %d\n" ,a*b ,2*a+2*b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337457/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337457/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
char c;
scanf("%d%c%d",&a,&c,&b);
printf("%d %d\n",a*b,2*(a+b));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337514/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337514/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d %d\n",a*b,(a+b)*2);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337558/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337558/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int a, b;
scanf("%d %d", &a, &b);
printf("%d %d\n", a * b, (a + b) * 2);
return (0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337622/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337622/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int a,b;
scanf("%d%d",&a,&b);
printf("%d",(a+b)%24);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337666/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337666/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include <ctype.h>
#include <stdint.h>
#include <string.h>
#include <wchar.h>
#include <math.h>
#define N_MAX (100)
#define P_MAX (100)
#define DP_ARRAY_SIZE (N_MAX * P_MAX / 32 + 1)
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337716/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337716/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,k,i,a[100000],j;
while(scanf("%d%d",&n,&k)!=EOF)
{
for(i=0;i<n;i++)
scanf("%d",&a[i]);
for(j=1;j<=n,j<k;j++)
{
k-=j;
}
if(j<=n)
printf("%d\n",a[k-1]);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33776/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33776/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
int main ()
{
int A,B,C;
0 <= A;
B <= 23;
scanf ("%d", &A);
scanf ("%d", &B);
C = A + B;
if (C>=24){
printf ("%d", C - 24);
} else if ( C < 24){
printf ("%d",C);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337802/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337802/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int a,b,c;
scanf("%d %d",&a,&b);
c=a+b;
if(c<24)
printf("%d\n",c);
else
printf("%d\n",c%24);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337846/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337846/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void) {
int a, b;
scanf("%d %d", &a, &b);
printf("%d", (a + b) % 24);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337897/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337897/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
long long int k,a[100001],count;
scanf("%d %I64d",&n,&k);
for(i=0;i<n;i++)scanf("%I64d",&a[i]);
count=0;
i=0;
while(1){
if(count>=k)break;
count+=i+1;
i++;
}
if(count==k)printf("%I64d\n",a[i-1]);
else printf("%I64d\n",a[i-count+k-1]);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33794/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33794/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>
#include <math.h>
#define _USE_MATH_DEFINES
int main()
{
int n=0,best_n=0,T=0,A=0,height_i[1001]={0},temp_average=0,temp_diff_from_a=0,new_temp_diff_from_a=0;
scanf("%d",&n);
scanf("%d %d",&T,&A);
for(int i=0;i<n;i++)
scan... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337983/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337983/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,t,a,s,r=1e9,z;
scanf("%d%d%d",&n,&t,&a);
for(int i=0;i<n;i++){
scanf("%d",&s);
if(abs(1000*t-s*6-1000*a)<r){
r=abs(1000*t-s*6-1000*a);
z=i;
}
}
printf("%d",z+1);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338025/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338025/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
int main(void){
int n,t,a;
scanf("%d%d%d",&n,&t,&a);
int tmp[n],i,min=1919810,ans=0;
for(i=0;i<n;i++){
scanf("%d",&tmp[i]);
tmp[i]=abs(a*1000-(t*1000-(tmp[i]*6)));
if(min>tmp[i]){min=tmp[i];ans=i;}
}
printf("%d\n",ans+1);
return 0;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338083/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338083/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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{
double t;
int num;
} hight;
int main()
{
int n, i;
scanf("%d\n", &n);
hight h[n];
double t, a, tempar;
scanf("%lf%lf", &t, &a);
for(i = 0; i < n; ++i){
h[i].num = i+1;
scanf("%lf", &h[i].t);
tempar = t - h[i].t * 0.006;
h[i].t = a - tempar;
if(h[i]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338126/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338126/source.c"
target datalayout = "e-m:e-p270: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.hight = type { doub... |
#include <stdio.h>
#include <math.h>
int main(void) {
int n,t,a,h[1000],i,ans;
double dif = 999;
scanf("%d",&n);
scanf("%d %d",&t,&a);
for (i = 0;i < n;i++) {
scanf("%d",&h[i]);
if (fabs(a - (t - h[i] * 0.006)) < dif) {
dif = fabs(a - (t - h[i] * 0.006));
ans... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338177/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338177/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 _map {
int nDepth;
char chMap;
} stMap[20000];
int chLake(int staMap, const int finMap, const struct _map* stMap, const int nDepth);
int main(){
int maxH=0,minH=0,endMap=0;
int A=0,L[10000],k=0;
if (1) {
char theMap; int m=0;
int curH=0;
while(scanf("%c",&theMap) !=E... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338227/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338227/source.c"
target datalayout = "e-m:e-p270: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._map = type { i32, ... |
#include<stdio.h>
int main()
{
char s[20000];
int high[20000];
int a[20000];
int tmp[20000];
int temp = 0;
int count = -1;
scanf("%s", s);
int i, j, k, tmphigh = 0;
int A = 0;
for(i = 0; s[i] != '\0'; i++) {
switch(s[i]) {
case '\\':
tmphigh--;
high[i] = tmphigh;
break;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338270/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338270/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <assert.h>
#include <stdlib.h>
// just implement simple stack
typedef struct StkKey {
int b4;
int area;
} StkKey;
typedef struct StkDat {
StkKey key;
struct StkDat *next;
} StkDat;
typedef struct Stack {
size_t len;
StkDat *top;
} Stack;
#define stk_init(s) ((s) ? ((... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338320/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338320/source.c"
target datalayout = "e-m:e-p270: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.Stack = type { i64,... |
#include<stdio.h>
#include<stdlib.h>
#define MAX 20000 // スタックの最大値
typedef struct{
int top; // スタックポインタ(一番上の位置)
int S[MAX];
}Stack;
// スタック st の初期化
void initialize(Stack *st)
{
st->top = 0;
st->S[st->top] = 0;
}
// スタック st が空かどうかを確認
int isEmpty(Stack *st)
{
return st->top == 0;
}
// スタック st か... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338364/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338364/source.c"
target datalayout = "e-m:e-p270: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.Stack = type { i32,... |
#include <stdio.h>
int main(){
int c,x,i,sum = 0,putop = 0,xtop = 0;
int xstack[20000];
int lefts[20000];
int vols[20000];
for(x = 0; (c = getchar()) != '\n'; x++){
if(c == '\\'){
xstack[xtop++] = x;
} else if (c == '/'){
if(xtop == 0) continue;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338414/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338414/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
// Aizu Vol-1 0111: Doctor's Memorable Codes
// 2017.8.12 bal4u@uu
#include <stdio.h>
#include <ctype.h>
char *gets(char *);
typedef struct { int l, r, c; } T;
T tbl[63] = { { 1, 2, 0 },
/* 1 */{ 3, 4, 0 },
/* 2 */{ 5, 6, 0 },
/* 3 */{ 7, 8, 0 },
/* 4 */{ 9, 10, 0 },
/* 5 */{ 11, 12, 0 },
/* 6 */{ 13, 14, 0... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338458/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338458/source.c"
target datalayout = "e-m:e-p270: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.T = type { i32, i32... |
#include<stdio.h>
int main()
{
int day,ans,off=0,remain,goff;
scanf("%d",&day);
ans=day/7;
off=ans*2;
goff=off;
remain=day-(ans*7);
if(remain>=2)
{
if(remain==6) {
goff=goff+1;
off=off+2;
}
else off=off+2;
}
else if(re... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33853/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33853/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
typedef struct Edge_{
int a, b, color;
struct Edge_ *right;
} Edge;
typedef struct {
Edge *up;
Edge *down;
} Node;
static Edge edge[100000];
static Node node[100000];
static int maxColornum = 0;
void paint(Node *np, int nodeColor) {
int color = 0;
Edge *ep = np->down;
while (ep) {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338573/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338573/source.c"
target datalayout = "e-m:e-p270: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 { ptr, ... |
#include<stdio.h>
const long long int NUM = 1000000007;
int main(){
long long int ct=1;
int ct1=0,ct2=0,ct3=0;
int n,a;
scanf("%d",&n);
for(int i = 0;i < n;i++){
scanf("%d",&a);
ct *= (long long int)((a==ct1)+(a==ct2)+(a==ct3));
ct %= NUM;
if(a == ct1){ct1++;}
else if(a == ct2){ct2++;}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338630/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338630/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@NUM = dso_local local_unna... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int compare(const void *a, const void *b)
{
return *(int*)b - *(int*)a;
}
int main()
{
int num, size;
int *values;
scanf("%d", &num);
size = num * 10;
values = (int *)malloc(size * sizeof(int));
//memset(cnt, 0, num * sizeof(int));
// 読み込み
int i = 0... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338681/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338681/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 NUM_MAX (200)
int main(void)
{
int n, l[NUM_MAX], i,j,temp,sum;
scanf("%d", &n);
for(i = 0; i < 2*n; i++){
scanf("%d", &l[i]);
}
for(i=0;i<2*n;i++){
for(j=2*n-1;j>i;j--){
if(l[j]>l[j-1]){
temp=l[j];
l[j]=l[j-1];
l[j-1]=temp;
}
}
}
sum=0;
fo... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338731/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338731/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <math.h>
int main(void)
{
int r;
scanf("%d", &r);
printf("%f", 2*r*M_PI);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338797/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338797/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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()
{
int n, max, i, j, sum, k;
char s[110];
scanf ("%d", &n);
scanf ("%s", &s);
for (i=0, max=0; i<n-1; i++)
{
for (j=0, sum=0; j<n-1; j++)
{
if (s[j] == s[i] && s[j+1] == s[i+1])
{
sum++;
}
}
if (max < sum)
{
max =sum;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33884/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33884/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 R;
double pi=3.1416,ans;
scanf("%d",&R);
ans=2*pi*R;
printf("%lf",ans);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338883/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338883/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 pi 3.14159
int main()
{
int R;
float result;
scanf("%d",&R);
result=2*pi*R;
printf("%.2f\n",result);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338926/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338926/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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) {
long n;
char s[200];
scanf("%ld", &n);
scanf("%s", s);
int count[30][30] = {{0}};
int i, j;
for (i = 0; i < strlen(s) - 1; i++) {
count[s[i] - 'A'][s[i+1] - 'A']++;
}
char c1, c2, maxCount = 0;
for (i = 0;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33897/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33897/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 ... |
#define _USE_MATH_DEFINES
#include <stdio.h>
#include <math.h>
int main(void) {
float input = 0;
float output = 0;
scanf("%f", &input);
output = 2 * input*M_PI;
printf("%.2f\n", output);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339055/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339055/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 R;
float P;
scanf("%d",&R);
P=2*3.141592*R;
printf("%lf",P);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339105/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339105/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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("%f",3.14159*n*2);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339149/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339149/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 r;
scanf("%d",&r);
printf("%.4lf\n", 2*3.14159265*r);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339192/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339192/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#define pi acos(-1.0)
int main()
{
int r;
double a;
scanf("%d",&r);
a=2*pi*r;
printf("%.15lf\n",a);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339286/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339286/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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){
double r,pi=3.141592653589;
scanf("%lf",&r);
printf("%f",2*r*pi);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339329/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339329/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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()
{
double a;
scanf("%lf",&a);
printf("%lf\n",a*3.1416*2);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339372/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339372/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 r;
scanf("%d", &r);
printf("%lf\n", r * 6.283185307);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339415/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339415/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include <math.h>
int main(void){
int r;
scanf("%d",&r);
double l=2*r*M_PI;
printf("%lf",l);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339459/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339459/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
double pi = 3.14159265359;
int y = scanf("%d", &N);
printf("%f\n", 2*pi*N);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339501/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339501/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <math.h>
#include <stdio.h>
int main(){
float R;
float ans;
scanf("%f", &R);
ans = 2 * M_PI * R;
printf("%f", ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339545/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339545/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<math.h>
int main(void){
int R;
scanf("%d",&R);
printf("%lf",2.0*R*M_PI);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339589/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339589/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 PI 3.14159265359
int main(void){
int R;
double ans;
scanf("%d",&R);
ans = 2*R*PI;
printf("%lf\n",ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339732/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339732/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(){
float r;
scanf("%f",&r);
printf("%f",2 * M_PI * r);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339783/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339783/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 R;
float l;
scanf("%d",&R);
l=2*R*M_PI;
printf("%f",l);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339833/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339833/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 swap( F, A, B ) ({ F FF = A; A = B; B = FF; })
#define min( F, A, B ) ({ F FF = A, FFF = B; FF < FFF ? FF : FFF; })
#define max( F, A, B ) ({ F FF = A, FFF = B; FF > FFF ? FF : FFF; })
#define abs( F, A ) ({ F FF = A; FF > 0 ? FF : -FF; })
#define MAX 300000
int a[ MAX + 10 ], f[ MAX + 10 ][ ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33992/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33992/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
int main(){
int N = 0;
scanf("%d",&N);
printf("%lf\n",(2.0*M_PI*N));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339963/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339963/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#define _CRT_SECURE_NO_WARNINGS
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include <limits.h>
#include <ctype.h>
#include <stdint.h>
#include <string.h>
#include <wchar.h>
#include <math.h>
#define N_MAX (100)
#define P_MAX (100)
#define DP_ARRAY_SIZE (N_MAX * P_MAX / 32 + 1)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340004/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340004/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <stdbool.h>
typedef struct _node {
unsigned int key;
unsigned int priority;
struct _node* left;
struct _node* right;
} Node;
typedef Node* NodePointer;
NodePointer insert (NodePointer, unsigned int, unsigned int);
bool find (NodePointer, unsigned int);
NodePoin... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340048/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340048/source.c"
target datalayout = "e-m:e-p270: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<math.h>
#define PI 3.141592653589793
int main(void){
int a,b,dig,use;
double S,L,h,c;
double cost,sint,rad;
scanf("%d %d %d",&a,&b,&dig);
rad = dig*PI/180.0;
c = (a*a)+(b*b)-(2*a*b*cos(rad));
c = sqrt(c);
L = a + b + c;
S = (a*b*sin(rad))/2;
h = (S*2) / a;
printf("%... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340099/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340099/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,b,C;
scanf("%d %d %d",&a,&b,&C);
printf("%lf\n",a*b*sin(M_PI*C/180)/2);
printf("%lf\n",a+b+sqrt(a*a+b*b-2*a*b*cos(M_PI*C/180)));
printf("%lf\n",b*sin(M_PI*C/180));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340141/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340141/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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()
{
double a,b,C;
double S,L,h;
scanf("%lf %lf %lf",&a,&b,&C);
S = b*(sin(C/180 * M_PI) * a) / 2;
L = a+b+sqrt(pow(a,2) + pow(b,2) - 2*a*b*cos(C*M_PI/180));
h = sin(C/180 * M_PI)*b;
printf("%lf\n%lf\n%lf\n",S,L,h);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340185/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340185/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, num[3] = {0}, i, j;
scanf("%d", &n);
scanf("%d %d", &num[0], &num[1]);
if (n == 2) {
for (i = 1; i < num[0] / 2 || i < num[1] / 2; i++) {
if (num[0] % i == 0 && num[1] % i == 0) {
printf("%d\n", i);
}
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340235/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340235/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 min(long long a,long long b){
if(a < b){
return a;
}
return b;
}
int main(void){
long long N,M;
scanf("%lld%lld",&N,&M);
if(min(N,M) == 1){
if(N+M == 2){
printf("1\n");
}else{
printf("%lld",N+M-3);
}
}else{
printf("%lld\n",(N-2)*(M-2));
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340286/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340286/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n, m, count = 0;
scanf("%lld %lld", &n, &m);
int tmp;
if(n > m){
tmp = n;
n=m;
m=tmp;
}
if(n==1){
if(m <= 2){
count = m%2;
}else{
count = m-2;
}
}else if(n==2){
count = 0;
}else if(n>2){
count = (n-2)*(m-2);... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340329/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340329/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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.