Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include <stdio.h>
#define BLOCK 4
#define FLOOR 3
#define ROOM 10
int main(void)
{
int n, b, f, r, v, i, j, k;
int person[BLOCK][FLOOR][ROOM];
for(i=0; i<BLOCK; i++){
for(j=0; j<FLOOR; j++){
for(k=0; k<ROOM; k++){
person[i][j][k] = 0;
}
}
}
scanf("%d", &n);
for(i=0; i<n; i++){
scanf("%d %d %d %d"... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236405/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236405/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, i, j, k, rooms[4][3][10];
for (i = 0; i < 4; i++) {
for (j = 0; j < 3; j++) {
for (k = 0; k < 10; k++) {
rooms[i][j][k] = 0;
}
}
}
scanf("%d", &n);
while (n--) {
scanf("%d%d%d%d", &b, ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236449/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236449/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 room[4][3][10] = {0};
int n, b, f, r, v;
int i, j, k;
scanf("%d", &n);
for (i = 0; i < n; i++)
{
scanf("%d %d %d %d", &b, &f, &r, &v);
room[b - 1][f - 1][r - 1] += v;
}
for (i = 0; i < 4; i++)
{
for (j = 0; j < 3;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236492/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236492/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[4][3][10],n,l,i;
int b,f,r,v;
for(b=0; b<4; b++) for(f=0;f<3;f++) for(r=0; r<10; r++) a[b][f][r]=0;
scanf("%d",&n);
for(l=0; l<n; l++){scanf("%d%d%d%d",&b,&f,&r,&v); a[b-1][f-1][r-1]=a[b-1][f-1][r-1]+v;}
for(b=0; b<4; b++){
for(f=0; f<3; f++) {for(r=0; r<10; r++) prin... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236535/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236535/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 tenant[4][3][10] = {0};
int count = 0, n, b, f, r, v, i, j, k;
scanf("%d", &n);
do{
scanf("%d %d %d %d", &b, &f, &r, &v);
tenant[b-1][f-1][r-1] += v;
count++;
}while (count!=n);
count = 0;
for (i = 0; i < 4; i++){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236579/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236579/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
char line[100];
int b, f, r, v=0;
int num;
int room[4][3][10];
int i;
for(b=0; b<4; ++b){
for(f=0; f<3; ++f){
for(r=0; r<10; ++r){
room[b][f][r]=0;
}
}
}
fgets(line, sizeof(line), stdin);
sscanf(line, "%d", &num);
for(i=0; i<num; ++i){
fgets(line, sizeof(li... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236629/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236629/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = external local_unn... |
#include<stdio.h>
int main(){
int count[4][3][10];
int b,f,r,v,i,j,n,k,m,w=0,p=0,a=0,o=0;
for(i=0;i<4;i++){
for(j=0;j<3;j++){
for(k=0;k<10;k++){
count[i][j][k]=0;
}
}
}
scanf("%d",&n);
for(m=0;m<n;m++){
scanf("%d %d %d %d",&b,&f,&r,&v);
if(b==1){
i=0;
j=f-1;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236672/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236672/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 b,f,r,v;
int i,j,k;
static int count[4][3][10];
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d %d %d %d",&b,&f,&r,&v);
count[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+... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236715/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236715/source.c"
target datalayout = "e-m:e-p270: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.count = internal unna... |
#include<stdio.h>
int main()
{
int t[4][3][10]={0};
int b,f,r,v,i,j,k,n;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d%d%d%d",&b,&f,&r,&v);
t[b-1][f-1][r-1]=t[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",t[i][j][k]);
}
printf("... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236759/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236759/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 str[256];
/* 4 棟、 3 階建、10 部屋 */
static char room[4][3][10]; /* zero clear */
int info;
int b,f,r,v;
int i,j,k;
fgets(str, sizeof(str), stdin);
sscanf(str, "%d", &info);
for (i=0; i<info; i++) {
fgets(str, sizeof(str... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236801/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236801/source.c"
target datalayout = "e-m:e-p270: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.room = internal unnam... |
#include<stdio.h>
int main(){
int room[4][3][10]={};
int b,f,r,v;
int n;
scanf("%d",&n);
for(int i=0;i<n;i++){
scanf("%d%d%d%d",&b,&f,&r,&v);
room[b-1][f-1][r-1] += v;
}
for(int i=0;i<4;i++){
for(int j=0;j<3;j++){
for(int k=0;k<10;k++)printf(" %d",room[i][j][k]);
printf("\n");
}
if(i+1!=4){
fo... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236845/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236845/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 people_count[4][3][10] = {};
int info_count, wing, floor, room, count;
scanf("%d", &info_count);
for(int i=0; i<info_count; i++){
scanf("%d %d %d %d", &wing, &floor, &room, &count);
people_count[wing-1][floor-1][room-1] += count;
}
for(int i=0; ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236889/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236889/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[4][3][10]={0};
int i,j,k,n;
int b,f,r,v;
scanf("%d",&n);
for(i=0; i<n; i++){
scanf("%d%d%d%d",&b,&f,&r,&v);
A[b-1][f-1][r-1]=A[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++){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236931/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236931/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[4][3][10] = {0}, b[100000][4], i, I, n, x;
scanf("%d", &n);
for(i = 0 ; i < n ; i++)
{
scanf("%d%d%d%d", &b[i][0], &b[i][1], &b[i][2], &b[i][3]);
}
for(i = 0 ; i < n ; i++)
{
a[b[i][0]-1][b[i][1]-1][b[i][2]-1] += b[i][3];
}
for(i = 0 ; i < 4 ; i++)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236975/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236975/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <ctype.h>
#include <math.h>
#define max(a, b) (((a) > (b)) ? (a) : (b)) /* 2個の値の最大値 */
#define min(a, b) (((a) < (b)) ? (a) : (b)) /* 2個の値の最小値 */
#define ENTER printf("\n") /* 改行プリント */
/**********************************************************... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237024/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237024/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@DEBUG = dso_local local_un... |
#include <stdio.h>
int main(void)
{
int count[4][3][10] = { 0 };
int i, j ,k , s;
int n;
int b, f, r, v;
scanf("%d", &n);
for (i = 1; i <= n; i++) {
scanf("%d %d %d %d", &b, &f, &r, &v);
count[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++) ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237068/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237068/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 sch[4][3][10] ={},n,b,f,r,v;
scanf("%d\n",&n);
for(int i=0;i<n;i++){
scanf("%d %d %d %d\n",&b,&f,&r,&v);
sch[b-1][f-1][r-1] += v;
}
for(int i=0;i<4;i++){
for(int j=0;j<3;j++){
for(int a=0;a<10;a++){
printf(" %d",... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237110/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237110/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
/* define */
#define Yes(X) puts ( X ? "Yes" : "No")
#define YES(X) puts ( X ? "YES" : "NO")
#define FOR(i, a, b) for ( int i = a; i < b ; i++)
#define REP(i, n) for ( int i = 0; i < n ; i++)
#define max(a, b)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237154/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237154/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@MOD = dso_local local_unna... |
#include <stdio.h>
int main(){
int n,N,a,result2=0,i;
while(1){
result2=0;
scanf("%d",&n);
N=n*(n-1)/2;
if(n != 0){
for(i = 0; i < N; i++){
scanf("%d",&a);
result2 += a;
}
printf("%d\n",result2/(n-1));
} else {
break;
}
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237204/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237204/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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 DPL_5_B Balls and Boxes 2
// 2019.3.10 bal4u
#include <stdio.h>
#include <stdlib.h>
#define MOD 1000000007
int perm(int n, int k) // n(n-1)...(n-k+1)
{
long long ans = 1;
while (k) ans = (ans * n) % MOD, n--, k--;
return (int)ans;
}
int main()
{
int n, k;
scanf("%d%d", &n, &k);
if (n > k) puts("0");
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237262/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237262/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 10000
#define NIL -1
struct Node{
int parent,left,right;
};
struct Node A[MAX];
int n,d[MAX],h[MAX];
void Depth(int x,int y){
if(x==NIL)return;
d[x]=y;
Depth(A[x].left,y+1);
Depth(A[x].right,y+1);
}
int Height(int x){
int h1=0,h2=0;
if(A[x].left!=NIL)h1=Height(A[x].left... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237305/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237305/source.c"
target datalayout = "e-m:e-p270: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;
int left;
int right;
};
struct node T[MAX];
int n,D[MAX],H[MAX];
void setD(int u,int d){
if(u==NIL)return;
D[u]=d;
setD(T[u].left,d+1);
setD(T[u].right,d+1);
}
int setH(int u){
int h1=0,h2=0;
if(T[u].left!=NIL)h1=setH(T[u].left)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237349/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237349/source.c"
target datalayout = "e-m:e-p270: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 T;
int pa[100001];
int si[100001];
int dg[100001];
int cDepth(int i) {
if(pa[i] == -1) return 0;
return cDepth(pa[i]) + 1;
}
int cHeight(int i) {
int j, h;
h = 0;
for(j = 0; j < T; ++j) {
if(pa[j] == i) {
int tmp = cHeight(j) + 1;
if(tmp > h) h = tmp;
}
}
r... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237392/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237392/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@pa = dso_local local_unnam... |
#include<stdio.h>
#include<stdlib.h>
#define MAX 10000
#define NIL -1
int left[MAX], right[MAX], parent[MAX];
int n, H[MAX], D[MAX];
int getDepth(int u){
int d = 0;
while(parent[u] != NIL){
u = parent[u];
d++;
}
return d;
}
void setDepth(int u, int p){
D[u] = p;
if(right[u] != NIL){
setDepth(r... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237435/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237435/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@parent = dso_local local_u... |
#include <stdio.h>
int main()
{
int i, j, k, l, m, n, flag=0;
scanf ("%ld", &n);
m=n;
for (i=0; flag==0 && m>=0; i++)
{
m= n-(i*1234567);
l=m;
for (j=0; flag==0 && l>=0; j++)
{
l=m-(j*123456);
if (l%1234 == 0&& l>=0)
{
flag=1;
break;
}
}
}
if (flag==1)
{
printf ("YES\n");
}
e... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_23750/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_23750/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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
struct Node{
int p, l, r;
};
struct Node T[MAX];
int n, depth[MAX], height[MAX];
void Depth(int, int);
int Height(int);
int Sibling(int);
void print(int);
int main()
{
int i;
int id, left, right, tmp=0;
scanf("%d", &n);
for( i = 0 ; i < n ; i++ ) T[... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237543/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237543/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.Node = type { i32, ... |
#include <stdio.h>
#define N 100001
typedef struct{
int par;
int left;
int right;
}node;
node T[N];
int dep(int);
int hei(int);
int main(){
int i,j,n,a;
scanf("%d",&n);
for(i=0; i<n; i++) T[i].par = T[i].left = T[i].right =-1;
for(i=0; i<n; i++){
scanf("%d",&a);
scanf("%d %d", &T[a].right, &... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237587/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237587/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node = type { i32, ... |
#include <stdio.h>
#define N 100000
#define NIL -1
struct Node{
int parent;
int left;
int right;
};
struct Node T[25];
int C[25];
int H[25];
void getDepth(int, int);
int getHeight(int);
int main()
{
int n, i, j, k, x, y, id, left, right, root;
scanf("%d",&n);
for( i=0 ; i<n ; i++ ){
T[i].parent = N... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237637/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237637/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.Node = type { i32, ... |
#include<stdio.h>
#define N 100000
#define NIL -1
int depth(int);
int height(int);
struct Node{
int parent;
int left;
int right;
};
struct Node T[N];
int main(){
int n,i,id;
scanf("%d",&n);
for(i=0;i<n;i++) T[i].parent=T[i].left=T[i].right=NIL;
for(i=0;i<n;i++){
scanf("... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237680/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237680/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.Node = type { i32, ... |
#include<stdio.h>
typedef struct{
int id;
int left;
int right;
int p;
int s;
int dep;
int deg;
int h;
}Tree;
Tree A[25];
int main(){
int in,n,i,s1,s2;
int pa,pc,hc,he;
scanf("%d",&n);
for(i=0;i<n;i++){
A[i].p=-1;
A[i].s=-1;
A[i].deg=0;
A[i].h=0;
}
for(i=0;i<n;i++){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237723/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237723/source.c"
target datalayout = "e-m:e-p270: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>
int parent[25];
int left[25];
int right[25];
int degree(int node){
int d = 0;
if(left[node] != -1) d++;
if(right[node] != -1) d++;
return d;
}
int depth(int node){
if(parent[node] == -1)
return 0;
else
return depth(parent[node]) + 1;
}
int height(int node){... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237767/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237767/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@left = dso_local local_unn... |
#include<stdio.h>
#define max 100001
#define nil -1
typedef struct{
int right;
int left;
int parent;
}Node;
int height(int);
Node Tree[max],tmp;
int depth[max],length,child[max],sibling[max],degree[max];
int main(){
int i,own,numberchild,j;
scanf("%d",&length);
for(i=0;i<length;i++){
Tree[i].parent... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237824/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237824/source.c"
target datalayout = "e-m:e-p270: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 MIN -1
struct Node{
int parent, left, right;
};
struct Node T[MAX];
int D[MAX], H[MAX];
int Depth(int);
int Sibling(int);
void print(int);
int main(){
int i,n, x,y,z,a,b;
scanf("%d", &n);
for ( i = 0; i < n; i++ ) {
T[i].parent=MIN;
}
for ( i = 0; i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237875/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237875/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.Node = type { i32, ... |
#include<stdio.h>
#define N 25
#define NIL -1
struct Node{
int p,l,r;
};
struct Node T[N];
int n,D[N],H[N];
void setDepth(int,int);
int setHeight(int);
int getSibling(int);
void print(int);
int main(void){
int v,l,r,root=0;
int i,j;
scanf(" %d",&n);
for(i = 0; i < n; i++)T[i].p = NIL;
for(i = 0; i < ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237918/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237918/source.c"
target datalayout = "e-m:e-p270: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>
typedef struct list{
int parent;
int sibling;
int degree;
int depth;
int height;
int left;
int right;
}node_list;
void renew_depth(node_list *,int);
int main(){
int i,j,n,L,R,id,degree,*leaf,leaf_count=0;
node_list *A;
scanf("%d",&n);
A = malloc(sizeof(node... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237961/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237961/source.c"
target datalayout = "e-m:e-p270: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 <stdlib.h>
typedef struct{
int id;
int p;
int s;
int c;
int r;
int l;
} Tree;
int n;
Tree *T;
int getdepth(int u){
int a = 0;
while(T[u].p >= 0){
u = T[u].p;
a++;
}
return a;
}
int getheight(int x, int y){
int a=0, b=0;
if(T[x].r != -1){
a =... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238003/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238003/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.Tree = type { i32, ... |
#include <stdio.h>
#define MAX 10000
#define NIL -1
typedef struct { int parent, left, right;} Node;
Node T[MAX];
int n, D[MAX], H[MAX];
void setDepth(int u,int d) {
if(u == NIL) return;
D[u] = d;
setDepth(T[u].left, d+1);
setDepth(T[u].right,d+1);
}
int setHeight(int u) {
int h1 = 0, h2 = 0;
if(T[u].l... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238054/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238054/source.c"
target datalayout = "e-m:e-p270: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 parent,left,right;
}tree;
tree T[MAX];
int n,D[MAX],H[MAX];
int getSibling(int);
int setDepth(int,int);
int high(int);
void print(int);
int main()
{
int v,l,r,i,root=0;
scanf("%d",&n);
for(i=0;i<n;i++)
{
T[i].parent=T[i].left=... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238098/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238098/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.tree = type { i32, ... |
#include <stdio.h>
#define MAX 10000
#define NIL -1
struct Node_struct{int p, l, r;};
typedef struct Node_struct Node;
Node T[MAX];
int n, D[MAX], H[MAX];
void setDepth(int u, int d){
if( u == NIL) return;
D[u] = d;
setDepth(T[u].l, d+1);
setDepth(T[u].r, d+1);
}
int setHeight(int u){
int h1 = 0, h2 = 0;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238140/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238140/source.c"
target datalayout = "e-m:e-p270: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_struct = type ... |
#include<stdio.h>
#define MAX 100005
#define NIL -1
struct Node_struct{int p, l, r;}; /*p: 親(parent), l: 左の子(left child), r:右の兄弟(right sibling)*/
typedef struct Node_struct Node;
Node T[MAX];
int D[MAX],H[MAX],n;
void setDepth(int u, int p){
if(u==NIL)return;
D[u] = p;
setDepth(T[u].l,p+1);
setDepth(T[u].r,p... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238184/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238184/source.c"
target datalayout = "e-m:e-p270: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_struct = type ... |
#include<stdio.h>
#define MAX 10000
#define NIL -1
typedef struct{
int parent, left, right;
}Node;
Node g_node[MAX];
int g_n, g_d[MAX], g_h[MAX];
void setDepth(int u, int d);
int setHeight(int u);
int getSibling(int u);
void print(int u);
int main(){
int i, v, l, r, root = 0;
scanf("%d",&g_n);
for(i = 0;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238227/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238227/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.Node = type { i32, ... |
#include<stdio.h>
int main(){
int i, j, k;
int N, b[110];
int ans=0, a[110];
int tmp;
scanf("%d", &N);
for(i=0; i<N; i++){
scanf("%d", &b[i]);
if(b[i]>i+1){
ans=1;
}
}
if(ans==1){
printf("-1");
}else{
for(i=N; i>0; i--){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238270/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238270/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 i;
int b[102];
for (i = 0; i < n; i++)
scanf("%d", &b[i]);
int ans[102];
int j, max;
for (i = n - 1; i >= 0; i--)
{
max = -1;
for (j = 0; j <= i; j++)
{
if (b[j] == j + 1)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238313/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238313/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,x[100],m,a,i;
scanf("%d", &n);
for(i=1; i<=n; i++)
scanf("%d", &x[i]);
scanf("%d", &m);
for(i=0; i<m; i++)
{
scanf("%d", &a);
if(x[a]+1!=x[a+1]&&x[a]<2019)
x[a]++;
}
for(i=1; i<=n; i++)
printf("%d\n", x[i]);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238357/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238357/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
char ara[10];
int x,a,b,c;
c= 0;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%s %d %d",ara,&a,&b);
if(a>=2400){
x = b-a;
if(x>0){
c++;
}
}
}
if(c>0){
printf("YES\n");
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_23840/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_23840/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 argc, char *argv[])
{
int num[5];
int i, j, tmp;
scanf("%d %d %d %d %d", num, num + 1, num + 2, num + 3, num + 4);
for (i = 0; i < 5; i++)
for (j = i + 1; j < 5; j++)
if (num[i] < num[j]) {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238443/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238443/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
void bubblesort(int a[],int n){
int i,j;
int esc;
for(i=1;i<n;i++){
j = i;
while(a[j]>a[j-1]&&j>0){
esc = a[j];
a[j] = a[j-1];
a[j-1] = esc;
j--;
}
}
}
int main(void){
int a[5];
int i;
for(i=0;i<5;i++){
scanf("%d",&a[i]);
}
bubblesort(a,5);... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238487/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238487/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 cmpr (
const void *a,
const void *b
)
{
return *( (int *)b ) - *( (int *)a );
}
/** Application main entry point. */
int main (
int argc,
char *argv[ ]
)
{
int d[ 5 ];
scanf ( "%d %d %d %d %d", d, d + 1, d + 2, d + 3, d + 4 );
qsort ( d, 5, sizeof ( int... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238573/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238573/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
void swap(int *a, int *b);
int main (){
int list[5];
int i,j,k;
int sorted=0;
for(i=0;i<5;i++){
scanf("%d",&list[i]);
}
for(i=0;i<5;i++){
for(j=0;j<4-sorted;j++){
if(list[j]<list[j+1]){
swap(&list[j],&list[j+1]);
}
}
sorted++;
}
for(i=0;i<4;i++){
printf("%d ",list[i]);
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238623/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238623/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int x[5],i,j,y;
for(i=0;i<5;i++){
scanf("%d",&x[i]);
}
for(i=0;i<4;i++){
for(j=1+i;j<=4;j++){
if(x[i]<x[j]){
y=x[i];
x[i]=x[j];
x[j]=y;
}
}
}
for(i=0;i<5;i++){
printf("%d",x[i]);
if(i==4){
printf("\n");
}else{
printf... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238667/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238667/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<math.h>
#include<string.h>
#include<stdlib.h>
int main()
{
long long n,count=0,i;
scanf("%lld",&n);
int arr[n];
for(i=0;i<n;i++)
{
scanf("%lld",&arr[i]);
}
long long max=0;
if((arr[0]==1 && (arr[1]-arr[0]==1)))
count++;
max=c... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_23871/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_23871/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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<stdint.h>
#include<inttypes.h>
typedef int32_t i32;
typedef uint64_t u64;
typedef uint32_t u32;
void run (void) {
i32 n;
scanf ("%" SCNi32, &n);
i32 *a = (i32 *) calloc (n, sizeof (i32));
i32 sum = 0;
for (i32 i = 0; i < n; ++i) {
scanf ("%" SCNi32, a + i);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238760/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238760/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
int main(int argc,char* argv[]){
int array[12];
int post_array[12];
int i,j;
for(;;){
int n;
int count = 0;
scanf("%d",&n);
if(n == 0){break;}
for(i = 0; i < n; i++){
scanf("%d",&array[i]);
}
for(;;){
int ok = 1;
memset... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238810/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238810/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,y;
scanf("%d%d",&x,&y);
if(x%y!=0) printf("%d",x);
else printf("-1");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238869/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238869/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
long int X,Y;
scanf("%ld%ld",&X,&Y);
int count=0;
if(X>500000000){
if(X%Y==0){
printf("%d",-1);
count=100;
}else{
printf("%ld",X);
count=100;
}
}else if(X%Y==0){
printf("%d",-1);
count=100;
}else{
for(long int i=0;i<=10000000000;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238911/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238911/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 H1, H2, M1, M2, K, minute_sum = 0;
scanf("%d %d %d %d %d", &H1, &M1, &H2, &M2, &K);
minute_sum += (H2 * 60 + M2) - (H1 * 60 +M1);
printf("%d", minute_sum - K);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238955/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238955/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 h1, m1, h2, m2, k, t;
scanf("%d %d %d %d %d", &h1, &m1, &h2, &m2, &k);
t = ((h2*60+m2)-k) - (h1*60+m1);
printf("%d\n", t);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238999/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238999/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 h1, m1, h2, m2, k;
int difference = 0;
scanf("%d%d%d%d%d", &h1, &m1, &h2, &m2, &k);
difference = ((h2 * 60 + m2) - (h1 * 60 + m1)) - k;
printf("%d", difference);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239048/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239048/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[51];
scanf("%s", s);
char akiba[10] = "AKIHABARA";
int count_A = 0;
int count_other = 0;
for (int i = 0; i < strlen(s); i++) {
if (s[i] == 'A') {
count_A++;
} else if (s[i] == 'K') {
if (count_other == 0 && (count_A == 0 ||... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239091/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239091/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#define ll long long
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k))
#define INF ((1LL<<62)-(1LL<<31))
#define max(p,q)((p)>(q)?(p):(q))
#define min(p,q)((p)<(q)?(p):(q))
#define bit(n,m)((n>>m)&1)
int upll(const void*a... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239134/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239134/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<math.h>
#define dis(a,b) (a)*(a)+(b)*(b)
int main(){
double x[3],y[3],a,b,c,sum=0.0;
scanf("%lf,%lf%lf,%lf%lf,%lf",&x[0],&y[0],&x[1],&y[1],&x[2],&y[2]);
a=dis(x[0]-x[1],y[0]-y[1]);
do{
b=dis(x[1]-x[2],y[1]-y[2]);
c=dis(x[2]-x[0],y[2]-y[0]);
sum+=sqrt((a*b+b*c+c*a)*2-a*a-b*... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239192/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239192/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
// AtCoder165 C
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <math.h>
#include <assert.h>
#include <string.h>
#include <memory.h>
#include <malloc.h>
#include <stdlib.h>
// qsortで用いる比較用関数.*a<*bならaが先になる.
int compare(const void* a, const void* b) {
return *(int*)a - *(int*)b;
}
int main() {
int ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239235/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239235/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d",&n);
a = (int)(n/1.08);
if((int)(a*1.08)==n){printf("%d\n",a);}
else if((int)((a+1)*1.08)==n){printf("%d\n",a+1);}
else{printf(":(\n");}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239279/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239279/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
//#define NDEBUG
// for DEBUG {{{
#ifdef NDEBUG
#define DEBUG_PRINT(fmt, ...) ((void)0)
#else
#define DEBUG_PRINT(fmt, ...) fprintf(stderr, fmt, ##__VA_ARGS__)
#endif
#define ASSERT_RANGE(min,x,max) assert(((x)>=(min)) && ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239321/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239321/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = external local_unn... |
// Aizu Vol-1 0117: A reward for a Carpenter
// 2017.8.8
#include <stdio.h>
#include <string.h>
#define INF 10000000
#define MAX 20
char visited[MAX + 2];
int cost[MAX+2][MAX+2], total[MAX + 2];
int n;
int search(int s, int g);
int main(void)
{
int m, s, g, V, P;
int a, b, c, d;
int i;
memset(cost, -1, sizeof(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239365/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239365/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@cost = dso_local local_unn... |
#include<stdio.h>
int main(void)
{
int sec,h,n,m,s;
scanf("%d", &sec);
h = sec / 3600;
n = sec % 3600;
m = n / 60;
s = n % 60;
printf("%d:%d:%d\n", h, m, s);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239422/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239422/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,s,h,m;
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_239466/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239466/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 /60 % 60;
s = S % 60;
printf("%d:%d:%d\n", h, m, s);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239509/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239509/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 - 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_239552/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239552/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,a,count=0;
scanf("%d%d", &n, &t);
while(n--){
scanf("%d",&a);
t -= 86400-a;
if(t>0){
count++;
}
}
printf("%d\n",count+1);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_23961/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_23961/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 ac, char **av) {
int secs = 0;
fscanf(stdin, "%d\n", &secs);
int sec = secs % 60;
int mins = secs / 60;
int hours = mins / 60;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239660/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239660/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = external local_unn... |
#include <stdio.h>
int main(void){
int t,h,m,s;
scanf("%d",&t);
h = t/3600;
m = (t%3600)/60;
s = (t-(h*3600+m*60));
printf("%d:%d:%d\n",h,m,s);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239703/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239703/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int S;
scanf("%d",&S);
if(S <= 86400 && S >= 0)
printf("%d:%d:%d\n",S / 3600,(S % 3600) / 60,(S % 3600)%60);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239747/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239747/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 / 60 - h * 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_239790/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239790/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 hour, minute, second;
hour = minute = 0;
scanf("%d", &second);
while (second >= 60) {
minute ++;
second -= 60;
}
while (minute >= 60) {
hour ++;
minute -= 60;
}
printf("%d:%d:%d\n", hour, minute, second);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239833/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239833/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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=0,m=0;
scanf("%d",&s);
if(60<=s){
m=s/60;
s=s-(m*60);
}
if(60<=m){
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_239877/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239877/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
typedef long long ll;
int main(void)
{
int t;
scanf("%i", &t);
while(t--)
{
int n;
scanf("%i", &n);
int a[n];
for (int i = 0; i < n; i++)
scanf("%i", &a[i]);
ll ans = -1;
for (int i = 1; i < n; i++)
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_23992/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_23992/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 i,c,h,m,s;;
char number[100];
i = 0;
while((c = getchar()) != EOF) {
number[i] = c;
i++;
}
s = atoi(number);
h = s / 3600;
s -= h * 3600;
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_239963/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239963/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_240004/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_240004/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int x;
scanf("%d",&x);
printf("%d:%d:%d\n",x/3600,(x%3600)/60,(x%3600)%60);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_240048/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_240048/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,S;
scanf("%d",&S);
m=S/60 ,h=S/3600 ,s=S%60 ,m=m%60;
printf("%d:%d:%d\n",h,m,s);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_240091/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_240091/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 Hsec 3600
#define Msec 60
int main()
{
int n=0;
int hour, min, sec;
scanf("%d",&n);
hour=n/Hsec;
min=(n-hour*Hsec)/Msec;
sec=n-hour*Hsec-min*Msec;
printf("%d:%d:%d\n",hour,min,sec);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_240134/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_240134/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, d, e;
scanf("%d", &a);
b = a / 3600;
c = a % 3600;
d = c / 60;
e = c % 60;
printf("%d:%d:%d\n", b, d, e);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_240178/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_240178/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
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_240220/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_240220/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 - s) / 60) % 60;
h = (S - s - m) / 3600;
printf("%d:%d:%d\n", h, m, s);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_240264/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_240264/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
printf("%d:%d:%d\n", n / 3600, (n % 3600) / 60, (n % 3600) % 60);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_240314/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_240314/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int h,m,s;
int S;
scanf("%d\n",&S);
h = S / 3600;
a = S % 3600;
m = a / 60;
b = a % 60;
s = b;
printf("%d:%d:%d\n",h,m,s);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_240358/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_240358/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int i,a,b,c,d;
scanf("%d",&i);
a = (i%3600);
b = (i/3600);
c=(a%60);
d=(a/60);
printf("%d:%d:%d\n",b,d,c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_240408/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_240408/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
S=S-3600*h;
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_240459/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_240459/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,h,m,s;
scanf("%d",&t);
h=(int)t/3600;
m=(int)t-3600*h;
m=(int)m/60;
s=(int)t-3600*h-60*m;
printf("%d:%d:%d\n",h,m,s);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_240501/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_240501/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 Sec, h, m, s;
scanf("%d", &Sec);
s = Sec % 60;
m = Sec / 60 % 60;
h = Sec / 3600;
printf("%d:%d:%d\n", h, m, s);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_240545/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_240545/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,h = 0,m = 0,s = 0,tmp = 0;
scanf("%d",&a);
h = a / 3600;
tmp = a % 3600;
m = tmp / 60;
s = tmp % 60;
printf("%d:%d:%d\n",h,m,s);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_240589/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_240589/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 data,h,m,s;
scanf("%d",&data);
h=data/3600;
m=data%3600/60;
s=data%3600%60;
printf("%d:%d:%d\n",h,m,s);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_240639/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_240639/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 100000
#define M 200000
#define S 316 /* S = floor(sqrt(N)) */
int oo[1 + M * 2], oj[1 + M * 2];
int link(int o, int j) {
static int _ = 1;
oo[_] = o, oj[_] = j;
return _++;
}
int ae[N], pp[N], dd[N], kk[S], qu[N], cnt, s;
int dfs(int p, int i, int d) {
int o;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24069/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24069/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@link._ = internal unnamed_ad... |
#include<stdio.h>
int main(){
int S, hh, mm, ss;
scanf("%d", &S);
hh = S / 3600;
mm = S % 3600 / 60;
ss = S % 60;
printf("%d:%d:%d\n",hh,mm,ss);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_240732/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_240732/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
if(S<60){
printf("0:0:%d\n",S);
}else if(60<S && S<3600){
m=S/60;
s=S%60;
printf("0:%d:%d\n",m,s);
}else{
h=S/3600;
m=S%3600/60;
s=S%3600%60;
printf("%d:%d:%d\n",h,m,s);... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_240776/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_240776/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
printf("%d", a/3600);
printf(":%d", a%3600/60);
printf(":%d\n", a%60%60);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_240819/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_240819/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 f[100010];
void sort(int l,int r)
{
int mid=f[(l+r)/2],t;
int i=l,j=r;
while(i<j)
{
while(f[i]<mid)
i++;
while(f[j]>mid)
j--;
if(i<=j)
{
t=f[i];
f[i]=f[j];
f[j]=t;
i++;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24087/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24087/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@f = dso_local global [100010... |
#include <stdio.h>
int main(void)
{
int S=0,h=0,m=0,s=0;
scanf("%d",&S);
s=S%60;
m=S%3600/60;
h=S/3600;
printf("%d:%d:%d\n",h,m,s);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_240970/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_240970/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a(int m,int n)//�����Լ��
{
int min;
if(m<=0||n<=0) return -1;
if(m>n) min = n;
else min = m;
while(min)
{
if(m%min==0&&n%min==0) return min;
min--;
}
return -1;
}
int main()
{
int i,t;
scanf("%d",&i);
for(t=0;t<i;t++)
{
int m,n,p,k,z;
scanf("%d",&m);
for(k=1... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24102/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24102/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.