Source_Code
stringlengths
69
484k
IR_Original
stringlengths
2.05k
17.9M
#include <stdio.h> int main(void) { int house[4][3][10]={{{0}}},num,i,j,k,b,f,r,v; scanf("%d",&num); for (i=0; i<num; i++) { scanf("%d %d %d %d",&b,&f,&r,&v); house[b-1][f-1][r-1]+=v; } for (i=0; i<4; i++) { for (j=0; j<3; j++) { for (k=0; k<10; k++) printf(" %d",...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236808/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236808/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, b, f, r, v; int arr[4][3][10]; scanf("%d",&n); for(b=0;b<4;b++) for(f=0;f<3;f++) for(r=0;r<10;r++) arr[b][f][r] = 0; while(n--){ scanf("%d %d %d %d", &b, &f, &r, &v); arr[b-1][f-1][r-1] += v; } for(b=0;b...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236851/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236851/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, b, f, r, v; int hotel[5][4][11] = {0}; fflush(stdout); scanf("%d", &n); for(int i = 0; i < n; i++){ scanf("%d %d %d %d", &b, &f, &r, &v); hotel[b][f][r] += v; } for(b = 1; b < 5; b++){ for(f =1 ; f < 4; f++){ for(r = 1; r < 11; r++){ printf(" %d", hotel[...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236895/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236895/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @stdout = external local_un...
#include <stdio.h> int main() { int house[4][3][10] = {0}; int b, f, r, v, n; scanf("%d", &n); for (int i = 0; i < n; i++){ scanf("%d %d %d %d", &b, &f, &r, &v); house[b-1][f-1][r-1] = house[b-1][f-1][r-1] + v; } for (int j = 0; j < 4; j++){ for (int k = 0; k < 3; k++){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236938/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236938/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 BBB 4 #define FFF 3 #define RRR 10 int main() { int i, j, k, n, b, f, r, v; int data[BBB][FFF][RRR]; for (i = 0; i < BBB; i++) { for (j = 0; j < FFF; j++) { for (k = 0; k < RRR; k++) { data[i][j][k] = 0; } } } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236981/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236981/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 hotel[4][3][10],i,j,k,test,b,f,r,v; for(i=0;i<4;i++){ for(j=0;j<3;j++){ for(k=0;k<10;k++){ hotel[i][j][k]=0; } } } scanf("%d",&test); for(i=0;i<test;i++){ scanf("%d %d %d %d",&b,&f,&r,&v); h...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237023/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237023/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 count[4][3][10]; int i, j, k; for(i = 0; i < 4; i++){ for(j = 0; j < 3; j++){ for(k = 0; k < 10; k++){ count[i][j][k] = 0; } } } int n, b, f, r, v; scanf("%d", &n); for(int x = 0; x < n; x++){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237067/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237067/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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); while (n--) { int before, after; scanf("%*s %d %d", &before, &after); if (before >= 2400 && before < after) { puts("YES"); return 0; } } puts("NO"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_23711/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_23711/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 ...
/*2019/09/13 */ #include<stdio.h> #include<stdlib.h> #include<math.h> #include<string.h> #define MOD 1000000007 #define MIN 999999999 #define MAX -999999999 typedef long long int ll; typedef unsigned long long int ull; void llswap(ll *x,ll *y){ll tmp;tmp=*x;*x=*y;*y=tmp;} void swap(int *x,int *y){int tmp;tmp=*x;*x=*y;*...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237153/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237153/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void){ int num,i,sum,price; for(;sum=0,scanf("%d",&num),num;){ for(i=0;i<num*(num-1)/2;sum+=price,i++) scanf("%d",&price); printf("%d\n",sum/(num-1)); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237203/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237203/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 INF (1 << 30) int min(int a, int b) { return (b > a ? a : b); } /* int memo(int b, int w, int col) { int ans; if (w == n / 2){ return (0); } if (dp[b][w][col] >= 0){ return (dp[b][w][col]); } ans = 1 << 30; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237247/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237247/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @main.dp = internal unnamed...
#include<stdio.h> #define MAX 100 #define NIL -1 struct node{ int parent; int left; int right; int sib; }; struct node T[MAX]; int Deg[MAX]; int setD(int); int setH(int); int main(){ int n; int id, l, r; int i; scanf("%d", &n); for(i=0; i<n; i++){ T[i].parent = T[i].left = T[i].right = T[i]...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237304/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237304/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.node = type { i32, ...
#include<stdio.h> #define MAX 100005 #define NIL -1 struct Node{ int p, l, r,key;}; struct Node T[MAX]; int n, S[MAX],DG[MAX],H[MAX], D[MAX]; int getDepth(int u){ int d = 0,n = u; while(1){ n = T[n].p; if(n == NIL)break; d++; } return d; } int getHeight(int u){ int L=0,R=0; if (T[u].r ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237348/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237348/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.Node = type { i32, ...
#include<stdio.h> typedef struct node{ int parent; int right; int left; } tree1; tree1 A[1000000]; int number; int D[1000000]; int H[1000000]; void depth(int i,int p){ if(i==-1) return; D[i]=p; depth(A[i].left,p+1); depth(A[i].right,p+1); } int height(int u){ int h=0,j=0; if(A[u].le...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237405/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237405/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.node = type { i32, ...
#include<stdio.h> #define MAX 100005 #define NIL -1 struct Node{ int p,l,r; }; struct Node T[MAX]; int depth(int x){ if(T[x].p == NIL){ return 0; } else { return 1+depth(T[x].p); } } int degree(int x){ if(T[x].l != NIL && T[x].r != NIL){ return 2; }else if(T[x].l != NIL || T[x].r != NIL){ return 1; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237456/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237456/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.Node = type { i32, ...
#include<stdio.h> #define MAX 100000 #define NIL -1 struct node { int p, l, r, t; }; struct node T[MAX]; void depth(int); int height(int); void print(int); int n, H, D[MAX], h[MAX]; int main() { int i, d, v, c, l, r; scanf("%d", &n); for ( i = 0; i < n; i++ ) { T[i].p = NIL; T[i].l = NIL;...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237513/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237513/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.node = type { i32, ...
#include<stdio.h> #define MAX 10000 #define NIL -1 struct Node{ int p, l, r; }; struct Node T[MAX]; int D[MAX], H[MAX]; int n; void strk(int); int depth(int); int sibling(int); int main() { int i, v, l, r; scanf("%d", &n); for ( i = 0; i < n; i++ ) { T[i].p = NIL; } for ( i = 0; i < n; i++ ) { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237564/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237564/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.Node = type { i32, ...
#include<stdio.h> typedef struct TREE{ int id; struct TREE *parent; struct TREE *child[2]; int depth; int height; }Tree; Tree tree[100]; int setDepthHeight(Tree *nt, int depth){ if( nt == NULL ){ return -1; } nt->depth = depth; int lh = setDepthHeight(nt->child[0], depth+1); int rh = setDepthHeight(nt->chil...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237607/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237607/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.TREE = type { i32, ...
#include <stdio.h> #include <stdlib.h> typedef struct node{ int p; int left; int right; } Node; int searchHight(int); Node *node; int main(){ int n,i,id,depth,tmpP,deg,nowNode,sibling; scanf("%d", &n); node = malloc(sizeof(Node)*n); for (i = 0; i < n; ++i){ node[i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237650/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237650/source.c" target datalayout = "e-m:e-p270: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> #define MAX 10000 #define MIN -1 typedef struct { int p,l,r; }Node; Node node[MAX]; int n,height[MAX],depth[MAX]; int Height(int); int Sibling(int); void Depth(int,int); void Print(int); int Height(int u) { int h1 = 0 , h2 = 0; if( node[u].l != MIN ) { h1 = Hei...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237700/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237700/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.Node = type { i32, ...
#include<stdio.h> #include<stdlib.h> #include<string.h> #define MAX 30 typedef struct node{ int id; int pareid; int sibid; int degree;/*子供の数*/ int depth; int height; char type[20]; struct node *left; struct node *right; }node; int depthcheck(node N[],int i){ if(N[i].pareid==-1)return 0; else{retur...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237759/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237759/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.node = type { i32, ...
#include<stdio.h> #define MAX 100005 #define NIL -1 struct Node{ int p; int l; int r; }; struct Node np[MAX]; int depth = 0; int hileft = 0; int hiright = 0; int get_depth(int u){ if(np[u].p == NIL) return 0; if(np[u].p != NIL){ depth++; get_depth(np[u].p); } return depth...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237809/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237809/source.c" target datalayout = "e-m:e-p270: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() { long long int n; scanf("%lld",&n); char s[10]; long long int a[n],b[n],i,flag=0; for(i=0;i<n;i++) { scanf("%s %lld %lld",s,&a[i],&b[i]); } for(i=0;i<n;i++) { if(a[i]>=2400) { if(b[i]>a[i]) { printf("YES"); flag=1; break; } } } if(flag==0) printf("...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_23786/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_23786/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 ...
//Binary Trees #include<stdio.h> #define N 10000 #define NILL -1 struct Node { int parent,left,right; }; struct Node tree[N]; int n,de[N],he[N]; void dep(int u,int d) { if(u == NILL) return; de[u] = d; dep(tree[u].left, d + 1); dep(tree[u].right, d + 1); } int hei(int u) { int h1 = 0, h2 = 0; if(...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237902/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237902/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.Node = type { i32, ...
#include <stdio.h> #define MAX 10000 #define nil -1 typedef struct{ int p; int left; int right; }Node; Node Tree[MAX]; int n, Depth[MAX], Height[MAX]; void setDepth(int u, int d){ if(u == nil) return; Depth[u] = d; setDepth(Tree[u].left, d+1); setDepth(Tree[u].right, d+1); } int setHeig...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237946/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237946/source.c" target datalayout = "e-m:e-p270: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<string.h> int main(){ int t,n; scanf("%d",&n); char s[n][10]; int nb[n],nf[n],i,count=0; for(i=0;i<n;i++) scanf("%s %d %d",s[i],&nb[i],&nf[i]); for(i=0;i<n;i++){ if(nb[i]>=2400){ if(nf[i]>nb[i]) count++;} if(count>0){ printf("YES\n"); break; } } if(c...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_23799/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_23799/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include<stdio.h> #define MAX 10000 #define NIL -1 typedef struct Node{ int parent,l,r; }Node; Node T[MAX]; int n,D[MAX],H[MAX]; void setdepth(int u,int d); int setheight(int u); int getsibling(int u); void print(int u); int main(void){ int v,l,r,root = 0; scanf("%d",&n); for(int i = 0;i<n;i++){ T[i].par...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238031/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238031/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.Node = type { i32, ...
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> int count = 0; int count1 = 0; typedef struct Node{ int val; int parent; int sibling; int degree; int height; int depth; struct Node* next; } Node; typedef struct Graph{ Node** tree; } Graph; Node* newNode(int val){ No...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238075/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238075/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.Node = type { i32, ...
#include<stdio.h> #define max 100000 #define NIL -1 typedef struct{ int parent,left,right; } node; node T[max]; int n,D[max],H[max]; void setDepth(int ,int); int setHeight(int); int sibling(int); void print(int); int main(){ int v,l,r,root=0,i; scanf("%d",&n); for(i=0;i<n;i++){ T[i].parent=NIL; } for(i=...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238118/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238118/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.node = type { i32, ...
#include <stdio.h> #define M 100005 #define NL -1 typedef struct Node { int p; int l; int r; }N; N T[M]; int D[M],H[M]; int sH(int u){ int h1=0,h2=0; if(T[u].l!=NL)h1=sH(T[u].l)+1; if(T[u].r!=NL)h2=sH(T[u].r)+1; return H[u]=(h1>h2?h1:h2); } void sD(int u,int p){ if(u==NL)return; D[u]=p; sD(T[u...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238161/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238161/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.Node = type { i32, ...
#include <stdio.h> #define MAX 25 int parent[MAX],left[MAX],right[MAX]; int depth(int); int height(int); int main(void){ int n; scanf("%d", &n); for(int i=0; i<n; i++) parent[i] = -1; for(int i=0; i<n; i++){ int id, l, r; scanf("%d%d%d",&id,&l,&r); left[id] = l; if(l != ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238204/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238204/source.c" target datalayout = "e-m:e-p270:32:32-p271:32: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 DSL_2_D Range Update Query (RUQ) // 2018.5.18 bal4u #include <stdio.h> #define INF 0x7fffffff #if 1 #define gc() getchar_unlocked() #define pc(c) putchar_unlocked(c) #else #define gc() getchar() #define pc(c) putchar(c) #endif int in() { int n = 0, c = gc(); do n = 10*n + (c & 0xf), c = gc(); while (c >= '...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238248/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238248/source.c" target datalayout = "e-m:e-p270: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(){ int n,i,j,k,b[100]; scanf("%d",&n); for(i=0;i<n;i++)scanf("%d",&b[i]); int f=0; for(i=0;i<n;i++){ f+=b[i]; if(b[i]>i+1){ puts("-1"); return 0; } } if(f>n*(n+1)/2){ puts("-1"); return 0; } int ans[100],ansc=0; for(i=n-1;i>=0;i--){ for(k=i;k>=0;k--){ if(b[k]==k...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238291/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238291/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
// SugorokuandPieces.cpp : このファイルには 'main' 関数が含まれています。プログラム実行の開始と終了がそこで行われます。 // /* 問題文 JOI 君はすごろくを持っている.このすごろくは 2019 個のマスが横一列に並んだ形をしている.これらのマスには,左端のスタートマスから右端のゴールマスへと順に 1 から 2019 までの番号がついている. 現在このすごろくの上には,N 個の駒が置かれている.これらの駒には,スタートに近い順に 1 から N までの番号がついている.駒 i (1≦i≦N) は,マス Xi に置かれている.すべての駒は異なるマスに置かれている. JOI 君はこれから M...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238334/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238334/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[5],t; while(scanf("%d%d%d%d%d",&n[0],&n[1],&n[2],&n[3],&n[4])!=EOF){ for(i=0;i<4;i++){ for(j=0;j<4;j++){ if(n[j]<n[j+1]){ t=n[j]; n[j]=n[j+1]; n[j+1]=t; } } } printf("%d %d %d %d %d\n",n[0],n[1],n[2],n[3],n...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238385/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238385/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,t,max,maxj; int array[5]={0}; for(i=0;i<5;i++){ scanf("%d",&array[i]); } for(i=0;i<5;i++){ max=0; maxj=i; for(j=i;j<5;j++){ if(max<array[j]){ max = array[j]; maxj = j; } } t = array[i]; array[i] = array[maxj]; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238428/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238428/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 5 void BubbleSort(int *a, int n); int main(void){ int i, num[N]; for(i = 0; i < N; i++){ scanf("%d", &num[i]); } BubbleSort(num, N); printf("%d", num[0]); for(i = 1; i < N; i++){ printf(" %d", num[i]); } printf("\n"); return 0; } void BubbleSort(int *a, int ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238471/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238471/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 data[5]; int i, j, swap; for (i = 0; i < 5; i++){ scanf("%d", &data[i]); } for (i = 0; i < 4; i++){ for (j = i + 1; j < 5; j++){ if (data[i] < data[j]){ swap = data[i]; data[i] = data[j]; data[j] = swap; } } } for (i = 0; i < 5; i++){ print...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238572/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238572/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main() { int i,j,k,n[5]; scanf("%d",&n[0]); for(i=1;i<5;i++) { k=i; scanf("%d",&j); while(n[--k]<j&&k>=0) n[k+1]=n[k]; n[k+1]=j; } for(i=0;i<5;i++) printf("%d%c",n[i],i+1==5?'\n':' '); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238615/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238615/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,a[5],tmp; for(i=0;i<5;i++){ scanf("%d",&a[i]); } for(i=0;i<4;i++){ for(j=4;j>i;j--){ if(a[j] > a[j-1]){ tmp=a[j]; a[j]=a[j-1]; a[j-1]=tmp; } } } for(i=0;i<5;i++)...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238659/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238659/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ara[6]={'a','b','c','d','e'}; int i,j,num; for(i=0;i<5;i++) { scanf("%d",&ara[i]); } for(i=0; i<5; i++) { for(j=i+1; j<5; j++) { if(ara[i] < ara[j]) { num= ara[i] ; ara[i]= ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238716/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238716/source.c" target datalayout = "e-m:e-p270: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.main.ara = private...
/* cat <<EOF >mistaken-paste */ #pragma GCC diagnostic ignored "-Wincompatible-pointer-types" #include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #include <math.h> #define BIG 2000000007 #define VERYBIG 200000000000007LL #define MOD 1000000007 typedef uint64_t ull; ty...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238767/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238767/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.hw = type { i32, i3...
#include<stdio.h> #include<stdlib.h> #include<math.h> #define MAX(a,b) ((a)>(b)?(a):(b)) #define MIN(a,b) ((a)<(b)?(a):(b)) typedef struct weightEdge{ double w; int a,b; } node; int cmp(const void *a,const void *b){ double p=((node *)a)->w; double q=((node *)b)->w; return p==q?0:p<q?-1:1; } int root(int *...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238839/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238839/source.c" target datalayout = "e-m:e-p270: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.weightEdge = type {...
#include <stdio.h> #include <stdlib.h> long hash[200005]={0}; int main() { long n,i,l,b,f,k; long s=0; long flag=0,len; long max=0,last=0; scanf("%ld%ld%ld",&l,&b,&f); scanf("%ld",&n); for(i=1;i<=n;i++) { scanf("%ld",&flag); if(flag==1) { scanf("%ld",&len); last=1; for(k=1,m...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_23889/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_23889/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @hash = dso_local local_unnam...
#include <stdio.h> int main (){ int h1, h2, m1, m2, k; scanf("%d %d %d %d %d", &h1, &m1, &h2, &m2, &k); int sum1 = 0; int sum2 = 0; int sum3 = 0; int sum4 = 0; sum4 = m2 - m1; sum1 = h2 - h1; sum2 = sum1 * 60; sum3 = sum2 + sum4 -k; printf("%d", sum3); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238932/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238932/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 h1, h2, m1, m2, k; int dif_time = 0; scanf("%d %d %d %d %d",&h1,&m1,&h2,&m2,&k); if( ( h1 == h2 ) && ( m2 < m1 ) ) dif_time = ( 24 * 60 ) + ( 60 - m1 ) + m2; else if( h1 == h2 ) dif_time = m2 - m1; else if( h1 > h2 ) dif_time = ( ( 24 - m1 ) + m2 ) * 6...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238976/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238976/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[2], m[2], k; scanf("%d %d %d %d %d", &h[0], &m[0], &h[1], &m[1], &k); printf("%d", (h[1] - h[0]) * 60 + (m[1] - m[0]) - k); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239018/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239018/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 h1,m1,h2,m2,k; scanf("%d%d%d%d%d",&h1,&m1,&h2,&m2,&k); int a=h2*60+m2-h1*60-m1; printf("%d",a-k); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239061/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239061/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 cmpnum(const void * n1, const void * n2) { if (*(long *)n1 > *(long *)n2) { return 1; } else if (*(long *)n1 < *(long *)n2) { return -1; } else { return 0; } } int main(void) { long n; scanf("%ld", &n); long a[n]; for (long i = 0; i < n; i++) { sc...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239104/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239104/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> // printf(), scanf() #include <stdbool.h> #include <math.h> // sqrt() int main(int argc, char **argv) { double a, b, c, z; double ax, ay; double bx, by; double cx, cy; scanf("%lf,%lf", &ax, &ay); scanf("%lf,%lf", &bx, &by); double S = 0; bool first = true; while (scanf(...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239148/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239148/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <math.h> typedef struct { double x, y; } point; int input_point(point *p){ return scanf("%lf,%lf", &p->x, &p->y); } double len(point a, point b) { return hypot(a.x - b.x, a.y - b.y); } int main(int argc, char const *argv[]) { point a, b, c; double S = 0; input_point(&a); input_point(&...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239205/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239205/source.c" target datalayout = "e-m:e-p270: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.point = type { doub...
#include<stdio.h> int main(void){ int n; scanf("%d",&n); for(int i = (int)((n - 1) /1.08);;i++){ if((int)(i * 1.08)==n){ printf("%d\n",i); break; }else if((int)(i * 1.08)>n){ printf(":(\n"); break; } } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239249/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239249/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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<float.h> int main(){ int n,x,a,b,c; scanf("%d",&n); x=n/1.08; a=x*1.08; b=(x+1)*1.08; c=(x-1)*1.08; if(n==a){ printf("%d",x); } else if(n==b){ printf("%d",x+1); } else if(n==c){ printf("%d",x-1); } else{ printf(":("); } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239292/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239292/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
/*2019/10/19 */ /*template*/ #include<stdio.h> #include<stdlib.h> #include<math.h> #include<string.h> #define MOD 1000000007 #define MIN 999999999 #define MAX -999999999 typedef long long int ll; typedef unsigned long long int ull; void llswap(ll *x,ll *y){ll tmp;tmp=*x;*x=*y;*y=tmp;} void swap(int *x,int *y){int tmp;t...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239342/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239342/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,x,a,m=0,i=0,j; scanf("%d%d",&n,&x); j=n; while(n>0) { scanf("%d",&a); m+=a; n--; } i=i+m+(j-1); if(i==x) printf("YES"); else printf("NO"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_23940/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_23940/source.c" target datalayout = "e-m:e-p270:32:32-p271: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() { int sec; scanf("%d", &sec); printf("%d:%d:%d\n", sec / 3600, (sec % 3600) / 60, sec % 60); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239443/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239443/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,m,s,S; scanf("%d",&S); h=S/3600; m=S%3600/60; s=S%3600%60; printf("%d:%d:%d\n",h,m,s); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239487/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239487/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <stdbool.h> #include <assert.h> #define clr(ar) memset(ar, 0, sizeof(ar)) #define read() freopen("lol.txt", "r", stdin) int main(){ int n, t, i, j, res, sum, ar[1010]; while (scanf("%d %d", &n, &t) != EOF){ for (i = 0; i < n; i++) scanf("%d", &ar[i]); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_23953/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_23953/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 S, hour, minuite, second; scanf("%d", &S); hour = S / (60 * 60); S = S % (60 * 60); minuite = S / 60; S = S % 60; second = S; printf("%d:%d:%d\n", hour, minuite, second); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239573/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239573/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 s, h, m; scanf("%d", &s); h = s / (60 * 60); s -= h * (60 * 60); m = s / 60; s -= m * 60; printf("%d:%d:%d\n", h, m, s); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239623/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239623/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 argc, char *args[] ) { int t, h, m, s; scanf("%d", &t); h = t / 3600; t = t % 3600; m = t /60; t = t % 60; s = t; printf("%d:%d:%d\n", h, m, s); return(0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239667/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239667/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,t,arr[100],sec=0; scanf("%d%d",&n,&t); for(int i=0;i<n;++i){ scanf("%d",&arr[i]); } for(int i=0;i<n;++i){ sec+=86400-arr[i]; if(sec>=t){printf("%d",i+1);break;} } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_23971/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_23971/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 time, h, m, s; scanf("%d", &time); for(h = 0; h <= 25; h++){ if(time-h*3600 >= 0){ continue; } else{ time = time-(h-1)*3600; break; } } for(m = 0; m <= 61; m++){ if(time-m*60 >= 0){ continue; } else{ time = time-(m-1)*60; break; } } s = time; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239753/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239753/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, m, s, S; scanf("%d", &S); h = S / 3600; m = (S % 3600) / 60; s = ((S % 3600) % 60) % 60; printf("%d:%d:%d\n", h, m, s); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239797/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239797/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void) { int x; scanf("%d", &x); int h, m, s; h = x / 3600; m = (x - h*3600) / 60; s = x - h*3600 - m*60; printf("%d:%d:%d\n",h,m,s); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239847/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239847/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 S,h,m,s; scanf("%d", &S); h = S / 3600; m = (S % 3600) / 60; s = (S % 3600) % 60; printf("%d:""%d:""%d\n",h,m,s); return(0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239890/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239890/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; int x; scanf("%d", &x); a = x / 3600; b = (x - 3600 * a) / 60; c = x - 3600 * a - b * 60; printf("%d:%d:%d\n", a, b, c); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239940/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239940/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 S; scanf("%d",&S); int h = S / 3600; int m = S % 3600 / 60; int s = S % 3600 % 60; if(S >= 0 && S < 86400){ printf("%d:%d:%d\n",h,m,s); }else{ printf("0???86400????????§??\???\n"); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239991/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239991/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 s,m,h; scanf("%d",&s); m=s/60; s=s%60; h=m/60; m=m%60; printf("%d:%d:%d\n",h,m,s); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_240032/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_240032/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { int S,h,m,s=0; scanf("%d",&S); h=S/3600; m=S%3600/60; s=S%3600%60; printf("%d:%d:%d\n",h,m,s); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_240076/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_240076/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 s; scanf("%d", &s); printf("%d:%d:%d\n",s / 3600,s % 3600 / 60, s % 3600 % 60); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_240126/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_240126/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 t; scanf("%d", &t); while(t--){ int a=0, b=0, c=0; char s[1005]; scanf("%s", &s); for(int i=0; s[i]!='\0'; ++i){ if(s[i]=='A'){ a++; } else if(s[i]=='B'){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24017/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24017/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 S; int h,m,s; scanf("%d", &S); h = S/3600; m = (S-h*3600)/60; s = S-h*3600-m*60; printf("%d:%d:%d\n",h,m,s); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_240212/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_240212/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 S,h,m,s; scanf("%d",&S); h=S/3600; S=S%3600; m=S/60; s=S%60; printf("%d:%d:%d\n",h,m,s); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_240256/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_240256/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n, m, i; int main() { scanf("%d %d", &n, &m); for (i = 1; i <= n * 2; i++) { if (i + 2 * n <= m) { printf("%d ", i + 2 * n); } if (i <= m) { printf("%d ", i); } } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_2403/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_2403/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 S,h,m,s,a,b; scanf("%d",&S); if(S<0 || 86400<S){ printf("Error!!\n"); }else{ h=S/3600; a=h*3600; m=(S-a)/60; b=m*60; s=(S-a-b); printf("%d:%d:%d\n",h,m,s); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_240393/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_240393/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(){ int S,h,m,s; scanf("%d\n",&S); h=S/3600; m=S%3600/60; s=S%3600%60; printf("%d:%d:%d\n",h,m,s); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_240436/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_240436/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> #include <stdlib.h> int main() { int T; scanf("%d", &T); for (int i = 0; i < T; i++) { char *str = malloc(sizeof(char) * 50); scanf("%s", str); // fflush(stdin); int a = 0, b = 0, c = 0; for (int j = 0; j < strlen(str); j++)...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24048/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24048/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 h, m, s, S; scanf("%d", &S); h = S / 3600; m = S % 3600 / 60; s = S % 3600 % 60; printf("%d:%d:%d\n", h, m, s); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_240522/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_240522/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, h, m, s; scanf("%d", &i); h = i / 3600; m = i % 3600; s = m %60; m = m / 60; printf("%d:%d:%d\n",h,m,s); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_240566/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_240566/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 time, hour, minute, second; scanf("%d", &time); hour = time / 3600; minute = (time % 3600) / 60; second = time % 60; printf("%d:%d:%d\n", hour, minute, second); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_240609/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_240609/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 S; int h,m,s,t; scanf("%d",&S); h = S/3600; t = S%3600; m = t / 60; s = t%60; printf("%d:%d:%d\n",h,m,s); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_240652/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_240652/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 S, h, m, s; scanf("%d",&S); h = S / 3600; m = (S % 3600) / 60; s = (S % 3600) % 60; printf("%d:%d:%d\n",h ,m ,s); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_240696/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_240696/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 input; int h,m,s; scanf("%d",&input); s = input%60; m = input%3600/60; h = input/3600; printf("%d:%d:%d\n",h,m,s); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_240739/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_240739/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 S,h,m,s; scanf("%d", &S); h = S/3600; m = S%3600/60; s = S%60; printf("%d:%d:%d\n",h,m,s); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_240782/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_240782/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,m,s; //hour, minute, second int a; //input scanf("%d", &a); m=a/60; s=a-m*60; h=m/60; m=m-h*60; printf("%d:%d:%d\n", h, m, s); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_240825/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_240825/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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) { unsigned int x; int h=0,m=0,s=0,i=0; scanf("%d",&x); h=x/3600; if(h!=0) x-=3600*h; m=x/60; if(m!=0) x-=60*m; printf("%d:%d:%d\n",h,m,x); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_240869/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_240869/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,m,s; int sum; scanf("%d",&sum); h=sum/3600; m=(sum-h*3600)/60; s=(sum-h*3600-m*60); printf("%d:%d:%d\n",h,m,s); return(0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_240926/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_240926/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 t; long long int x; scanf("%d",&t); for(int i=0;i<t;i++) { scanf("%lld",&x); printf("%d %d\n",1,x-1); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24097/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24097/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 t,h,m,s; scanf("%d",&t); h=t/3600; m=(t%3600)/60; s=(t%3600)%60; printf("%d:%d:%d\n",h,m,s); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_241019/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_241019/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 S; int h = 0; int m = 0; int s = 0; scanf("%d" ,&S); h = S / 3600; S = S - h * 3600; m = S / 60; s = S - m * 60; printf("%d:%d:%d\n" , h, m, s); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_241062/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_241062/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(){ int S,h,m,s; scanf("%d", &S); h = S / 3600; m = (S - 3600 * h) / 60; s = S - 3600 * h - 60 * m; printf("%d:%d:%d\n", h, m, s); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_241105/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_241105/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { int S,h,m,s; scanf("%d",&S); h = S / 60 / 60; m = (S - h * 60 * 60) / 60; s = S - h * 60 * 60 - m * 60 ; printf("%d:%d:%d\n",h,m,s); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_241156/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_241156/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 s[105][5], o[4] = {1, 0, 2, 3}; int main() { memset(s, -1, sizeof s); int n, m, p = 0, q, i, j; scanf("%d%d", &n, &m), q = n<m ? n : m; for (i = 1; i <= 2*n && i <= m; ++i) if (i&1) s[(i+1)/2][0] = i; else s[(i+1)/2][3] = i; for (; i <= 4*n && i <= m; ++i) ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_2412/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_2412/source.c" target datalayout = "e-m:e-p270: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 local_unnamed_ad...
#include<stdio.h> int main(void) { int S,h,m,s; scanf("%d", &S); h = S / 3600; m = (S % 3600) / 60; s = S % 60; printf("%d:%d:%d\n", h,m,s); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_241242/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_241242/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(){ int S, h, m, s; scanf("%d", &S); h = (int)(S/3600); m = (int)((S - 3600*h)/60); s = S - 3600*h - 60*m; printf("%d:%d:%d\n", h, m, s); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_241293/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_241293/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 S,h,m,s; scanf("%d",&S); s=S%60; m=S/60%60; h=S/3600; printf("%d:%d:%d\n", h, m, s); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_241336/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_241336/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 t,x,i,j,k,a,b,p,q,s; scanf("%d",&t); for(i=1;i<=t;i++) { scanf("%d",&x); printf("1 %d\n",x-1); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24138/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24138/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 S,h,m,s; scanf("%d",&S); s=S%60; m=S/60%60; h=S/3600; printf("%d:%d:%d\n",h,m,s); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_241422/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_241422/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 S, h, m, s; scanf("%d", &S); h = S / (60*60); m = (S % (60*60)) / 60; s = (S % (60*60)) % 60; printf("%d:%d:%d\n", h, m, s); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_241466/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_241466/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...