Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
//set many funcs template
//Ver.20180717
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<stdbool.h>
#include<time.h>
#define inf 1072114514
#define llinf 4154118101919364364
#define mod 1000000007
#define pi 3.1415926535897932384
int max(int a,int b){if(a>b){return a;}return b;}
int min(int a,int b){i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238775/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238775/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 gmin(a,b) ((a)<(b)?(a):(b))
int main()
{
long n,i,tot=0,op,j,min;
char ch[2005]={'\0'};
scanf("%ld\n",&n);
for(i=1;i<=n;i++)
{
scanf("%c",&ch[i]);
if(ch[i]=='H')
tot++;
}
min=1000000000;
for(i=1;i<n;i++)
ch[i+n]=ch[i];
for... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_23884/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_23884/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 x,y,ans;
scanf("%d%d",&x,&y);
if(x%y==0)
ans=-1;
else
{
for(ans=2*x;;ans+=x)
{
if(ans%y!=0)
break;
}
}
printf("%d\n",ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238883/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238883/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,ANS;
scanf ("%d %d %d %d %d",&H1,&M1,&H2,&M2,&K);
ANS= (H2*60 + M2) - (H1*60 + M1) - K ;
printf("%d ",ANS);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238926/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238926/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,t;
int a[100009];
scanf("%d%d",&n,&t);
k=t;
for(i=0;i<n;i++)
scanf("%d",&a[i]);
for(i=0;i<n;i++)
{
if(86400-a[i]>=t)
break;
else
t-=(86400-a[i]);
}
printf("%d",i+1);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_23897/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_23897/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main(){
int a,b,c,d,e;
scanf("%d %d %d %d %d",&a,&b,&c,&d,&e);
int x=c*60+d;
int y=a*60+b;
int z=x-y-e;
printf("%d\n",z);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239011/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239011/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[2][2], k;
int ans = 0, s, g;
scanf("%d%d%d%d%d", &t[0][0], &t[0][1], &t[1][0], &t[1][1], &k);
s = t[0][0] * 60 + t[0][1];
g = t[1][0] * 60 + t[1][1];
printf("%d\n", g - s - k);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239062/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239062/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
#include<stdbool.h>
typedef long long ll;
typedef long double ld;
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k))
#define rrep(i,l,r)for(ll i=(l);i>=(r);i--)
#define INF (1LL<<60)
#define MOD1 1000000007
#... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239105/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239105/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<math.h>
int main(void)
{
int n=0,i;
double x[21], y[21],s=0;
while (scanf("%lf,%lf",&x[n],&y[n])!=EOF){
n++;
}
x[n] = x[0];
y[n] = y[0];
for (i = 0; i < n; i++) {
s += (x[i] - x[i + 1])*(y[i] + y[i + 1]);
}
s = fabs(s);
printf("%.6lf\n",s/2);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239149/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239149/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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
#define _USE_MATH_DEFINES
#include<stdio.h>
#include<math.h>
#include<string.h>
#include<stdlib.h>
#include<stdarg.h>
#include<malloc.h>
int main()
{
int i, n;
double x[20], y[20], d[37], s[18], z, S;
n=0;
while(scanf("%lf,%lf", &x[n], &y[n]) != EOF)
n++;
for(i=0; i<2*n-3; i+... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239206/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239206/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int i;
scanf("%d%d",&n,&t);
int num,sum=0;
int cnt=0;
for(i=0;i<n;i++){
scanf("%d",&num);
sum=sum+86400-num;
cnt++;
if(sum>=t){
printf("%d\n",cnt);
break;
}
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_23925/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_23925/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 n,i;
i=0;
scanf("%d", &n);
double p,q;
p=n/1.08;
while(i<p){
i++;
}
double r;
r=i*1.08;
if(r-n>=0 && r-n<1){
printf("%d\n",i);
}else{
printf(":(");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239293/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239293/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <math.h>
int main() {
double N, ans;
scanf("%lf", &N);
ans = ceil(N / 1.08);
if ((int)(ans * 1.08) == (int)N) printf("%d\n", (int)ans);
else printf(":(\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239336/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239336/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 map_size;
int map[20][20];
int road_num;
int a,b,c,d;
int start,goal,money,cost;
int i,j,k;
scanf("%d",&map_size);
for(a=0;a<map_size;a++) {
for(b=0;b<map_size;b++) {
map[a][b]=0x20000000;
}
map[a][a]=0;
}
scanf("%d",&road_num);
for(i=0;i<road_num;i++) {
sc... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239387/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239387/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 - (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_239437/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239437/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_239480/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239480/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_239523/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239523/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,s,m,S;
scanf("%d",&S);
if(0<=S&&S<86400){
s= S%60;
m = S/60 %60;
h = S/3600 %60;
printf("%d:%d:%d\n",h,m,s);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239567/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239567/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int m;
int s;
scanf("%d", &S);
s = S % 60;
m = (S / 60) % 60;
h = (S / 3600) % 24;
printf("%d:%d:%d\n", h, m, s);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239624/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239624/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d",&sec);
printf("%d:%d:%d\n",(sec-sec%3600)/3600,((sec-sec%60)%3600)/60,sec%60);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239675/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239675/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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:", s / 3600);
s %= 3600;
printf("%d:%d\n", s / 60, s % 60);
return (0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239718/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239718/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
/*cal*/
h = s/3600;
m = (s%3600)/60;
s = (s%3600)%60;
/*output*/
printf("%d:%d:%d\n",h,m,s);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239761/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239761/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_239804/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239804/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,H,m,M,s;
scanf("%d",&S);
h = S / 3600;
H = S % 3600;
m = H / 60;
M = H % 60;
s = M;
printf("%d:%d:%d\n",h,m,s);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239848/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239848/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int a,b,c,d;
scanf("%d",&a);
b=a/3600;
c=a%3600/60;
d=a-(b*3600+c*60);
printf("%d:%d:%d\n",b,c,d);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239891/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239891/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
printf("%d:%d:%d\n",S/3600,S%3600/60,S%3600%60);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239934/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239934/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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*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_239978/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239978/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
h = (int)(s / 3600);
m = s % 3600;
m = (int)(m / 60);
s = s % 60;
printf("%d:%d:%d\n", h, m, s);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_240019/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_240019/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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/60;
s=S%3600%60;
printf("%d:%d:%d\n",h ,m, s);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_240062/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_240062/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
long inp;
scanf("%ld", &inp);
printf("%d:%d:%d\n", inp/3600, (inp%3600)/60, (inp%3600)%60);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_240105/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_240105/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
int h,m,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_240149/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_240149/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_240192/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_240192/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,S;
scanf("%d",&S);
a=S/3600;
S%=3600;
b=S/60;
S%=60;
c=S;
printf("%d:%d:%d\n",a,b,c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_240235/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_240235/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
int a=0;
scanf("%d",&a);
printf("%d:%d:%d\n",a/3600,a%3600/60,a%3600%60);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_240279/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_240279/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_240329/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_240329/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d",&t);
for(int p=0;p<t;p++)
{
int cnta=0,cntb=0,cntc=0;
char str[1000];
scanf("%s",str);
for(int i=0;str[i]!='\0';i++)
{
if(str[i]=='A')
cnta++;
else if(str[i]=='B')
cnt... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24038/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24038/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
#include<string.h>
int main()
{
int i,t;
scanf("%d",&t);
for(i=0;i<t;i++){
int n;
char gar;
scanf("%c",&gar);
char a[50];
scanf("%s",a);
n = strlen(a);
int f[3]={0};
for(int j=0;j<n;j++){
f[a[j]-'A']++;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24043/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24043/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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);
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_240473/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_240473/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int h, m, s;
scanf("%d", &x);
h = x / 3600;
m = x % 3600 / 60;
s = x % 3600 % 60;
printf("%d:%d:%d\n", h, m, s);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_240516/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_240516/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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/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_240602/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_240602/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_240653/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_240653/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d", &S);
s = S % 60;
m = ((S - s) / 60) % 60;
h = (((S - s) / 60) - m) / 60;
printf("%d:%d:%d\n", h, m, s);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_240703/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_240703/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int h;
int m;
int s;
scanf("%d\n", &S);
h = S / 3600;
m = (S / 60);
m = m - (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_240747/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_240747/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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%60;
printf("%d:%d:%d\n",h,m,s);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_240790/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_240790/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 = 86400;
scanf("%d",&S) ;
int h= S / 3600;
int m = S % 3600 / 60 ;
int s = S % 3600 % 60 ;
printf("%d:%d:%d\n",h,m,s);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_240833/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_240833/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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$ - ($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_240891/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_240891/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int hour;
int minute;
int second;
scanf("%d",&time);
hour = time / 3600;
minute = (time - (hour * 3600)) / 60;
second = time - hour * 3600 - minute * 60;
printf("%d:%d:%d\n",hour,minute,second);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_240941/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_240941/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 = 0, m = 0, s = 0;
scanf("%d",&S);
while(S >= 3600){
S -= 3600;
h++;
}
while(S >= 60){
S -= 60;
m++;
}
s = S;
printf("%d:%d:%d\n",h,m,s);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_240992/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_240992/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, m, s;
scanf("%d", &a);
h = a / 3600;
m = (a%3600)/60;
s = (a%3600)%60;
printf("%d:%d:%d\n", h,m,s);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_241041/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_241041/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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=0;
int h=0,m=0,s=0;
scanf("%d",&sec);
h = sec/3600;
m = (sec%3600)/60;
s = sec-(h*3600)-(m*60);
printf("%d:%d:%d\n",h,m,s);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_241085/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_241085/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
printf("%d:%d:%d\n",s/3600,(s%3600)/60,(s%3600)%60);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_241128/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_241128/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,temp,s;
scanf("%d",&S);
h=S/3600;
temp=S%3600;
m=temp/60;
temp=temp%60;
s=temp;
printf("%d:%d:%d\n",h,m,s);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_241186/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_241186/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_241229/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_241229/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
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_241272/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_241272/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,m,h,t;
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_241315/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_241315/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,m,s;
scanf("%d",&a);
h=a/3600;
m=a%3600/60;
s=(a%3600)%60;
printf("%d:%d:%d\n",h,m,s);
return (0);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_241359/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_241359/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 - h * 3600) / 60;
s = S % 60;
printf("%d:%d:%d\n",h,m,s);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_241401/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_241401/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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/60%60,s%60);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_241445/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_241445/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;//与えられた秒数
int h;//時間
int m;//60未満の分
int s;//60未満の秒
// printf("時間を秒単位で入力してください。:");
scanf("%d",&t);
h=t/(60*60);
m=(t%(60*60))/60;
s=t%60;
printf("%d:%d:%d\n",h,m,s);
return 0;
} ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_241489/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_241489/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 time;
int tmp;
scanf("%d", &time);
h = time / (60 * 60);
tmp = time - 60 * 60 * h;
m = tmp / 60;
s = tmp - 60 * m;
printf("%d:%d:%d\n", h, m, s);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_241531/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_241531/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,a,b,c;
scanf("%d", &s);
if(s>=0&&s<=86400)
{
a=s/3600;
b=(s%3600)/60;
c=((s%3600)%60);
printf("%d:%d:%d\n",a,b,c);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_241575/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_241575/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 TotalSeconds = 0;
scanf("%d", &TotalSeconds);
printf("%d:%d:%d\n", TotalSeconds / 3600,
TotalSeconds / 60 % 60, TotalSeconds % 60);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_241618/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_241618/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,s,h,m;
scanf("%d",&a);
h=a/3600;
b=a%3600;
m=b/60;
printf("%d:%d:%d\n",h,m,b%60);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_241661/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_241661/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 in; //入力
int h=0; //時
int m=0; //分
int s=0; //秒
scanf("%d",&in);
while(in>=3600){ //時を決定
in -= 3600;
h++;
}
while(in>=60){ //分を決定
in -= 60;
m++;
}
s = in; //余りが秒
printf("%d:%d:%d\n",h,m,s);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_241704/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_241704/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 60
int main(){
int S;
int h,m,s;
scanf("%d",&S);
m = S/N;
s = S%N;
h = m/N;
m = m%N;
printf("%d:%d:%d\n",h,m,s);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_241748/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_241748/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
typedef char String[1024];
int main(void)
{
String str;
scanf("%s", str);
int strnum = atoi(str);
int h = strnum / 3600;
int m = (strnum % 3600) / 60;
int s = (strnum % 3600) % 60;
printf("%d:%d:%d\n", h, m, s);
return (0);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_241791/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_241791/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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) / 60;
s = S % 60;
printf("%d:%d:%d\n", h, m, s);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_241834/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_241834/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, h, m, s;
scanf("%d", &n);
h = n/3600;
m = n % 3600 / 60;
s = n % 60;
printf("%d:%d:%d\n", h, m, s);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_241878/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_241878/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,h,m,s;
scanf("%d",&time);
h = time/(60*60);
m = (time- (h*60*60)) / 60;
s = time - (h*60*60) - m*60;
printf("%d:%d:%d\n",h,m,s);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_241920/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_241920/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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-(h*3600))/60;
printf("%d:%d:%d\n",h,m,s-h*3600-m*60);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_241971/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_241971/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,m,h;
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_242013/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_242013/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_242057/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_242057/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,hour,min,sec;
scanf("%d",&i);
hour = i/3600;
min = (i%3600)/60;
sec = i-(hour*60 + min)*60;
printf("%d:%d:%d\n",hour, min,sec);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_242107/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_242107/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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\n", &S);
h = S / 60 / 60 % 60;
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_242150/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_242150/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d",&a);
b=a;
b=b/3600;
c=a;
c=c%3600;
c=c/60;
d=a;
d=d%60;
printf("%d:%d:%d\n",b,c,d);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_242194/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_242194/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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) / 60;
s = S % 60;
printf("%d:%d:%d\n",h, m, s);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_242244/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_242244/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_242288/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_242288/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int a,b,c,d;
scanf("%d",&a);
b=a/3600;
c=(a-b*3600)/60;
d=a%60;
printf("%d:%d:%d\n",b,c,d);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_242330/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_242330/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 100000
int main(void)
{
int n,p,r,k,t,a,count[101];
int queue[1000000],head=0,tail=0;
int router[101][101],visited[101],i,j,b;
struct mail{
int s;
int d;
int v;
}packet[N];
for(i=0;i<101;i++)
{
for(j=0;j<101;j++)
{
router[i][j]=0;
}
}
sc... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_242374/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_242374/source.c"
target datalayout = "e-m:e-p270: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.mail = type { i32, ... |
#include <stdio.h>
#define TOP 1
#define NORTH 2
#define EAST 3
#define WEST 4
#define SOUTH 5
#define BOTTOM 6
struct dice {
int num[6 + 1];
int top, n, e, w, s, bottom;
int tmp;
};
void dice_init(struct dice *d);
int dice_label(struct dice *d, int n);
int dice_location(struct dice *d, int label);
int main(i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_242482/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_242482/source.c"
target datalayout = "e-m:e-p270: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.dice = type { [7 x ... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
typedef struct dice{
int face[6];
}dice;
void rotate(dice *d, char dir)
{
int temp;
switch(dir) {
case 'N':
temp=d->face[0];
d->face[0]=d->face[1];
d->face[1]=d->face[5];
d->face[5]=d->face[4];
d->face[4]=... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_242525/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_242525/source.c"
target datalayout = "e-m:e-p270: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.dice = type { [6 x ... |
void throwdice_N(int x[6]){
int tmp;
tmp = x[0];
x[0] = x[1];
x[1] = x[5];
x[5] = x[4];
x[4] = tmp;
}
void throwdice_E(int x[6]){
int tmp;
tmp = x[0];
x[0] = x[3];
x[3] = x[5];
x[5] = x[2];
x[2] = tmp;
}
void throwdice_S(int x[6]){
int tmp;
tmp = x[0];
x[0] = ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_242569/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_242569/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
int main(void){
int i,ex1,ex2,ex3,ex4,a,b,q;
int dice[7];
int command;
for(i = 1;i <= 6;i++){
scanf("%d",&dice[i]);
}
scanf("%d",&q);
for(i = 0;i < q;i++){
scanf("%d%d",&a,&b);
while(1){
command = rand() % 4;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_242611/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_242611/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
#include <math.h>
int main(void){
int n[6];
int Dice_sample[6][4] = {{5,3,2,4},{1,3,6,4},{1,5,6,2},
{1,2,6,5},{1,4,6,3},{2,3,5,4}};
int q;
int a,b;
int R[25];
int x,y;
for(int i = 0; i < 6; i++){
scanf("%d", &... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_242662/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_242662/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
char str[110];
int i,j,k,l,m,n;
int n,e,s,w,un,up;
int a[7],b[7], qu[25],qf[25],ufl[25];
int t;
void input() {
for(i=0;i<6;i++){
scanf("%d",&a[i+1]);
b[i+1] = a[i+1];
}
scanf("%d",&n);
for(i=0;i<n;i++) {
scanf("%d %d",&qu[i],&qf[i]);
}
}
void N() {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_242705/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_242705/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@i = dso_local local_unname... |
#include<stdio.h>
#include<string.h>
int key[7];
void N(){
int change = key[1];
key[1] = key[2];
key[2] = key[6];
key[6] = key[5];
key[5] = change;
}
void S(){
int change = key[1];
key[1] = key[5];
key[5] = key[6];
key[6] = key[2];
key[2] = change;
}
void W(){
int change = key[1];
key[1] = key[3];
key[... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_242749/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_242749/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@key = dso_local global [7 ... |
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<math.h>
typedef long long (ll);
#define A 99999999
#define M 1000000007
//ll z[A];
char s[55][55];
ll gcd(ll a,ll b)
{
// Everything divides 0
if (a == 0)
return b;
if (b == 0)
return a;
// base case
if (a == b)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_2428/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_2428/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@s = dso_local global [55 x [55... |
#include<stdio.h>
#include<string.h>
char S[110],T[110];
int main()
{
int i,slen,tlen,flag=0;
scanf("%s",S);
scanf("%s",T);
slen=strlen(S);
tlen=strlen(T);
if(slen==tlen)
{
for(i=0;i<slen;i++)
if(S[i]!=T[slen-1-i]){flag=1;break;}
}
if(flag||slen!=tlen)printf("NO... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24285/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24285/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main(void){
int a,b;
scanf("%d %d",&a,&b);
if(a<b){
printf("a < b\n");
}
else if(a>b){
printf("a > b\n");
}
else{
printf("a == b\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_242893/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_242893/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int a,b;
scanf("%d %d",&a,&b);
if(a < b)
{
printf("a < b\n");
}
else if(a > b)
{
printf("a > b\n");
}
else
{
printf("a == b\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_242950/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_242950/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int a,b;
scanf("%d %d",&a,&b);
if(a < b){
printf("a < b\n");
}else if(a > b){
printf("a > b\n");
}else{
printf("a == b\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_242994/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_242994/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int a,b;
scanf("%d",&a);
scanf("%d",&b);
if(a<b){
printf("a < b\n");
}
if(a>b){
printf("a > b\n");
}
if(a==b){
printf("a == b\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_243036/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_243036/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{int a,b;
scanf("%d %d",&a,&b);
if(a<b)
printf("a < b\n");
else if(a > b)
printf("a > b\n");
else if(a == b)
printf("a == b\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_243087/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_243087/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void) {
long long H, L;
double ans;
scanf("%lld %lld", &H, &L);
ans=(L*L-H*H)/(2.0*H);
printf("%.13f", ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24313/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24313/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main(void){
int a,b;
scanf("%d %d",&a,&b);
if(a<b){
printf("a < b\n");
}else if(a>b){
printf("a > b\n");
}else if("a==b\n"){
printf("a == b\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_243173/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_243173/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
int a;
int b;
scanf("%d%d",&a,&b);
if (a < b) {
printf("a < b\n");
}
else if (a > b){
printf("a > b\n");
}
else {
printf("a == b\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_243216/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_243216/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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<stdlib.h>
int main()
{
int h,l;
float a;
scanf("%d %d",&h,&l);
a=l*tan(atan(1.0*h/l)-atan(1.0*l/h));
if(a<0)
a=-a;
printf("%.10f",a);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24326/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24326/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
int main(){
int a,b;
scanf("%d%d",&a,&b);
if(a>b){
printf("a > b");
}
else if(a<b){
printf("a < b");
}
else {
printf("a == b");
}
printf("\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_243302/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_243302/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
int a, b;
scanf("%d %d", &a, &b);
if(a<b){
printf("a < b\n");
}
if(a>b){
printf("a > b\n");
}
if(a==b){
printf("a == b\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_243346/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_243346/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
//using namespace std;
int main()
{
float l=0;
float h=0;
scanf("%f",&h);
scanf("%f",&l);
float x;
float g;
g=l*l - h*h;
float k=0;
k=2*h;
x=(g/k);
printf("%.6f",x);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24339/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24339/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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.