Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#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 treeMaximum(Node x){
}
Node treeSearch(Node u, int k){
if(u == NIL || k == u->key) retur... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221227/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221227/source.c"
target datalayout = "e-m:e-p270: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 treeMaximum(Node x){
}
Node treeSearch(Node u, int k){
while (u != NIL && u->key != k) {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221278/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221278/source.c"
target datalayout = "e-m:e-p270: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()
{
int n, k;
int r;
scanf("%d %d", &n, &k);
if(k!=1) r=n-k;
else r=0;
printf("%d\n", r);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221320/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221320/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(){
int K, N;
scanf("%d %d", &N, &K);
if(K==1)printf("0\n");
else printf("%d\n", N-K);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221364/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221364/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int n, k;
scanf("%d %d", &n, &k);
if(k == 1){
printf("0\n");
}else{
printf("%d\n", n - k);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221407/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221407/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 fw(const void *a, const void *b)
{
return *(long int *)a - *(long int *)b;
}
int bw(const void *a, const void *b)
{
return *(long int *)b - *(long int *)a;
}
int main()
{
int a, b;
scanf("%d %d", &a, &b);
if (b == 1)
{
printf("0");
}
els... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221450/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221450/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#define MAX_N 100
#define INF INT_MAX/2
#define min(a,b) (a < b ? a : b)
void dijkstra(int,int[MAX_N][MAX_N]);
int main(){
int n,i,j,a[MAX_N][MAX_N];
int u,k,v,c;
memset(a,-1,sizeof(a));
scanf("%d",&n);
for(i = 0 ; i < n ; i++){
scanf("%d%d",&u... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221508/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221508/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 INFTY (1 << 21)
#define MAX 100
#define White 0
#define Gray 1
#define Black 2
void dijkstra();
int n, M[MAX][MAX];
int main(){
int u,v,k,c;
int i,j;
scanf("%d",&n);
for(i = 0; i < n; i++){
for(j = 0; j < n; j++){
M[i][j] = INFTY;
}
}
for(i = 0; i < n; i++){
sca... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221566/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221566/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 100
#define INFTY 300000
#define WHITE 0
#define GRAY 1
#define BLACK 2
int n,T[MAX][MAX];
void dijkstra(){
int minv,i,v,u;
int d[MAX],color[MAX];
for(i=0;i<n;i++){
d[i] = INFTY;
color[i] = WHITE;
}
d[0] = 0;
color[0] = GRAY;
while(1){
minv = INFTY;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221616/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221616/source.c"
target datalayout = "e-m:e-p270: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 S 100
typedef struct COST{
int cost;
int nodenum;
}Cost;
int graph[S][S];
int n;
int cost[S];
Cost heap[S]; //minimum heap.
int N; //number of elements in heap.
void setCost(Cost *dst, const Cost *src){
dst->cost = src->cost;
dst->nodenum = src->nodenum;
return;
}
//e1->cost < e2-... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221667/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221667/source.c"
target datalayout = "e-m:e-p270: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.COST = type { i32, ... |
#include <stdio.h>
#define ll long long
int main(void)
{
int n;
ll x, y, z;
scanf("%d", &n);
x = n;
y = n + 1;
z = x * y;
// if (n % 2 != 0)
// {
// n = (n - 1)/2;
// x = n + 1;
// y = 2 * n * n + 3 * n + 2;
// z = y * (y - 1);
// }
// else
//... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22171/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22171/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
#define MAX 500
static const int INFTY = (1<<21);
int main(){
int n, i, j, e, sum,k,a,v1;
int key,p[MAX],v[MAX],u,c[MAX],m[MAX][MAX];
scanf("%d", &n);
for ( i = 0; i< n; i++ ){
for ( j = 0; j < n; j++ ){
m[i][j] = INFTY;
}
}
for ( i = 0; i < n; i++ ){
scanf("%d... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221753/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221753/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <limits.h>
#define U 10000
#define NIL -1
#define WHITE 0
#define BLACK 1
#define MAX 100009
int d[U];
int parent[U];
int color[U];
int main()
{
int cost = 0;
int mincost;
int i, j, k, u, v;
int n, c;
int A[105][105];
scanf("%d", &n);
for (i = 0; i < n; i++)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221810/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221810/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 NIL -1
#define WHITE 0
#define BLACK 1
#define MAX 500
#define INF 1000000
int main(){
int n, i, j, u, v, c, k, minv, M[MAX][MAX], check[MAX], p[MAX], key[MAX], a;
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++){
scan... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221854/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221854/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 100
#define INFTY 1000000000
#define WHITE 0
#define GRAY 1
#define BLACK 2
int n, m[max][max];
int d[max]; //d[]..頂点vへの道で最小の重みを入れる
void dijkstra();
int main(){
int k, c, u, v;
int i, j;
scanf("%d", &n);
for(i=0; i<n; i++){
for(j=0; j<n; j++){
m[i][j] = INFTY;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221898/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221898/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 INFT 99999999
#define N 102
#define siro 0
#define hai 1
#define kuro 2
int iro[N],p[N],d[N];
int o;
void pri(void);
void kyo(int M[N][N]){
int u,i,mini;
for(i=0;i<o;i++){
iro[i]=siro;
d[i]=INFT;
}
p[0]=-1;
d[0]=0;
while(1){
mini=INFT;
fo... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221940/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221940/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@o = dso_local global i32 0... |
#include<stdio.h>
#define MAX 100
#define NIL -1
#define WHITE 1
#define GRAY 2
#define BLACK 3
#define INF (1<<21)
int G[MAX][MAX],c[MAX],p[MAX],d[MAX],n;
void dijkstra(){
int i,u,min;
for(i=0;i<n;i++){
c[i]=WHITE;
p[i]=NIL;
d[i]=INF;
}
d[0]=0;
c[0]=GRAY;
while(1){
min=INF;
u=NIL;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_221984/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_221984/source.c"
target datalayout = "e-m:e-p270: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>
#include <limits.h>
#define inf INT_MAX
#define white 0
#define gray 1
#define black 2
#define nil -1
int arr[100][100];
int d[100];
int pi[100];
int color[100];
void dijkstra();
int n;
int main(){
int i,j,k,u,v,c;
scanf("%d",&n);
for(i=0;i<n;i++){
for(j=0;j<n;j++){
arr[i][j]=in... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222026/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222026/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 110
#define INFINITY 1000000
#define NIL -1
#define WHITE 0
#define GRAY 1
#define BLACK 2
void Dijkstra(void);
int n;
int num[MAX][MAX];
int main(){
int i,j,k,u,v,c;
scanf("%d",&n);
for(i=0; i<n; i++){
for(j=0; j<n; j++){
num[i][j] = INFINITY;
}
}
for(i=0; i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222112/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222112/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 WH 0
#define GR 1
#define BL 2
#define MAX 100
#define IN (1<<21)
int n,M[MAX][MAX];
void Dijkstra();
int main(){
int i,j,e,k,c,u,v;
scanf("%d",&n);
for(i = 0 ; i < n ; i++){
for(j = 0 ; j < n ; j++){
M[i][j] = IN;
}
}
for(i = 0 ; i < n ; i++){
scanf("%d%d",&u... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222163/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222163/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 100
#define INFTY 10000000
#define WHITE 0
#define GRAY 1
#define BLACK 2
void dijkstra();
int n;
int M[MAX][MAX];
int main(){
int i,j;
int e;
scanf("%d",&n);
for(i=0;i<n;i++){
for(j=0;j<n;j++){
M[i][j]= INFTY;
}
}
int k,c,u,v;
for(i=0;i<n;i++){
scanf("%d %d",&u... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222206/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222206/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main()
{
long long int n,a,b,i,j,k,x,y,s,t;
scanf("%lld%lld%lld",&n,&a,&b);
char m[100001];
scanf("%s",m);
s = a-1;
t = b-1;
if(a==b)
printf("0\n");
else
{
if(m[s]==m[t])
printf("0\n");
else
printf("1\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22225/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22225/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <math.h>
#include <limits.h>
#define swap(type,a,b) do{type t=a;a=b;b=t;}while(0);
#define MAX(a,b) (((a)>(b))?(a):(b))
#define MIN(a,b) (((a)<(b))?(a):(b))
#define ll long long
#define INF 100000000
#define MOD 1000000007
#define SIZ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222293/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222293/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.LIST = type { i32, ... |
#include <stdio.h>
#include <string.h>
int main()
{
char str1[15], str2[15], trash [15];
int balls1, balls2;
scanf("%s %s", str1, str2);
scanf("%d %d", &balls1, &balls2);
scanf("%s", trash);
(strcmp(trash, str1) == 0)? balls1 --: balls2 --;
printf("%d %d\n", balls1, balls2);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222343/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222343/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
void readInt(int *x) {
scanf("%d", x);
return;
}
void readInts(int n, int arr[]) {
int i;
for (i=0;i<n;i++) {
readInt(&arr[i]);
}
}
void readChar(char *x) {
scanf("%c", x);
return;
}
void readChars(char x[]) {
scanf("%s", x);
return;
}
void printInts(int n, int *arr) {... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222408/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222408/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 max 3
int main()
{
int A, B;
char str[max][11];
scanf("%s %s", str[0], str[1]);
scanf("%d %d", &A, &B);
scanf("%s", str[2]);
if(strcmp(str[0], str[2])==0){
A--;
}else if(strcmp(str[1], str[2])==0){
B--;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222451/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222451/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(){
char s[20],t[20],u[20];
int S,T;
scanf("%s %s",s,t);
scanf("%d %d",&S,&T);
scanf("%s",u);
if( strcmp(s,u)==0 ) S--;
if( strcmp(t,u)==0 ) T--;
printf("%d %d",S,T);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222495/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222495/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
int main()
{
char s[10],t[10],u[10];
int a,b,i,j,k;
scanf("%s %s",s,t);
scanf("%d %d",&a,&b);
scanf("%s",u);
if(strcmp(s,u)==0)
a=a-1;
else if(strcmp(t,u)==0)
b=b-1;
printf("%d %d",a,b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222545/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222545/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include<string.h>
int main(void)
{
char s[10],t[10],u[10];
int a,b;
//入力
scanf("%s %s",s,t);
scanf("%d %d",&a,&b);
scanf("%s",u);
//デバック
//printf("%d %d %s %s %s",a,b,s,t,u);
//判別
if(strcmp(s,t)==0){
a--;
}else{
if(strcmp(s,u)==0){
a--;
}if(strcmp(t,u)==0){
b--;
}
}
//出... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222589/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222589/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
int main(void){
char s[11],t[11],u[11];
int a,b;
scanf("%s %s",s,t);
scanf("%d %d",&a,&b);
scanf("%s",u);
if(strcmp(s,u)==0){
printf("%d %d",a-1,b);
}else{
printf("%d %d",a,b-1);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222639/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222639/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 stra[11], strb[11], stru[11];
int a, b;
scanf("%s %s", stra, strb);
scanf("%d %d", &a, &b);
scanf("%s", stru);
if(strcmp(stra, stru) == 0){
printf("%d %d\n", a - 1, b);
}else{
printf("%d %d\n", a, b-1);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222697/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222697/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 bad[100000],expect=0;
int n,p,l,r;
int i,j,k,tmp;
scanf("%d%d",&n,&p);
for(i=0;i<n;i++){
scanf("%d%d",&l,&r);
tmp=r/p-l/p+!(l%p);
bad[i]=1-(double)tmp/(double)(r-l+1);
}
for(i=0;i<n;i++) expect+=1-bad[i]*bad[(i+1)%n];
printf("%.8f\n",expect*2000);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22274/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22274/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <limits.h>
int acs(const void *a, const void *b){return *(int*)a - *(int*)b;} /* 1,2,3,4.. */
int des(const void *a, const void *b){return *(int*)b - *(int*)a;} /* 8,7,6,5.. */
#define min(a,b) (a < b ? a: b)
#d... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222798/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222798/source.c"
target datalayout = "e-m:e-p270: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, ... |
/* ABC173 A */
#include<stdio.h>
int main(void){
int n, output;
scanf("%d", &n);
if(n%1000==0) output=0;
else{
output = n%1000;
output = 1000-output;
}
printf("%d\n", output);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222862/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222862/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, t;
scanf("%d", &n);
if(n%1000==0){
printf("0");
}else{
t=1000-(n%1000);
printf("%d", t);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222905/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222905/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#include <stdlib.h>
#include<ctype.h>
//qsort
int compare_int(const void *a, const void *b)
{
return *(int*)a - *(int*)b;
}
//比較
int max(int a, int b){
if (a>b) return a;
else return b;
}
int min(int a,int b) {
if(a>b) return b;
else return a;
}
//main関... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222949/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222949/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, money = 0;
scanf("%d", &n);
for (int i = 0; money < n; i++) {
money += 1000;
}
printf("%d", money-n);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_222992/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_222992/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int n;
scanf("%d", &n);
if (n <= 1000)
n = 1000 - n;
else if (n <= 2000)
n = 2000 - n;
else if (n <= 3000)
n = 3000 - n;
else if (n <= 4000)
n = 4000 - n;
else if (n <= 5000)
n = 5000 - n;
else if (n <= 6000)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223034/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223034/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n;
scanf("%d", &n);
if(n % 1000 == 0){
printf("%d\n", 0);
}else{
printf("%d\n", 1000-n%1000);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223078/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223078/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d", &a);
while(a >= 1){
a -= 1000;
}
a = a * -1;
printf("%d\n",a );
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223120/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223120/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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=1,s=0,n;
scanf("%d",&n);
while(s<n)
{
s=1000*i;
i++;
}
printf("%d",s-n);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223164/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223164/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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 GCC optimize("Ofast")
#include<stdio.h>
int main(void)
{
int n = 5;
int a[7] = {0};
char c=getchar_unlocked();
while(c<='9'&&c>='0') {a[--n] = c - '0'; c=getchar_unlocked();}
int v = a[n+2] * 100 + a[n+1] * 10 + a[n];
if(v) {
printf("%d", 1000 - v);
return 0;
}
pu... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223207/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223207/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct._IO_FILE = type { i... |
#include <stdio.h>
int main(void){
int N,oturi;
scanf("%d",&N);
if(N%1000==0){
oturi=0;
}else{
oturi=1000-(N%1000);
}
printf("%d\n",oturi);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223250/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223250/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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",&N);
if(N<1000)
{
a=1000-N;
printf("%d",a);
}
else if(N>1000&&N%1000!=0)
{
b=N/1000;
a=(b+1)*1000-N;
printf("%d",a);
}
else
printf("0");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223294/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223294/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int Change, i;
scanf("%d", &N);
for(i = 1000; i <= 10000; i += 1000){
if(N <= i){
Change = i - N;
break;
}
}
printf("%d\n", Change);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223337/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223337/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, n;
scanf("%d", &N);
n = N%1000;
if(n == 0) {
printf("%d", n);
}else {
printf("%d", 1000-n);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223388/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223388/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main() {
int n;
scanf("%d", &n);
int tmp = n % 1000;
if (tmp == 0) {
printf("%d", 0);
}
else {
printf("%d", 1000 - tmp);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223430/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223430/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int n;
scanf("%d",&n);
printf("%d\n",n%1000==0?0:1000-n%1000);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223481/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223481/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/*
AOJ 2252
koukyoukoukokukikou
2015.4.26
*/
#include<stdio.h>
int count_turnover(char input_str[])
{
int i, prev_key = 0, left_key = -1, right_key = 1, count = 0;
for(i = 0; input_str[i] != '\0'; i++)
{
switch(input_str[i])
{
case 'q':
case 'w':
case 'e':
case 'r':
case 't':
case 'a':... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223524/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223524/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 c1,c5,c10,c50,c100,c500,d,e,f,g,h,i,j;
c1=1;
c5=5;
c10=10;
c50=50;
c100=100;
c500=500;
scanf("%d%d%d%d%d%d",&e,&f,&g,&h,&i,&j);
d=(c1*e)+(c5*f)+(c10*g)+(c50*h)+(c100*i)+(c500*j);
if(d>=1000){
printf("1\n");
}
if(1000>d){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223575/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223575/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 c1,c5,c10,c50,c100,c500,s;
scanf("%d %d %d %d %d %d",&c1,&c5,&c10,&c50,&c100,&c500);
s=c1+5*c5+10*c10+50*c50+100*c100+500*c500;
if (s>=1000){
printf("%d\n",1);
}
else {
printf("%d\n",0);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223618/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223618/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 c1,c5,c10,c50,c100,c500;
scanf("%d %d %d %d %d %d",&c1,&c5,&c10,&c50,&c100,&c500);
if(c1+(c5*5)+(c10*10)+(c50*50)+(c100*100)+(c500*500)>=1000){
printf("1\n");
}
else{
printf("0\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223676/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223676/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int a ,b ,c ;
scanf( "%d %d %d" ,&a ,&b ,&c ) ;
printf( "%d\n" ,a + b + c ) ;
return 0 ;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223726/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223726/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int n,i,k=0,j,min;
long long a[100000],b[100000];
long long sum=0;
scanf("%d\n",&n);
for(i=0;i<n;i++)
{
scanf("%I64d",&a[i]);
if (a[i]%2==1)
{
b[k]=a[i];
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22377/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22377/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 p, m, c;
scanf("%d %d %d", &p, &m, &c);
printf("%d\n", p+m+c);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223812/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223812/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n,k;
scanf("%ld %ld", &n, &k);
if (k == 0) {
printf("%ld\n", n*n);
return 0;
}
long sum = 0;
long pairs;
long n_mod_b;
for (long b = k+1; b <= n; b++) {
pairs = n/b;
pairs *= b-k;
n_mod_b = n%b;
if (n_mod_b >= k) {
pairs += n_mod_b-k+1;
}
sum += pai... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223856/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223856/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 t;
scanf("%d",&t);
if(t>=1&&t<=100)
{
for(int i=1;i<=t;i++)
{
int n;
scanf("%d",&n);
if(n>=2&&n<=30)
{
int sum1=0,sum2=0,total_sum=0;
for(int j=1;j<(n/2... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_2239/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_2239/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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()
{
while(1){
int shina=0,nedan=0,coin=0;
scanf("%d",&shina);
if(shina==0){
break;
}
nedan=1000-shina;
while(nedan!=0){
if(nedan>=500){
nedan=nedan-500;
coin++;
}
else if(nedan>=100){
nedan=nedan-100;
coin++;
}
else if(nedan>=50){
nedan=nedan-50;
coin++;
}
else... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_223993/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_223993/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 oturi,n,ans,coin[6]={500,100,50,10,5,1},i,j;
while(1){
scanf("%d",&n);
if(n==0)break;
ans=0;
oturi=1000-n;
for(i=0;i<6;i++){
while(oturi>=coin[i]){
oturi-=coin[i];
ans++;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224035/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224035/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,r,i,f;
for(i=0;i<5;i++){
r=0;
scanf("%d",&f);
if(f==0){
break;
}
n=1000-f;
if(n>=500){
r++;
n-=500;
}
while(n>=100){
r++;
n-=100;
}
if(n>=50){
r++;
n-=50;
}
while(n>=10){
r++;
n-=10;
}
if(n>=5){
r++;
n-=5;
}
while(n>... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224079/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224079/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
while(1){
int n, i, res = 0;
int coin[] = {500, 100, 50, 10, 5, 1};
scanf("%d", &n);
if(n == 0){
return 0;
}
n = 1000 - n;
for(i = 0;i < 6;i++){
res += n / coin[i];
n %= coin[i];
}
printf("%d\n",res);
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224129/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224129/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 w1,w2,h1,h2;
scanf("%d %d %d %d",&w1,&h1,&w2,&h2);
printf("%d\n",w1+w2+h1+h2+h1+h2+4+w1-w2);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22418/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22418/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 a,b,c;
int main(){
scanf("%d %d %d",&a,&b,&c);
if((a+b)==c) {
printf("Yes\n");
}
else if((a+c)==b) {
printf("Yes\n");
}
else if((b+c)==a) {
printf("Yes\n");
}
else{
printf("No\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224222/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224222/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
if((a+b)==c || (a+c)==b || (b+c)==a)
{
printf("Yes\n");
}
else
{
printf("No\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224266/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224266/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ll long long
#define rep(i,l,r) for(ll i=(l);i<(r);i++)
#define max(p,q) ((p)>(q)?(p):(q))
#define min(p,q) ((p)<(q)?(p):(q))
#define chmax(a,b) ((a)=(a)>(b)?(a):(b))
#define chmin(a,b) ((a)=(a)<(b)?(a):(b))
#define abs(p) ((p)>=(0)?(p... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224309/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224309/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
int main(){
int a, b, c;
scanf("%d%d%d", &a, &b, &c);
if(a == (b + c)){
printf("Yes\n");
}else if(b == (a + c)){
printf("Yes\n");
}else if(c == (a + b)){
printf("Yes\n");
}else{
printf("No\n");
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224352/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224352/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main (){
int a, b, c;
scanf("%d%d%d", &a, &b, &c);
if(a + b == c ||
a + c == b ||
b + c == a){
printf("Yes");
}
else
{
printf("No");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224402/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224402/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
if((a + b) == c || (b + c) == a || (a + c) == b){
printf("Yes\n");
}else{
printf("No\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224446/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224446/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/* Phoenix26 */
#include <stdio.h>
#include <stdlib.h>
#define for1(i,a,b) for(int i=a;i<b;i++)
#define for2(i,a,b) for(int i=a;i>b;i--)
#define ll long long int
// #define MAX
void solve() {
ll w1,h1,w2,h2,ans;
scanf("%I64d %I64d %I64d %I64d",&w1,&h1,&w2,&h2);
ans = w1+2 + w2+2 + 2*(h1 + h2) + w1-w2;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22449/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22449/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,b,c;
scanf("%d %d %d",&a,&b,&c);
if(a==b+c ||b==a+c||c==a+b){
printf("Yes");
}else{
printf("No");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224532/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224532/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main() {
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
if((a<c && c<b) || (a>c && c>b)){
printf("Yes");
}else{
printf("No");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224590/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224590/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
if ((c-a)*(c-b)<=0) {
printf("Yes");
} else {
printf("No");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224633/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224633/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
int main(){
int a, b, c, tmp;
scanf("%d%d%d",&a,&b,&c);
if(a<c){
if(c<b){
printf("Yes\n");
}else{
printf("No\n");
}
}else{
if(b<c){
printf("Yes\n");
}else{
printf("No\n");
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224677/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224677/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 %d",&A,&B,&C);
if(A<C){
if(A<C && C<B){
printf("Yes\n");
}
else{
printf("No\n");
}
}
else{
if(B<C && C<A){
printf("Yes\n");
}
else{
pri... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224727/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224727/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int A,B,C;
scanf("%d %d %d",&A,&B,&C);
if((A<C && C<B) || (B<C && C<A)) printf("Yes");
else printf("No");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224770/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224770/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
//set many funcs template
//Ver.20190820
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<stdbool.h>
#include<time.h>
#include<assert.h>
#define inf 1072114514
#define llinf 4154118101919364364
#define mod 1000000007
#define pi 3.1415926535897932384
int max(int a,int b){if(a>b){return a;}return b;}
int... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224820/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224820/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sd = type { i32, i3... |
#include <limits.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <math.h>
#define P 1000000007
int comp(const void *a, const void *b){return *(int*)a-*(int*)b;}
long a[5];
int main(void){
int n, i, j, k;
scanf("%d\n", &n);
for(i=0; i<n; i++){
char c... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224864/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224864/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
/*ソートの時に使う
int sort(const void *a, const void *b){
return *(int*)a-*(int*)b ;
}
qsort (data,sizeof(data),sizeof(int),sort);
*/
int main(void){
long long n,m=0,a=0,r=0,c=0,h=0;
scanf("%lld",&n);
char s[n][12];
for (in... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224907/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224907/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
int n;
long long int mozi[5] = {0};
long long int ans = 1;
long long int zenbu = 0;
int i, j, k;
char s[11];
scanf("%lld", &n);
for (i= 0; i < n; i++) {
scanf("%s", s);
switch (s[0]) {
case 'M' :
mozi[0]++;
break;
case 'A' :
mozi[1]++;
break;
case ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_224950/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_224950/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 N 100005
int main(){
int m,n,a[N],b[N];
scanf("%d",&m);
int i,j;
for(i=0;i<m;i++){
int state=0,cnt=-1;
memset(a,0,sizeof(a));
memset(b,0,sizeof(b));
scanf("%d",&n);
for(j=1;j<=n;j++){
scanf("%d",&a[j]);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22500/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22500/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
int main(void)
{
int i, j, H, W;
while(1){
scanf("%d %d", &H, &W);
if((H == 0) && (W == 0)) break;
for(j = 0;j < H;j++){
for(i = 0;i < W;i++){
if((i + j) % 2 == 0){
printf("#");
} else {
printf(".");
}
}
printf("\n");
}
printf("\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225043/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225043/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int H, W;
int i, j;
while (scanf("%d%d", &H, &W), H || W){
for (i = 0; i < H; i++){
for (j = 0; j < W; j++){
printf("%c", (i + j) % 2 == 0 ? '#' : '.');
}
printf("\n");
}
printf("\n");
}
return (0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225087/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225087/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
int main()
{
int n,i,present[26],dis=0;
char a[101];
memset(present,0,sizeof(present));
scanf("%d",&n);
scanf("%s",a);
for(i=0;i<n;i++)
{
if (a[i]-'a'>=0&&a[i]-'a'<=26)
{
if (present[a[i]-'a']==0)
{
dis++;
present[a[i]-'a']=1;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22513/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22513/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
int main(void) {
int H, W;
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+j)%2) printf(".");
else printf("#");
}
pr... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225173/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225173/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/* .................... compiled by alankar....................
*/
//......................SHORTCUTS..............................
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
//...........................................................
#define pi 3.14159265358979323846 //float type
#de... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22526/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22526/source.c"
target datalayout = "e-m:e-p270: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_unname... |
#include <stdio.h>
int main(void)
{
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) {
if ((j % 2) == 0)
putchar('#');
else
putchar('.');
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225302/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225302/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
typedef struct{
char city[11];
int P;
int index;
} guideBook;
void swap_struct(guideBook *x,guideBook*y){
guideBook temp = *x;
*x = *y;
*y = temp;
}
void sort(guideBook a[], int n){
for (int i = 0; i < n-1; i++){
for (int j = n-1; j > i; j--){
if (strcmp(a... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225368/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225368/source.c"
target datalayout = "e-m:e-p270: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.guideBook = type { ... |
#include <stdio.h>
#include <string.h>
typedef struct{
int n;
char name[10];
int p;
}res;
void swap(res *a, res *b){
res c;
c = *a;
*a = *b;
*b = c;
}
void bubble_sort_name(res *a, int n){
int i, j;
for(i=0; i<n-1; i++)
for(j=0; j<n-1; j++)
if(strcmp(a[j].name, a[j+1].name) > 0 )
swap(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225418/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225418/source.c"
target datalayout = "e-m:e-p270: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.res = type { i32, [... |
#include <stdio.h>
#include <string.h>
int main(void) {
int n, i, j, temp_d;
scanf("%d", &n);
char s[n + 1][11], temp[11] = {'\0'};
int p[n + 1], ans[n];
for ( i = 1; i <= n; i++ ) {
ans[i] = i;
scanf("%s%d", s[i], &p[i]);
for ( j = 1; j <= (i - 1); j++ ) {
if ( 0... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225469/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225469/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
int main(){
int n,i,j,r[100],d[100],t;
char s[100][100];
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%s %d",s[i],&d[i]);
for(j=i;j;j--){
t=strcmp(s[i],s[r[j-1]]);
if(t<0||(t==0&&d[i]>d[r[j-1]]))r[j]=r[j-1];
else break;
}//printf("j:%d\n",j);
r[... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225519/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225519/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
#include <ctype.h>
int main(int argc, char *argv[])
{
int n;
char str[1001];
int frecv [30];
memset (frecv, 0, sizeof(frecv));
scanf ("%d%s", &n, str);
n = strlen (str);
int i;
for (i = 0; i < n; ++i)
{
if (isupper(str[i]))
++frecv[str[i] - 'A'];
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22557/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22557/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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){
char s[19];
for (int i = 0; i < 19; i++){
scanf("%c", &s[i]);
}
for (int i = 0; i < 19; i++){
if (s[i] == ','){
printf("%c", ' ');
}
else {
printf("%c", s[i]);
}
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225612/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225612/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
char s[100];
scanf("%s",s);
s[5]=' ';
s[13]=' ';
printf("%s",s);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225656/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225656/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 t,i;
scanf ("%d",&t);
for (i=0;i<t;i++)
{
int n;
scanf ("%d",&n);
int m=pow(2,1+n/2)-2;
printf ("%d\n",m);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_2257/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_2257/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr co... |
#include<stdio.h>
#include<string.h>
#include<math.h>
#include<stdlib.h>
#define mod 1000000007
#define ll long long int
#define f(n) for(int i=0;i<n;i++)
#define s(n) scanf("%d",&n);
#define p(n) printf("%d\n",n);
#define fl(n) for(long long int i=0;i<n;i++)
#define sl(n) scanf("%lld",&n);
#define pl(n) printf("%lld\n... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22575/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22575/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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(){
char s[20];
scanf("%s",s);
for(int i=0;i<19;i++){
if(i==5||i==13)
printf(" ");
else
printf("%c",s[i]);
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225793/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225793/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 h[32];
scanf("%s",h);
h[5]=' ';
h[13]=' ';
printf("%s",h);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225858/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225858/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 buf[20];
scanf("%19s", buf);
buf[5] = buf[13] = ' ';
printf("%s\n", buf);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225908/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225908/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 min(p,q)((p)<(q)?(p):(q))
int main(){
long long a,b,c;
scanf("%lld%lld%lld",&a,&b,&c);
printf("%lld",min(c,a+b+1)+b);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225966/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225966/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int A,B,C;
scanf("%d %d %d",&A,&B,&C);
if(C <= A+B){
printf("%d\n",B+C);
}else{
printf("%d\n",B*2+A+1);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_226008/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_226008/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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.