Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include <stdio.h>
int i,j,k,H,W;
void Drawline_0(int W)
{
for(j=0;j<W;j++){
if(j%2 == 0){
printf("#");
}else{
printf(".");
}
}
printf("\n");
}
void Drawline_1(int W)
{
for(j=0;j<W;j++){
if(j%2 == 1){
printf("#");
}else{
printf(".");
}
}
printf("\n");
}
int main()
{
for(k=0;;k++){
s... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217570/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217570/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@j = dso_local local_unname... |
#include<stdio.h>
int main() {
int H, W;
int i, j;
scanf("%d%d", &H, &W);
while (H != 0 || W != 0) {
for (i = 0; i < H; i++) {
for (j = 0; j < W; j++) {
if ((i + j) % 2 == 0)printf("#");
else printf(".");
} printf("\n");
}
printf("\n");
scanf("%d%d", &H, &W);
}return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217613/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217613/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 + j) % 2) == 0){
printf("#");
}
else{
printf(".");
}
}
puts("");
}
puts("");
}
}
re... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217664/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217664/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
for(i=0;i<h;i++){
for(j=0;j<w;j++){
if((i%2==0&&j%2==0)||(i%2==1&&j%2==1)){
printf("#");
}else{
printf(".");
}
}
printf("\n");
}
printf("\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217707/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217707/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,a,b,c;
while(1){
scanf("%d %d",&H,&W);
if(H==0 && W==0){break;}
for(b=1;b<=H;b++){
for(a=1;a<=W;a++){
c = a+b;
if(c %2== 0){printf("#");
}else{printf(".");
}
}
printf("\n");
}
printf("\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217750/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217750/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,c;
int i,j;
while (1) {
scanf("%d%d",&r,&c);
if (r == 0 && c == 0) {
break;
}
for (i = 0;i != r;++i) {
for (j = 0;j != c;++j) {
printf((i + j)%2 == 0 ? "#" : ".");
}
printf("\n");
}
printf("\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217794/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217794/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,a[100000],b,c=0,d=0,e=0;
for(b=0;;b++){
scanf("%d %d",&H,&W);
a[b]=H;
a[b+1]=W;
if(a[b]+a[b+1]==0){
break;
}
b++;
}
for(b=0;a[b]+a[b+1]!=0;b++){
for(c=0;c<a[b];c++){
if(c%2==0){
for(e=0;e<a[b+1];e++){
if(e%2==0){
printf("#");
if(c>=... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217844/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217844/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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)
return 0;
for (i = 0; i < h; i++) {
for (j = 0; j < w; j++) {
if ((i + j) % 2 == 0)
printf("#");
else
printf(".");
}
printf("\n");
}
printf("\n");
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217895/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217895/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
}
for (i = 0; i < H; i++) {
for (j = 0; j < W; j++) {
if (i % 2 == 0 && j % 2 == 1) {
printf(".");
}
else if (i % 2 == 1 && j % 2 == 0) {
printf("."... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217981/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217981/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
do{
scanf("%d %d", &h, &w);
if(h == 0 && w == 0){
break;
}
for(i = 0; i < h; i++){
if(i%2 == 0){
for(j = 0; j < w; j++){
if(j%2 == 0){
printf("#");
}else{
printf(".");
}
}
}else{
for(j = 0; j < w; j++){
if... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218023/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218023/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 + j )% 2 == 0 ){
printf("#");
}
else{
printf(".");
}
}
printf("\n");
}
printf("\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218067/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218067/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,c[7]={},i,t;
char ch;
scanf("%d%*c",&n);
while (n-->0)
{
for (i=0;i<7;i++)
{
scanf("%c",&ch);
if (ch=='1')
c[i]++;
}
scanf("%*c");
}
for (t=0,i=0;i<7;i++)
if (c[i]>t)
t=c[i];
printf("%d",t);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21811/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21811/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 i,j,a,b,c;
for(c=1;;)
{
scanf("%d %d",&a,&b);
if(a==0 && b==0)break;
for(j=1;j<=a;j++)
if(j%2==0)
{
for(i=1;i<=b;i++)
{
if(i%2==0)
printf("#");
else
printf(".");
}
printf("\n");
}
else
{
for(i=1;i<=b;i++)
{
if(i%2==0)
prin... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218168/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218168/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(i=0;i<H;i++){
for(j=0;j<W;j++){
if(j%2==1){
if(i%2==1){
printf("#");
}else{
printf(".");
}
}else{
if(i%2==1){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218254/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218254/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 printBoard(int x, int y){
int board[2] = {'#', '.'}, flip;
for(int i = 0; i < x; i++){
flip = i % 2;
for(int j = 0; j < y; j++){
printf("%c", board[flip]);
flip = flip * (-1) + 1;
}
printf("\n");
}
if(x != 0 && y != 0)
printf("\n");
return 0;
}
int main(){
int count =... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218348/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218348/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.printBoard.board =... |
#include<stdio.h>
int main(){
int h,w;
scanf("%d%d",&h,&w);
int i,j;
while(h!=0||w!=0){
int flg=1;
for(i=0;i<h;i++){
int m=flg;
for(j=0;j<w;j++){
if(flg){
printf("#");
flg=0;
}
else{
printf(".");
flg=1;
}
}
flg=!m;
printf("\n");
}
printf("\n");
scanf("... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218441/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218441/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
char str[2000];
scanf("%s",&str);
if((str[0]>='a')&&(str[0]<='z'))
str[0]=str[0] - ('a'-'A');
printf("%s",str);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21855/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21855/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 a,b,k;
scanf("%lld %lld %lld",&a,&b,&k);
if(a>k){
a=a-k;
}
else{
k=k-a;
a=0;
if(k>b){
b=0;
}
else{
b=b-k;
}
}
printf("%lld %lld\n",a,b);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218593/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218593/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 int a,b,k,i;
scanf("%ld%ld%ld",&a,&b,&k);
if(a>=k)
a -= k;
else if(a+b>=k){
k -= a;
a = 0;
b -= k;
}
else
a = b = 0;
printf("%ld %ld\n",a,b);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218643/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218643/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#define yes "Yes\n"
#define no "No\n"
//int m,n;
//int i,j,l;
//int a,b,c,d,e,f,g;
//int sum,total;
long long int a,b,k,i;
//float ;
//double ;
//char a[101],b[101],s[101],t[101],u[101];
int main(void){
scanf("%lld %lld %lld",&a,&b,&k);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218687/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218687/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 str[1000];
scanf("%s",str);
//char newstr[1000];
if(str[0] >= 65 && str[0] <=90)
{
printf("%s",str);
}
else
{
str[0] = str[0]-32;
printf("%s",str);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21873/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21873/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <stdlib.h>
int main()
{
long long int a, b, k;
scanf("%lld %lld %lld", &a, &b, &k);
printf("%lld %lld", (a > k) ? a - k : 0, (a > k) ? b : ((a + b > k) ? a + b - k : 0));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218788/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218788/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#define _max(_x, _y) ((_x)>(_y)?(_x):(_y))
int main(void)
{
char S[101], T[101];
long A, B, K;
long Ax, Bx;
scanf("%ld %ld %ld", &A, &B, &K);
Ax = _max(A - K, 0);
Bx = _max(B - _max(K - A, 0), 0);
printf("%ld %ld\n", Ax, Bx);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218830/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218830/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
const int N = 100001;
int main(){
char s[N];
scanf("%s", s);
int n = strlen(s);
int exists = s[0] == '0' || s[n - 2] == '0' || s[n - 1] == '1' ? 0 : 1;
for(int i = 1; 2 * i <= n - 2; i++){
if(!exists) break;
if(s[i] != s[n - 2 - i]) exists = 0;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218874/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218874/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@N = dso_local local_unname... |
#include <stdio.h>
#include <math.h>
int n;
int cnt[10][10];
int main() {
scanf("%d", &n);
for (int i = 1; i <= n; i++) {
int x = i;
while (x >= 10) x /= 10;
cnt[x][i % 10]++;
}
long long ans = 0;
for (int i = 1; i <= n; i++) {
int x = i;
while (x >= 10) x /... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218924/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218924/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 = 0, i, x;
scanf("%d", &x);
for( i = 1; i < 2000; i++ ){
a += x;
if( a % 360 == 0 ){
printf("%d\n", i);
return 0;
}
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218968/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218968/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x,y;
scanf("%lld", &x); scanf("%lld", &y);
if(x-y==1||x-y==-1||x-y==0)
puts("Brown");
else
puts("Alice");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219017/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219017/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
typedef long long ll;
int main(){
int n;
char s[105],t[105];
int cnt = 0;
int ans,i;
scanf("%d", &n);
scanf("%s %s", s, t);
ans = n*2;
for(i = 0;i < n;i++){
if(strncmp(s + i,t,n - i) == 0){
cnt = n - i;
break;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219075/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219075/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
#define LEN 101
int main(void){
int N, i, match;
char s[LEN], t[LEN];
scanf("%ld", &N);
scanf("%s", s);
scanf("%s", t);
for(match = N; match >=0; match--){
if(strncmp(&(s[N - match]), t, match) == 0) break;
}
printf("%ld\n", 2... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219125/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219125/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <limits.h>
#include <stdlib.h>
#include <math.h>
int main(void)
{
long int i, j, index;
long int n;
long int sum;
long int left, right;
long int work, flg;
long int ans;
char str[500001];
scanf("%s", str);
n = strlen(str);
ans = 0;
left = 0;
right = 0;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219183/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219183/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
int n, a, b;
int distance;
scanf("%d %d %d", &n, &a, &b);
distance = b - a;
if ((distance % 2) == 0)
{
printf("Alice\n");
}
else
{
printf("Borys\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219226/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219226/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int N,A,B;
scanf("%d %d %d",&N,&A,&B);
if((B-A)%2==0){
printf("Alice");
}else{
printf("Borys");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219277/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219277/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 d,h,v,e;
float rate,ans;
scanf("%d%d%d%d",&d,&h,&v,&e);
rate=4*(float)v/((float)(d*d)*M_PI);
//printf("%f",rate);
if(rate<(float)e)
{
printf("NO\n");
}
else
{
printf("YES\n");
ans=(float)h/(rate-(float)e);
printf("%.12f\n",ans);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21932/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21932/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 i,n,m,p,x[128];
double total=0;
while(1){
scanf("%d %d %d",&n,&m,&p);
if(n==0&&m==0&&p==0)break;
for(i=0;i<n;i++)scanf("%d",&x[i]);
for(i=0;i<n;i++)total+=x[i]*(100-p);
if(x[m-1])printf("%d\n",(int)(total/(double)x[m-1]));
else printf("0\n");
total=0;
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219370/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219370/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 N[3];
scanf("%s",&N);
if(N[0] == N[2]){
printf("Yes");
}else{
printf("No");
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219428/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219428/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,rev=0,rem,a;
scanf("%d",&n);
a=n;
while(n!=0 )
{
rem = n%10;
rev = rev*10 + rem;
n /= 10;
}
if (a == rev)
printf("Yes");
else
printf("No");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219479/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219479/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
int N;
scanf("%d",&N);
if(N%10 == N/100)printf("Yes\n");
else printf("No\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219521/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219521/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 N[4];
scanf("%s", N);
if(N[0]==N[2]) printf("Yes\n");
else printf("No\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219565/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219565/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
char yn[3];
scanf("%d",&N);
if(N/100==N%10){
printf("Yes\n");
return 0;
}else{
printf("No\n");
return 0;
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219615/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219615/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 m,n;
int a,b,c;
int temp;
scanf("%d\n",&m);
a=m/100;
temp=m%100;
b=temp/10;
c=temp%10;
n=c*100+b*10+a;
if(n==m){
printf("Yes\n");
}
else{
printf("No\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219666/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219666/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 {
int key, id;
} data;
void merge_sort(data x[], int n)
{
static data y[200001] = {};
if (n <= 1) return;
merge_sort(&(x[0]), n/2);
merge_sort(&(x[n/2]), (n+1)/2);
int i, p, q;
for (i = 0, p = 0, q = n/2; i < n; i++) {
if (p >= n/2) y[i] = x[q++];
else if (q >= n) y[i] =... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219709/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219709/source.c"
target datalayout = "e-m:e-p270: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 { i32, ... |
#include <stdio.h>
int main(void){
// Your code here!
int a,b,m,i,ma,mb,mina,minb,min;
scanf("%d %d %d",&a,&b,&m);
int as[a],bs[b],ms[m][3];
for(i=0; i<a; i++){
scanf("%d",&as[i]);
}
for(i=0; i<b; i++){
scanf("%d",&bs[i]);
}
for(i=0; i<m; i++){
scanf("%d %d %d... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219752/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219752/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
typedef long long ll;
typedef long double ld;
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k))
#define INF (1LL<<60)
#define MOD1 1000000007
void swap(ll *a, ll *b){ll c;c=*b;*b=*a;*a=c;}/*swap 交換*/
ll max... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219796/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219796/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 k, x, i;
scanf("%d %d", &k, &x);
//黒石の座標を出力する
for (i = (-1 * k) + 1; i < k; i++) {
printf("%d ", x + i);
}
printf("\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219839/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219839/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 "time.h"
#include "unistd.h"
#include "string.h"
#include <math.h>
int ans;
int main(int argc, char* argv[]){
long int a=0,b,c;
scanf("%ld %ld",&a,&b);
for (int i = b-a+1; i < b+a; i++) {
printf("%d ",i);
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219882/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219882/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int x,k,i;
scanf("%d%d",&k,&x);
if(x-k+1>=-1000000 && x+k-1<=1000000){
for(i=x-k+1; i<=x+k-1; i++){
printf("%d ",i);
}
printf("\n");
}
else if(x-k+1>=-1000000){
for(i=x-k+1; i<=1000000; i++){
printf("%d ",i);
}
printf("\n");
}
else{
for... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219925/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219925/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 K,X,i,j;
scanf("%d %d",&K,&X);
int count=X;
int result=X;
int num=X-K+1;
if(K>1)
{
printf("%d ",num);
}
for(i=1;i<(K-1);i=i+1)
{
num=num+1;
printf("%d ",num);
}
printf("%d ",count);
for(j=1;j<K;j=j+1)
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219969/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219969/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <math.h>
#include <string.h>
int main(){
int n;
int i = 0;
char str[100];
int k, m;
scanf("%d", &n);
scanf("%s", str);
if (strlen(str) > n){
return 0;
}
k = 0;
m = 0;
do{
if (str[i] == 'S' && str[i+1] == 'F'){
k++;
}
else if(str[i] == 'F' && str[i+1] == 'S'){
m++;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22001/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22001/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 k,x;
scanf("%d %d",&k,&x);
for(int i=x-k+1;i<=x+k-1;i++){
printf("%d ",i);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_220053/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_220053/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 K,X;
scanf("%d%d",&K,&X);
for(int i=(X-K+1);i<=X+K-1;i++){
printf("%d",i);
printf(" ");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_220097/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_220097/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#define MAX 200000
int a[MAX + 1], b[MAX], bi;
int main(void)
{
int n, m;
scanf("%d %d", &n, &m);
for (int i = 1; i <= n; i++) {
scanf("%d", &a[i]);
if (a[i] != a[i - 1])
b[bi++] = i;
}
for (int i = 0; i < m; i++) {
int l, r, x;
scanf(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22014/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22014/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
//AtCoder用
//プリプロセッサ系
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
#include <stdlib.h>
#include <stdbool.h>
#define MOD 1000000007
#define INFTY 2147483646
#define DEBUG 1
#define END printf("\n");return 0;
#define QS09(how_data,data) qsort(data,how_data,sizeof(long),(int (*)(const void ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_220183/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_220183/source.c"
target datalayout = "e-m:e-p270: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._GD = type { i64, i... |
#include<stdio.h>
int main(void)
{
int L,N,x,w,i,j,kake,sum=0,a,b,c,y;
scanf("%d%d",&L,&N);
for(i=0;i<N;i++){
for(i=0;i<N;i++){
scanf("%d%d",&x,&w);
kake = x*w;
sum += kake;
}
}
if(sum == 0) printf("%d",sum);
else {
j = 0-sum;
while(1){... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_220233/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_220233/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
struct Node{
int key;
struct Node *right,*left,*parent;
};
struct Node *root,*NIL;
//add this function
struct Node *find(struct Node *u,int k){
while(u!=NIL && k!=u->key){
if(k < u->key) u=u->left;
else u=u->right;
}
return u;
}
void inser... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_220277/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_220277/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.Node = type { i32, ... |
#include<stdio.h>
int main()
{
int h1,h2,m1,m2;
scanf("%d:%d",&h1,&m1);
scanf("%d",&m2);
h2=m2/60;
m2=m2%60;
m1=m1+m2;
if(m1>=60)
{
m1=m1-60;
h1++;
}
h1=(h1+h2)%24;
if(h1<10)
printf("0%d",h1);
else
printf("%d",h1);
printf(":");
if(m1<10)
printf("0%d\n",m1);
else
print... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22032/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22032/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
#define NIL NULL
Node root;
Node treeMinimum(Node x){
while(x->left!=NIL){
x=x->left;
}
return x;
}
Node treeMaximum(Node x){
while(x->right !=N... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_220363/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_220363/source.c"
target datalayout = "e-m:e-p270: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>
#include <stdlib.h>
#define NIL NULL
struct node {
struct node *r;
struct node *l;
struct node *p;
int key;
};
typedef struct node * Node;
Node root = NIL;
Node treeSearch(Node root, int k) {
if (root == NIL) return NIL;
if (root->key == k) return root;
if (root->key > k) {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_220406/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_220406/source.c"
target datalayout = "e-m:e-p270: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>
int main()
{
char num[10];
long long int a,b,c,d,n;
scanf("%s",num);
scanf("%lld",&n);
a=(num[0]-'0')*10 + (num[1]-'0');
b=(num[3]-'0')*10 + (num[4]-'0');
c=(n/60)%24;
d=n%60;
c=(c+a)%24;
c=(c+((b+d)/60))%24;
d=(b+d)%60;
if(c/10==0 && d/10==0)
printf("0%lld:0%lld\n",c,d);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22045/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22045/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
#define NIL NULL
Node root;
Node treeMinimum(Node x){
while(x->left!=NIL){
x=x->left;
}
return x;
}
Node treeSearch(Node u, int k){
if(u==NIL ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_220493/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_220493/source.c"
target datalayout = "e-m:e-p270: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>
#include<stdlib.h>
struct node{
struct node *right;
struct node *left;
struct node *p;
int key;
};
typedef struct node * Node;
#define NIL NULL
Node root;
Node treeMinimum(Node x){
}
Node treeSearch(Node u, int k){
Node x;
x=u;
while(x!=NIL && k!=x->key){
if(k < x->key)x=x... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_220536/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_220536/source.c"
target datalayout = "e-m:e-p270: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>
#include<stdlib.h>
#define NIL NULL
struct node {
struct node *p;
struct node *l;
struct node *r;
int key;
};
typedef struct node * Node;
Node root;
void insert(int);
void inorder(Node);
void preorder(Node);
Node treeSearch(Node,int);
int main(){
int m,k,i;
char str[10];
scan... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_220587/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_220587/source.c"
target datalayout = "e-m:e-p270: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"
int main()
{
char time[6],ch;
int a,i=0;
while(scanf("%s",time)!=EOF)
{
scanf("%d",&a);
int h,m;
h=(time[0]-'0')*10+time[1]-'0';
m=(time[3]-'0')*10+time[4]-'0';
h+=(m+a%60)/60;
m=(m+a%60)%60;
h=(h+a/60)%24;
if(h<10&&m>=10)
printf("0%d:%d\n",h,m);
else if(h<10&&m<10)
printf("... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22063/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22063/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
#define NIL NULL
Node root;
Node treeMinimum(Node x){
while(x->left!=NIL)x=x->left;
return x;
}
Node treeMaximum(Node x){
while(x->right!=NIL)x=x->right... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_220673/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_220673/source.c"
target datalayout = "e-m:e-p270: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>
#include<stdlib.h>
typedef struct Node{
int key;
struct Node *right, *left, *parent;
}Node;
Node *root, *NIL;
Node * find(Node *u, int k){
while(u != NIL && k != u->key){
if(k < u->key) u = u->left;
else u = u->right;
}
return u;
}
void insert(int k){
Node *y = NIL;
Node *x =... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_220716/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_220716/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.Node = type { i32, ... |
#include<stdio.h>
int main()
{
char A[6];
scanf("%s",A);
long long int i,a,B[5],b,c,d,e,f,g,h,C[5];
for(i=0;i<=5;i++)
{
if(i!=2)
B[i]=A[i]-48;
}
scanf("%I64d",&a);
b=a/60;
c=a-60*b;
f=B[3]*10+B[4];
f+=a;
g=f/60;
h=f-g*60;
C[4]=h%10;
C[3]=h/10;
d=B[0]*10+B[1]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22076/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22076/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
#include<stdlib.h>
typedef struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
}node;
typedef node* Node;
#define NIL NULL
Node root;
Node treeMinimum(Node x){
while (x->left != NIL) x = x->left;
return x;
}
Node treeSearch(Node u, int key){
while (u != ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_220802/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_220802/source.c"
target datalayout = "e-m:e-p270: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>
#include<stdlib.h>
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
#define NIL NULL
Node root;
Node treeMinimum(Node x){
}
Node treeSearch(Node u, int k){
if(u==NIL || k==u->key)return u;
if(k<u->key) return treeSearch(u->... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_220846/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_220846/source.c"
target datalayout = "e-m:e-p270: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>
#include <stdlib.h>
typedef struct data *node;
struct data{
int key;
node p;
node l;
node r;
};
node root,NIL;
void insert(int k){
node y = NIL;
node x = root;
node z;
z = (node)malloc(sizeof(struct data));
z->key = k;
z->l = NIL;
z->r = NIL;
while(x != NIL){
y = x;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_220897/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_220897/source.c"
target datalayout = "e-m:e-p270: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 { i32, ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct Node {
int key;
struct Node *right, *left, *parent;
};
typedef struct Node Node;
Node *root, *NIL;
void insert(int k) {
Node *y = NIL;
Node *x = root;
Node *z;
z = (Node *)malloc(sizeof(Node));
z->key = k;
z->lef... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_220947/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_220947/source.c"
target datalayout = "e-m:e-p270: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>
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
#define NIL NULL
Node root;
Node treeSearch(Node u, int k){
if(u == NIL || k == u->key)return u;
if(k < u->key)return treeSearch(u->left,k);
else... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_220990/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_220990/source.c"
target datalayout = "e-m:e-p270: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>
#include<stdlib.h>
struct node{
int key;
struct node *p;
struct node *l;
struct node *r;
};
typedef struct node *Node;
Node r,NIL;
int find(int k,Node node){
if(node == NIL){
return 0;
}
if(node->key == k){
return 1;
}else if(node->key < k){
return find(k , node->r);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221032/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221032/source.c"
target datalayout = "e-m:e-p270: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>
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node *Node;
#define NIL NULL
Node root;
Node treeMinimum(Node x){
while(x->left!=NIL){
x=x->left;
}
return x;
}
Node treeMaximum(Node x){
while(x->right!=N... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221076/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221076/source.c"
target datalayout = "e-m:e-p270: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>
#include <stdlib.h>
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
#define NIL NULL
Node root;
Node treeMinimum(Node x){
while(x->left != NIL){
x = x->left;
}
return x;
}
Node treeMaximum(Node x){
while(x->righ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221119/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221119/source.c"
target datalayout = "e-m:e-p270: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>
#include<stdlib.h>
#define NIL NULL
struct node{
struct node *r,*l,*parent;
int point;
};
typedef struct node * Node;
Node root;
Node tree(Node t, int k){
while((t != NIL) && (k != t->point)){
if (k < t->point){
t = t->l;
}
else t = t->r;
}
return t;
}
void insert(int k){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221162/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221162/source.c"
target datalayout = "e-m:e-p270: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>
#include<stdlib.h>
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
#define NIL NULL
Node root;
Node treeMinimum(Node x){
while(x->left!=NIL)x=x->left;
return x;
}
Node treeMaximum(Node x){
while(x->right!=NIL)x=x->right;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221205/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221205/source.c"
target datalayout = "e-m:e-p270: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>
#include<stdlib.h>
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
#define NIL NULL
Node root;
Node treeMinimum(Node x){
while (x->left != NIL){
x = x->left;
return x;
}
}
Node treeMaximum(Node... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221249/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221249/source.c"
target datalayout = "e-m:e-p270: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>
#include<string.h>
#include<stdlib.h>
#include<math.h>
int main()
{
double t;
scanf("%lf", &t);
while(t--)
{
long long int n;
scanf("%lld",&n);
long long int arr[n+1],i,sum=0,sum2=0,sum3=0;
for(i=1;i<=n;i++)
arr[i] = pow(2,i);
for(i=1;i<(n... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_2213/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_2213/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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() {
int ball, number;
scanf("%d %d", &ball, &number);
if(number==1 || number==ball){
printf("0");
} else {
printf("%d", ball-number);}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221342/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221342/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d %d", &n, &k);
if (k != 1) {
printf("%d\n", n - k);
} else {
printf("0\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221386/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221386/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
//atcoder clange
#include <stdio.h>
int main(void){
int N,K;
int i,j,k,n;
scanf("%d", &N);//数値の取得
scanf("%d", &K);//数値の取得
if(K == 1){
printf("0");
return 0;
}
int ans = 0;
ans = N -K;
printf("%d",ans);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221429/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221429/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
#define INT_MAX 0x3f3f3f3f
struct edge
{
int x, y, z;
}a[10005];
int n, m, dis[105];
void Bellman_ford()
{
memset(dis, INT_MAX, sizeof(dis));
dis[0] = 0;
for(int i = 1; i < n; i++)
for(int j = 1; j <= m; j++)
if(dis[a[j].y] > dis[a[j].x] + a[j].z)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221472/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221472/source.c"
target datalayout = "e-m:e-p270: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.edge = type { i32, ... |
#include <stdio.h>
int main(void) {
int n, a, b;
char s[200000];
scanf("%d %d %d", &n, &a, &b);
scanf("%s", s);
if (s[a - 1] == s[b - 1]) printf("0");
else printf("1");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22153/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22153/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 n,size[101],t[101][101],cost[101][101],distance[101];
void spp(int x,int y){
int i;
distance[x]=y;
for(i=0;i<size[x];i++){
if(distance[t[x][i]]>y+cost[x][i]) spp(t[x][i],y+cost[x][i]);
}
}
int main(){
int i,j;
scanf("%d",&n);
for(i=0;i<n;i++){
int a;
scanf("%d",&a);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221588/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221588/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@distance = dso_local local... |
#include <stdio.h>
#define inf 10000005
#define WHITE 0
#define GRAY 1
#define BLACK 2
#define Max 105
int n,M[Max][Max];
void dijkstra();
int main(){
int i,k,c,u,v,j;
scanf("%d",&n);
for(i=0; i < n; i++){
for(j=0; j < n; j++){
M[i][j]=inf;
}
}
for(i=0; i < n; i++){
scanf("%d%d",&u,&k);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221645/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221645/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 INF 1000000
#define NIL -1
#define MAX 101
#define WHITE 0
#define BLACK 1
int main(){
int i,j,u,v,k,n;
int mincost,sum=0;
int a[MAX][MAX],d[MAX],pi[MAX],color[MAX];
scanf("%d",&n);
for(i=0;i<n;i++){
for(j=0;j<n;j++){
a[i][j] = INF;
//a[i][j] = NIL;
}
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221689/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221689/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 N 100
#define INF 100000000
#define NIL -1
#define WHITE 1
#define BLACK 0
void prim(void);
int n,d[N],color[N],G[N][N],pi[N];
int main(){
int i,j,u,k,v,c;
scanf("%d",&n);
for(i=0;i<n;i++){
for(j=0;j<n;j++){
G[i][j]=INF;
}
}
for(i=0;i<n;i+... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221731/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221731/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 black 1
#define white 0
#define BIG 2000000000
int n,c[100][100], A[100], color[100];
void Keiro() {
int i, min, u, v;
for (i = 0; i < n; ++i) {
color[i] = white;
A[i] = BIG;
}
A[0] = 0;
while(1) {
min = BIG;
u = -... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221782/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221782/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@n = dso_local global i32 0... |
#include <stdio.h>
#define INF 10000000
#define NIL -1
void dijkstra();
void func();
int g[100][100]={},n;
int d[100],pi[100],Adj[100],flag[100]={};
int main(){
int i,j,tmp,u,k;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d %d",&u,&k);
for(j=0;j<k;j++){
scanf("%d",&tmp);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221832/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221832/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@g = dso_local global [100 ... |
#include<stdio.h>
#include<stdlib.h>
#define INF 5000000
#define WHITE 'W'
#define BLACK 'B'
#define GRAY 'G'
void dijkstra(int,int,int**);
int main()
{
int n,i,j,k,u,v,**M,l;
scanf("%d",&n);
M = malloc(sizeof(int*)*n);
for(i=0;i<n;i++)
{
M[i] = malloc(sizeof(int)*n);
}
for(i=0;i<n;i++)
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221876/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221876/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 INF 10000000
int c[101][101];
int d[101];
int f[101];
int a;
void abc(int);
int main()
{
int i,j;
int k,l,m,n;
scanf("%d",&a);
for(i=0;i<a;i++) d[i] = INF;
for(i=0;i<a;i++)
for(j=0;j<a;j++) c[i][j] = INF;
for(i=0;i<a;i++){
scanf("%d%d"... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221919/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221919/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 N 10000
#define inf 1000000
#define BLACK 2
#define WHITE 0
#define GRAY 1
#define nil -1;
int A[N][N];
int main(){
int n,i,j,a,u,num,way,weight;
int mincost;
int d[N],color[N];
scanf("%d",&n);
for(i=0;i<n;++i){
for(j=0;j<n;++j)A[i][j] = nil;
d[i] = inf;
color[i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221962/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221962/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#define ll long long
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define INF ((1LL<<62)-(1LL<<31))
//遅い方のダイクストラ(早い方の完全下位互換だが一応)
//頂点数、スタート(と隣接行列)を引いて最短距離と経路を返す
//O(V^2)
ll daikusutorap[1<<11];
ll cost[1<<10][1<<10];//辺が無いところはINFにする前処理が必要
void daikusutora(ll n,ll s){
ll*f=(ll*)mall... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222004/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222004/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@daikusutorap = dso_local l... |
#include <stdio.h>
#define inf 100000000
#define NIL -1
#define WHITE 0
#define GRAY 1
#define BLACK 2
int n;
int w[100][100];
int d[100];
void dijkstra()
{
int i, mincost, u;
int color[100];
for(i=0;i<n;i++){
d[i] = inf;
color[i] = WHITE;
}
d[0] = 0;
color[0] = GRAY;
while(1){
mincos... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222048/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222048/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@n = dso_local global i32 0... |
#include<stdio.h>
#define N 100
#define INF 1000000
int x,A[N],B[N][N],C[N][N],D[N];
void funk(int,int);
int main() {
int i,j,k;
scanf("%d",&x);
for(i = 0; i < x; i++) {
scanf("%d",&k);
scanf("%d",&A[k]);
for(j = 0; j < A[k]; j++) {
scanf("%d",&B[k][j]);
scanf("%d",&C[k][j]);
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222091/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222091/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,count=0,v,c,c1,v1;
int G[101][101],color[101],d[101],pi[101],mincost,ii;
for(i=0;i<101;i++){
for(j=0;j<101;j++)G[i][j]=-1;
}
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d%d",&v,&c);
for(j=0;j<c;j++){
scanf("%d%d",&v1,&c1);
G[v][v1]=c1;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222141/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222141/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 N 100
#define INF 1000000
#define WHITE 0
#define BLACK 1
int n,G[N][N];
int pi[N],d[N];
void prim(){
int color[n],min,u;
int i,j,v;
for(i=0;i<n;i++){
color[i] = WHITE;
d[i] = INF;
pi[i] = 0;
}
d[0] = 0;
pi[0] = -1;
while(1){
min = INF;
for(i=0;i<n;i++){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222185/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222185/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@n = dso_local global i32 0... |
#include <stdio.h>
#define MAX 101
#define INFINITY 1048576
#define WHITE -1
#define GRAY 0
#define BLACK 1
#define true 1
void serch(int,int *);
int M[MAX][MAX];
int main(){
int n,i,j,k,v,a,d[MAX];
scanf("%d",&n);
for(i = 0; i < n; i++){
for(j = 0; j < n; j++){
M[i][j] = INFINITY;
}
}
for(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222228/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222228/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 BLACK 1
#define WHITE 0
#define GRAY -1
#define NUM 100
#define INF 1000000
int main(){
int i,n,j,a[NUM][NUM],u,k,v,d[NUM],pi[NUM],color[NUM],minv;
scanf("%d",&n);
for(i=0;i<NUM;i++){
for(j=0;j<NUM;j++){
a[i][j]=INF;
}
}
for(i=0;i<n;i++){
scanf("%d%d",&u,&k);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222271/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222271/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#define MAX 9
void set(int map[MAX][MAX], int i, int j, int n, int *counter){
if(i >= n || j >= n){return;}
map[i][j] = *counter;
(*counter)++;
}
int main(void){
int map[MAX][MAX];
int i,j,l,n,counter;
int caseNum = 1;
while(scanf("%d",&n) != EOF){
if(n == 0){break;}
counter = 1;
for(l... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222314/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222314/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[100],T[100],U[100];
int A,B;
scanf("%s %s",S,T);
scanf("%d %d",&A,&B);
scanf("%s",U);
if(S[0] == U[0])
printf("%d %d",A-1,B);
else if(T[0] == U[0])
printf("%d %d",A,B-1);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222365/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222365/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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.