Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include <stdio.h>
int main(){
int n;
int a,i;
double b;
scanf("%d",&n);
a=0;
for(i=1;i<=n;i++){
if (i%2!=0)
a=a+1;
}
b=a*1.0/n;
printf("%.10f",b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_235061/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_235061/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int n;
scanf("%d",&n);
if(n==1) printf("1\n");
else if(n%2==0) printf("0.5\n");
else{
double all = n;
double odd = n/2+1;
printf("%.7f\n",odd/all);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_235111/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_235111/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d",&a);
float s;
s=(float)((a+1)/2)/a;
printf("%f",s);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_235155/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_235155/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <stdbool.h>
#include <string.h>
#include <math.h>
#include <limits.h>
#define Max(a, b) ((a) > (b) ? (a) : (b))
#define Min(a, b) ((a) > (b) ? (b) : (a))
#define abs(x) ((x) > 0 ? (x) : -(x))
#define MOD (ll)1000000007 //10^9 + 7
#define endl printf("\n")
typedef long lon... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_235199/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_235199/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@pp = dso_local local_unnam... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
#define MAX(X, Y) (((X) > (Y))? (X) : (Y))
#define MIN(X, Y) (((X) < (Y))? (X) : (Y))
int compare_int(const void *a, const void *b){
return *(long int*)b - *(long int*)a; // 大きい順
}
// 公約数
long int gcd(long int a, long int b){
if(b == 0){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_235241/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_235241/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#define max(a, b) (((a) > (b)) ? (a) : (b)) /* 2個の値の最大値 */
#define min(a, b) (((a) < (b)) ? (a) : (b)) /* 2個の値の最小値 */
#define ENTER printf("\n") /* 改行プリント */
int DBG = 1; /* デバッグプリント 提出時は0 */
/* main **************************... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_235285/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_235285/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@DBG = dso_local local_unna... |
#include <stdio.h>
#include <math.h>
int main(){
int N,X,x;
double r=0,h;
scanf("%d%d",&N,&X);
for(int i=0;i<N;i++){
scanf("%d%lf",&x,&h);
r=fmax(r,h/x);
}
printf("%f\n",r*X);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_235328/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_235328/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h> // printf(), scanf()
#define MAX_N 100000
int
main(int argc, char** argv)
{
int n, q;
int a[MAX_N];
int i;
scanf("%d %d", &n, &q);
for (i = 0; i < n; ++i)
scanf("%d", &a[i]);
for (i = 0; i < q; ++i)
{
long x;
scanf("%ld", &x);
long count = 0;
long sum = 0;
int s, t;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_235379/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_235379/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 mem(x,y) (x*)malloc(sizeof(x)*(y));
int crack(int x,int y,int** list,int m,int n)
{
int c[4] = {0,0,0,0};
list[x][y] = 0;
if(x <(m-1))
{
if(list[x+1][y] == 1)
{
c[0] = crack(x+1,y,list,m,n);
}
}
if(x > 0)
{
if(list[x-1][y] == 1)
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_235421/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_235421/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, N;
long long A[200000];
long long cnt = 0;
scanf("%d", &N);
for (i = 0; i < N; i++) {
scanf("%lld", &A[i]);
}
for (i = 0; i < N-1; i++) {
if(A[i]>A[i+1]){
cnt += (A[i] - A[i + 1]);
A[i + 1] = A[i];
}
}
printf("%lld", cnt);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_235465/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_235465/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
long long n,a[200001],i,ans=0;
int main(void)
{
scanf("%lld",&n);
for(i=0;i<n;i++){
scanf("%lld",&a[i]);
if(i!=0&&a[i]<a[i-1]){
ans+=a[i-1]-a[i];
a[i]=a[i-1];
}
}
printf("%lld\n",ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_235508/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_235508/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ans = dso_local local_unna... |
#include<stdio.h>
int main(){
long long i,n,number[1000000],a=0,ans=0;
scanf("%lld",&n);
for(i = 0; i < n; i++){
scanf("%lld",&number[i]);
if(i == 0)continue;
a = number[i-1] - number[i];
//printf("number = %lld number-1 = %lld a = %lld\n",number[i] ,number[i-1] ,a);
if(a > 0){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_235551/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_235551/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
long long k;
long long h=0;
scanf("%d",&n);
int a[n];
a[0] = 0;
for(int i=1; i<=n; i++){
scanf("%d",&a[i]);
}
for(int i=1; i<=n; i++){
k = a[i-1]-a[i];
if(k > 0){
h += k;
a[i] = a[i-1];
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_235595/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_235595/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, i;
long int dif=0;
scanf("%d", &N);
long int A[N];
for(i=0; i<N; i++){
scanf("%ld", &A[i]);
}
i=0;
while(i < (N-1)) {
if(A[i] > A[i+1]) {
dif += A[i] - A[i+1];
A[i+1] += A[i] - A[i+1];
}
i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_235638/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_235638/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#include<assert.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)
#defin... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_235689/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_235689/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <stdint.h>
#include <inttypes.h>
#include <stdlib.h>
char S[200000];
int one_move(int *p, int *o, int target)
{
int P = *p;
int O = *o;
// printf("P=%d target=%d\n", P, target);
if (P < (target - 1)) {
if (((P+2) != O) &&
(S[P+2] == '.')) {
P += 2;
*p = P;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_235731/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_235731/source.c"
target datalayout = "e-m:e-p270: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 [2000... |
#include <stdio.h>
#define max(p,q)((p)>(q)?(p):(q))
#define min(p,q)((p)<(q)?(p):(q))
int dp[60][60][110][2][2];
int check[60][60][110][2][2];
//dp[n][m][x][c][p];
//デッキのn,m枚目を次に使い、スタックにx枚積んであり、
//手番がcで、直前がパス(p?である:でない)
int a[60],b[60];
int calc(int n,int m,int x,int c){
int ttt=0;
int b0=0,b1=0;
for(int i=0;i<x;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_235775/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_235775/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@a = dso_local global [60 x... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
#include <limits.h>
#include <time.h>
int main(){
int i,n,ans=0;
char s[55]={};
scanf("%d %s",&n,s);
for(i=0; i<n-2; i++){
if(s[i]=='A' && s[i+1]=='B' && s[i+2]=='C')ans++;
}
printf("%d",ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_235818/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_235818/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,ans=0,i;
char s[60];
scanf("%d%s",&n,s);
for(i=0;s[i]!='\0';i++)
if((s[i]=='A')&&(s[i+1]=='B')&&(s[i+2]=='C'))
ans++;
printf("%d\n",ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_235861/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_235861/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
char s[60] = {};
int n, i, cnt, ans;
int a[60] = {};
scanf("%d%s", &n, s);
cnt=0;
for(i=0; i<n-2; i++){
if(s[i]=='A'){
a[cnt]=i;
cnt++;
}
}
ans = 0;
for(i=0; i<cnt; i++){
if(s[a[i]+1]=='B'&&s[a[i]+2]=='C')... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_235911/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_235911/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
char s[51];
scanf("%d",&N);
int a,count;
a=0,count=0;
for(int i =0;i<N;i++){
scanf("%s",&s[i]);
if(s[i]=='A'){
a=1;
}else if(s[i]=='B'){
if(a==1){
a = 2 ;
}else{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_235955/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_235955/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, i;
char S[100];
scanf("%d%s", &N, S);
x=0;
for (i=0; i<=N-3; i++) {
if (S[i]=='A' && S[i+1]=='B' && S[i+2]=='C') x++;
}
printf("%d", x);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_235999/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_235999/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 foundwords(char s[],int flag)
{
int L=0,g=0;
char f[4]={'A','B','C'};
for(int i=flag;f[g]!='\0';i++)
{
if(s[i]==f[g++]) L=1;
else return 0;
}
return L;
}
int main()
{
int n,count=0;
char s[1000];
scanf("%d",&n);
scanf("%s",... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236040/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236040/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a[60];
int ans,n;
int main()
{
scanf("%d\n",&n);
scanf("%s",a);
int i,j,k;
for(i=0;i<n-2;i++)
{
if(a[i]=='A')
{
if(a[i+1]=='B')
{
if(a[i+2]=='C')
ans++;
}
}
}
printf("%d\n",ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236091/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236091/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int room[4][3][10]={0};
scanf(" %d", &n);
for(int i=0; i<n; ++i){
int b, f, r, v;
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]);
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236134/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236134/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[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_236178/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236178/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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]={},b,f,r,v,n,i;
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]+=v;
}
for(b=0;b<4;b++)
{
for(f=0;f<3;f++)
{
for(v=0;v<10;v++)
{
printf(" %d",a[b][f][v]);
}
printf("\n");
}
i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236228/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236228/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 to1[3][10]={0},to2[3][10]={0},to3[3][10]={0},to4[3][10]={0};
int a,n,b,f,r,v,i,j;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d %d %d %d",&b,&f,&r,&v);
if(b==1)to1[f-1][r-1]+=v;
if(b==2)to2[f-1][r-1]+=v;
if(b==3)to3[f-1][r-1]+=v;
if(b==4)to4[f-1][r-1]+=v;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236271/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236271/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,nai[5][4][11]={0};
int b,f,r,v,i;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d %d %d %d",&b,&f,&r,&v);
nai[b][f][r]+=v;
}
for(b=1;b<5;b++){
for(f=1;f<4;f++){
for(r=1;r<11;r++){
printf(" %d",nai[b][f][r]);
}
printf("\n");
}
if(b!=4){
printf("######... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236314/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236314/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include<math.h>
int main() {
int heya[4][3][10]={0};
int b,f,r,v=0,i,n,B,F,R;
scanf("%d",&n);
for(i=1;i<=n;i++){
scanf("%d %d %d %d",&b,&f,&r,&v);
heya[b-1][f-1][r-1]=heya[b-1][f-1][r-1]+v;
}
for(B=0;B<=3;B++){
for(F=0;F<=2;F++){
for(R=0;R<=9;R++){
printf(" %d",heya[B][F]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236358/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236358/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 house 4
#define floor 3
#define room 10
int main()
{
short people[house][floor][room] = {0};
short n;
fscanf(stdin, "%hd", &n);
short i, b, f, r, v;
for (i = 0; i < n; i++) {
fscanf(stdin, "%hd %hd %hd %hd", &b, &f, &r, &v);
people[b - 1][f - 1][r - 1] += v;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236408/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236408/source.c"
target datalayout = "e-m:e-p270: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 mem[4][3][10]={0};
int b,f,r,v,n,i,j,k;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d %d %d %d",&b,&f,&r,&v);
mem[b-1][f-1][r-1]+=v;
}
for(i=0;i<4;i++){
for(j=0;j<3;j++){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236451/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236451/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i,j;
int b,f,r,v,n;
int house[4][3][10];
scanf("%d",&n);
for(i=0;i<4;i++){
for(j=0;j<3;j++){
for(a=0;a<10;a++){
house[i][j][a] = 0;
}
}
}
for(i = 0;i < n; i++){
scanf("%d",&b);
scanf("%d",&f);
scanf("%d",&r);
scanf("%d",&v);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236495/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236495/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 house[4][3][10],b,f,r,v,n,i,j,k;
for(i=0;i<4;i++)
{
for(j=0;j<3;j++)
{
for(k=0;k<10;k++)
{
house[i][j][k] = 0;
}
}
}
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d %d %d %d",&b,&f,&r,&v);
house[b-1][f-1][r-1]+=v;
}
for(i=0;i<4;i++)
{
for(j=0;j<3;j... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236538/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236538/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,j,k,l,m;
int peo[4][3][10]={0};
int b[1000],f[1000],r[1000],v[1000];
scanf("%d",&n);
for(i=1;i<=n;i++){
scanf("%d %d %d %d",&b[i],&f[i],&r[i],&v[i]);
peo[b[i]-1][f[i]-1][r[i]-1]+=v[i];
}
for(j=0;j<4;j++){
for(k=0;k<3;k++){
for(l=0;l<=9;l++){
printf... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236581/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236581/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 p[4][3][10],i,j,k,n,b,f,r,v;
for (i = 0; i < 4; i++) {
for (j = 0; j < 3; j++) {
for (k = 0; k < 10; k++) {
p[i][j][k] = 0;
}
}
}
scanf("%d", &n);
for (i = 0; i < n;i++) {
scanf("%d%d%d%d", &b, &f, &r, &v);
p[b-1][f-1][r-1] += v;
}
for (i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236631/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236631/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 house[4][3][10]={},n,i,b,f,r,v;
scanf("%d", &n);
for(i=0;i<n;i++){
scanf("%d %d %d %d",&b,&f,&r,&v);
house[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++){
printf(" %d",house[b][f... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236682/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236682/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int n, b, f, r, v;
int i, j;
int info[12][10];
for(i = 0; i < 12;i++)
for(j = 0; j < 10;j++)
info[i][j] = 0;
scanf("%d", &n);
for(i = 0;i < n;i++){
scanf("%d%d%d%d", &b, &f, &r, &v);
info[(b-1)*3+(f-1)][r-1] = info[(b-... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236725/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236725/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
int i,j,k,n;
int data[4][3][10] = {{{0}}};
scanf("%d",&n);
for(i = 0; i < n; i++) {
int b, f, r, v;
scanf("%d %d %d %d", &b, &f, &r, &v);
data[b-1][f-1][r-1] += v;
}
for(i=0;i<4;i++){
for(j=0;j<3;j++){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236769/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236769/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
////////////////////////////////////////////////////////////////////////
//ファイル名:ITP_1_6_C_Official House.c
//内容;4つの建物を管理します。それぞれの建物には3つのフロアがあり、
// それぞれが10の部屋で構成されています。
// テナント通知を読み取り、各部屋のテナント数を報告するプログラム
//
//入力:通知の数 n, 建物bのf階の部屋rにv人が入室したことを表す
// 4つの整数b、f、r、およびv
//
//出力:建物ごとに1階、2階、3階の情報を表示する。
// 建物の... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236840/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236840/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
int i, j, k, n, b, f, r, v, house[4][3][10]={0};
scanf("%d", &n);
for(i=0; i<n; i++){
scanf("%d %d %d %d", &b, &f, &r, &v);
house[b-1][f-1][r-1]+=v;
}
for(i=0; i<4; i++){
for(j=0; j<3; j++){
for(k=0; k<10; k++){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236884/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236884/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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>
int main(void) {
int b = 0;
int f = 0;
int r = 0;
int v = 0;
int roomMem[4][3][10] = { 0 };
char sh[21] ="####################";
// 0 = スペードが'S'、 1 = ハートが'H'、2 =クラブが'C'、3 = ダイヤが'D'
int n;
scanf("%d", &n);
int i = 0;
for (; i < n; i++) {
scanf("%d %... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236927/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236927/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.sh = private ... |
#include<stdio.h>
int main(){
int room[10][3][4] = {0};
int n,b,f,r,v;
/*入力部*/
scanf("%d",&n);
for (int i = 0; i < n; ++i)
{
scanf("%d %d %d %d",&b,&f,&r,&v);
room[--r][--f][--b] += v;
}
/*出力部*/
for (int i = 0; i < 4; ++i)
{
for (int j= 0; j < 3; ++j)
{
for (int k= 0; k < 10; ++k)
{
printf(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_236970/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_236970/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 house[4][3][10] = {0};
int b,f,r,v,i,n,j,k,l;
scanf("%d", &n);
for (i = 0; i < n; i++)
{
scanf("%d %d %d %d", &b, &f, &r, &v);
house[b-1][f-1][r-1] = house[b - 1][f - 1][r - 1] + v;
}
for (j = 0; j < 4; j++)
{
for (k = 0; k < 3; k++)
{
for (l = 0; l < 10; ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237012/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237012/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 meibo(int arr[][10], int cn); // print 関数
int main(void){
int i, no;
int bui, flo, a, num;
int buildA[3][10] = {0}; // 4 棟の配列初期化
int buildB[3][10] = {0};
int buildC[3][10] = {0};
int buildD[3][10] = {0};
scanf("%d", &no);
while(i<no){
scanf("%d %d %d %d",... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237056/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237056/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
int main()
{
int n,p,i;
long long price = 0;
double prev = 0.5;
scanf("%d%d",&n,&p);
int is[n];
char S[n][10];
for (i=0;i<n;i++)
{
scanf("%s",&S);
// printf("%s",S);
if (strlen(S)==4)
is[i]=0;
else
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_2371/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_2371/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr co... |
//set many funcs template
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<stdbool.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){if(a<b){return a;}return b;}
int ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237142/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237142/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node = type { i32, ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#define MAX 1000005
int main()
{
long int n,i,j,flag =0;scanf("%ld",&n);
for(i=0;i<n;i++)
{
char name[15];
scanf("%s",name);
long int a,b;
scanf("%ld%ld",&a,&b);
if(a>=2400 && b>a)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_23720/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_23720/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 ... |
//Twelvefold way[syazou 12-sou]
//https://onlinejudge.u-aizu.ac.jp/problems/DPL_5_A
//https://qiita.com/drken/items/f2ea4b58b0d21621bd51
//https://mathtrain.jp/twelveway
#include<stdio.h>
#define mod 1000000007
#define faclim 1048576
#define partition_nlim 1024
#define partition_klim 1024
long long power(long long a,... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237258/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237258/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@factorial = dso_local loca... |
#include<stdio.h>
#define MAX 100005
#define NIL -1
typedef struct{
int parent, left, right;
}Node;
Node Tree[MAX];
int Depth[MAX];
int Height[MAX];
int degree[MAX];
int h;
int getDepth(int);
int getHeight(int);
void print(int);
int main(void){
int i, n;
int vertex;
int child[2];
scanf("%d", &n)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237308/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237308/source.c"
target datalayout = "e-m:e-p270: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>
struct Node{
int a,b,c;
};
struct Node N[10000];
int depth(int);
int sibling(int);
int n;
int D[10000],S[10000];
int main(){
int i,j,k,l,m,q,r,s;
scanf("%d",&n);
for(i=0;i<n;i++){
N[i].a=-1;
}
for(i=0;i<n;i++){
scanf("%d %d %d",&q,&r,&s);
N[q].b=r;
N[q].c=s;
if(r!=-1){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237351/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237351/source.c"
target datalayout = "e-m:e-p270: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
typedef struct node{
int No;
int depth;
int height;
int nchild;
int sibling;
int parent;
struct node *left;
struct node *right;
} Node;
void depth(Node *);
void height(Node *, Node *);
void depth(Node *temp){
if(temp->left !=NULL && temp->right == NULL){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237401/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237401/source.c"
target datalayout = "e-m:e-p270: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;} 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_237445/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237445/source.c"
target datalayout = "e-m:e-p270: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{
int parent;
int left;
int right;
}Node;
Node T[25];
int n;
void maigoCenter(void);
int findSibling(int);
int countDegree(int);
int findDepth(int);
int findHeight(int);
void printType(int);
int main(){
int i, id;
scanf("%d", &n);
for(i=0; i<n; i++)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237502/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237502/source.c"
target datalayout = "e-m:e-p270: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 depth(int);
int get_height(int, int);
void retheight(int, int, int, int);
typedef struct {
int parent, sibling, left, right, degree;
} Node;
Node tree[100001];
int n;
int count = 0, count_b = 0;
int count_c[100001];
int main(){
int nownode, deg, left, right, i, j;
scanf("%d", &n);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237560/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237560/source.c"
target datalayout = "e-m:e-p270: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> // printf(), scanf()
#define MAX_N 25
typedef struct node_tbl
{
int parent;
int left;
int right;
} node;
const int nil = -1;
node t[MAX_N];
int d[MAX_N];
int h[MAX_N];
void
set_depth(int u, int v)
{
if (u == nil)
return;
d[u] = v;
set_depth(t[u].left, v + 1);
set_depth(t[u].righ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237603/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237603/source.c"
target datalayout = "e-m:e-p270: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_tbl = type { i... |
#include <stdio.h>
#include <stdlib.h>
typedef struct node{
int p;
int left;
int right;
} Node;
int searchHight(int);
Node *trees;
int main(){
int n,i,id,depth,tmpP,deg,nowNode,sibling;
scanf("%d", &n);
trees = malloc(sizeof(Node)*n);
for (i = 0; i < n; ++i){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237654/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237654/source.c"
target datalayout = "e-m:e-p270: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 parent;
int left;
int right;
}Tree;
Tree t[100000];
int num,depth[100000],height[100000];
void print(int);
void setDep(int,int);
int setHei(int);
int getSib(int);
int main(){
int v,k,l,r,c,i,root = 0;
scanf("%d",&num);
for(i = 0; i< num; i++){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237698/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237698/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.Tree = type { i32, ... |
#include<stdio.h>
#include<stdlib.h>
#define MAX 100001
typedef struct{
int parent;
int left;
int right;
} Node;
Node T[MAX];
int getDepth(int);
int getHeight(int);
int Degree(int);
int Sibling(int,int);
void PrintState(int);
int main(){
int n,i,id,r,l;
scanf("%d",&n);
for(i = 0; i < n; i++){
T[i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237740/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237740/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.Node = type { i32, ... |
#include<stdio.h>
#define MAX 100005
#define NIL -1
/*
p: parent
l: left-child
r: right sibling
*/
struct Node{
int p, l, r;
};
struct Node T[MAX]; // Tree
int n;
int depth(int u){
int d = 0, i;
for(i=u; T[i].p!=NIL; i=T[i].p, d++);
return d;
}
int height(int u){
int l = 0, r = 0,h=0;
if (T[u].l != -... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237791/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237791/source.c"
target datalayout = "e-m:e-p270: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>
#if 1
#define gc() getchar_unlocked()
#else
#define gc() getchar()
#endif
int in()
{
int n = 0, c = gc();
if (c == '-') { c = gc();
do n = 10*n + (c & 0xf), c = gc(); while (c >= '0');
return -n;
}
do n = 10*n + (c & 0xf), c = gc(); while (c >= '0');
return n;
}
typedef struct { int parent... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237856/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237856/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TREE = type { i32, ... |
#include <stdio.h>
#include <assert.h>
#ifndef ONLINE_JUDGE
//#define LLD "%lld"
#else
//#define LLD "%I64d"
#endif
#define MAXR 1000000
int rr[MAXR];
int pos;
int A, B, C, D, M;
char s[13];
int g[10];
int e[10];
int get_int (const char *s, int l) {
if (l == 1) {
return s[0];
} else if (l == 2) {
if (s[0]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_2379/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_2379/source.c"
target datalayout = "e-m:e-p270: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 local_unnamed_ad... |
#include<stdio.h>
int main()
{
int n,f=0;
scanf("%d",&n);
while(n--)
{
char a[20];
scanf("%s",a);
//printf("%s\n",a);
int c,d;
scanf("%d%d",&c,&d);
//printf("%d %d\n",c,d);
if(c>=2400 && d>c)
{
f++;
}
}
if(f>0)
printf("YES\n");
else
printf("NO\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_23795/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_23795/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 N 100000
#define NIL -1
typedef struct {
int p;
int left;
int right;
}Node;
Node T[N];
int depth[N],height[N];
void Depth(int u,int d){
if(u==NIL)return;
depth[u]=d;
Depth(T[u].left,d+1);
Depth(T[u].right,d+1);
}
int Sibling(int u){
if(T[u].p==NIL)return NIL;
if(T[T[u].p]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_237993/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_237993/source.c"
target datalayout = "e-m:e-p270: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 Node{int parent,left,right;}N;
N 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;
int h2 = 0;
if(T[u].left != NIL)h1 =... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238035/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238035/source.c"
target datalayout = "e-m:e-p270: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 <assert.h>
#include <stdlib.h>
#include <string.h>
struct Node {
int id;
int parent;
int left;
int right;
int depth;
int height;
};
#define MAX(x, y) ((x) > (y) ? (x) : (y))
static int FindRoot(const struct Node nodes[], int n) {
int i;
for ( i = 0; i < n;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238079/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238079/source.c"
target datalayout = "e-m:e-p270: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 parent, left, right; };
struct 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].left != NIL)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238121/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238121/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.Node = type { i32, ... |
#include<stdio.h>
#include<stdlib.h>
#define MAX 100000
#define NIL -1
typedef struct{
int p;
int l;
int r;
}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;
if(T[u].l!=NIL... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238172/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238172/source.c"
target datalayout = "e-m:e-p270: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>
struct Node_struct{int id, par, dep, left, right, sib, height;};
typedef struct Node_struct Node;
Node node[200000];
int dfs(int pos, int dep){
node[pos].dep = dep;
int a = 0, b = 0;
if(node[pos].left != -1) a = dfs(node[pos].left, dep + 1);
if(node[pos].right != -1) b = dfs(node[pos].right,... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238215/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238215/source.c"
target datalayout = "e-m:e-p270: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>
#include <stdlib.h>
#include <string.h>
#include <math.h>
int main(int argc,char** argv){
int n;
scanf("%d",&n);
int b[n],a[n];
for(int i=0;i<n;i++){
scanf("%d",&b[i]);
}
for(int i=0;i<n;i++){
for(int j=n-i;j>0;j--){
if(j==b[j-1]){
f... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238266/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238266/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 N, i, j, k;
scanf("%d", &N);
int *a = (int *)malloc(sizeof(int) * N);
int *b = (int *)malloc(sizeof(int) * N);
for(i = 0; i < N; i++){
scanf("%d", &b[i]);
b[i]--;
}
for(i = 0; i < N; i++){
if(b[i] > i){
printf("-1\n");
return 0;
}
}
int *ans... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238309/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238309/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#define G 2019
int main(void){
int n,*x,m,*a;
scanf("%d",&n);
x = (int*)malloc(n*sizeof(int));
for(int i=0;i<n;i++){
scanf("%d",&x[i]);
}
scanf("%d",&m);
a = (int*)malloc(m*sizeof(int));
for(int i=0;i<m;i++){
scanf("%d",&a[i]);
a[i]--;
}
for(int i=0;i<m;i++){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238352/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238352/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, tmp, n[5];
for(i = 0; i < 5; i++) scanf("%d", &n[i]);
for(i = 0; i < 4; i++)
for(j = 0; j < 4; j++)
if(n[j] < n[j + 1]){
tmp = n[j];
n[j] = n[j + 1];
n[j + 1] = tmp;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238402/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238402/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,j;
int data[6];
for(i=0;i<5;i++){
scanf("%d",&data[i]);
}
for(i=0;i<4;i++){
for(j=0;j<4-i;j++){
if(data[j]<data[j+1]){
int temp;
temp=data[j];
data[j]=data[j+1];
data[j+1]=temp;
}
}
}
for(i=0;i<5;i++){
printf("%d",data[i]);
if(i==4)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238453/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238453/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 arr[5];
int i,j;
int temp;
for(i=0;i<5;i++)scanf("%d",&arr[i]);
for(i=4;i>0;i--) {
for(j=0;j<i;j++) {
if(arr[j]<arr[j+1]) {
temp=arr[j];
arr[j]=arr[j+1];
arr[j+1]=temp;
}
}
}
printf("%d %d %d %d %d\n",arr[0],arr[1],arr[2],arr[3],arr[4]);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238510/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238510/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[5];
scanf("%d%d%d%d%d",&a[0],&a[1],&a[2],&a[3],&a[4]);
int i,j;
for(i=0;i<5;i++){
for(j=0;j<4;j++){
if(a[j]<a[j+1]){
int x=a[j+1];
a[j+1]=a[j];
a[j]=x;
}
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238619/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238619/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[5];
int b;
int i;
int j;
for(i = 0; i < 5; i++){
scanf("%d", &a[i]);
}
for(i = 0; i < 5; i++){
for(j = i + 1; j < 5; j++){
if(a[i] < a[j]){
b = a[i];
a[i] = a[j];
a[j] = b;
}
}
}
printf("%d %d %d %d %d\n", a[0], a[1], a[2], a[3], a[4]);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238662/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238662/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[5];
int i,j,tmp;
for(i=0;i<5;i++)
scanf("%d",&a[i]);
for(i=0;i<4;i++){
for(j=i+1;j<5;j++){
if(a[i]<a[j]){
tmp=a[i];
a[i]=a[j];
a[j]=tmp;
}
}
}
for(i=0;i<4;i++)
printf("%d ",a[i]);
printf("%d\n",a[4]);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238705/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238705/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 FOR(i,a,n) for(i=a;i<n;i++)
#define swap(type,a,b) do{type t=a;a=b;b=t;}while(0);
#define MAX(a,b) (((a)>(b))?(a):(b))
#define MIN(a,b) (((a)<(b))?(a):(b))
#define INF 1000000000000000
#define MAX_V 200
#define MAX_E 10000
#define ll long long
typedef s... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238756/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238756/source.c"
target datalayout = "e-m:e-p270: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>
long m[1001*2]={0};
int main(){
long n,t=0,i,u=0,o=0,q=0;
scanf("%ld",&n);
for(i=0;i<n;i++){scanf("%ld%ld",&m[i*2],&m[i*2+1]);}
t=0;q=0;u=0;
while(u<n){
t++;
if(q>0)q--;if(!q)t=m[2*u];
if(m[2*u]==t){
q+=m[2*u+1];
if(q>o)o=q;
u++;
}
}
t+=q;
printf("%ld %ld",t,o);
return 0;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_2388/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_2388/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@m = dso_local global [2002 x i... |
#include<stdio.h>
typedef long long ll;
int main(void)
{
ll x,y;
scanf("%lld %lld",&x,&y);
if(x%y==0){
puts("-1");
return 0;
}
printf("%lld\n",x);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238842/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238842/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,y,a;
scanf("%d %d",&x,&y);
if(x%y==0){
printf("-1");
}else{
printf("%d",x);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238886/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238886/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf ("%d %d %d %d %d",&h1,&m1,&h2,&m2,&k);
int h=(h2-h1)*60;
int m=m2-m1;
int total=h+m-k;
printf ("%d",total);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238936/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238936/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
int main(void)
{
int h1,h2,m1,m2,k;
scanf("%d %d %d %d %d",&h1,&m1,&h2,&m2,&k);
int start = 60*h1+m1;
int end = 60*h2+m2;
printf("%d\n",end-start-k);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_238987/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_238987/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,K,ans,mae,ato;
scanf("%d%d%d%d%d",&a,&b,&c,&d,&K);
ato=c*60+d;
mae=a*60+b;
ans=ato-mae-K;
printf("%d\n",ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239036/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239036/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int n,x;
scanf("%d %d",&n,&x);
int arr[n];
int i;
long long int sum=0;
for(i=0;i<n;i++)
{
scanf("%d",&arr[i]);
sum+=arr[i];
}
if(x==(sum+n-1))
printf("YES\n");
else
printf("NO\n");
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_23908/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_23908/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 <math.h>
double area3(double x1, double y1, double x2, double y2, double x3, double y3)
{
double a, b, c, x;
a = sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2));
b = sqrt((x1-x3)*(x1-x3)+(y1-y3)*(y1-y3));
c = sqrt((x2-x3)*(x2-x3)+(y2-y3)*(y2-y3));
x = (a+b+c)/2;
return sqrt... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239137/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239137/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 SQ(a) ((a) * (a))
typedef struct{
double x[20];
double y[20];
} POINT;
int main(void)
{
POINT p;
double s;
int i, j;
double menseki;
i = 0;
while (scanf("%lf%*c%lf", &p.x[i], &p.y[i]) != EOF){
i++;
}
menseki = 0;
for (j = 0; j < i; j++){
menseki += (p... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239195/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239195/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.POINT = type { [20 ... |
#include <stdio.h>
#include <math.h>
int main(void) {
int n, x, tmp;
scanf("%d", &n);
x = ceil((double)n / 1.08);
tmp = x * 1.08;
if (tmp == n) printf("%d\n", x);
else printf(":(\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239238/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239238/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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){
double n,n1,a,b;
int c;
scanf("%lf",&n);
n1 = (double)n / 1.08;
a = ceil(n1);
b = floor(n1);
if(a != b){
if(floor(a * 1.08) == n)
printf("%d\n",(int)a);
else if(floor(b * 1.08) == n)
printf("%d\n",(int)b);
else
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239296/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239296/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 cmp(const void *a,const void *b){
return *(int*)a-*(int*)b;}
int main(){
int a,b,i,count=0;
double c,d;
scanf("%d",&a);
for(i=1;i<a+1;i++){
c=i*1.08;
b=c;
if(a==b){
printf("%d\n",i);
break;
}
else
count++;
}
if(count==a)
printf(":(\n");
re... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239339/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239339/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i,m=0;
scanf("%d%d",&n,&t);
for(i=1;i<=n;i++)
{
scanf("%d",&a);
m+=86400-a;
if(m>=t){
printf("%d\n",i);
break;
}
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_23939/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_23939/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 n , t;
scanf("%d %d",&n,&t);
int i = 0;
int x;
scanf("%d",&x);
t -= x;
while(i++ < n-1)
{
t--;
scanf("%d",&x);
t -= x;
}
if(t == 0)
printf("YES");
else
printf("NO");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_23944/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_23944/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main(void)
{
int h,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_239483/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239483/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#pragma warning(disable: 4996)
#include<stdio.h>
int sec, h, m, s, hp, mp;
int main() {
scanf("%d", &sec);
h = sec / 3600;
hp = sec % 3600;
m = hp / 60;
mp = hp % 60;
s = mp;
printf("%d:%d:%d\n", h, m, s);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239533/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239533/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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=0,m=0,s=0;
scanf("%d",&s);
m=s/60;
s%=60;
h=m/60;
m%=60;
printf("%d:%d:%d\n",h,m,s);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239577/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239577/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,c,n,b;
long long int t;
scanf("%d%lld",&n,&t);
int a[n];
c=0;
for(i=0;i<n;i++)
{
scanf("%d",&a[i]);
}
for(i=0;i<n;i++)
{
c=86400-a[i]+c;
if(c>=t)
{
printf("%d\n",i+1);
break;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_23962/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_23962/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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=3600,m=60;
scanf("%d",&s);
printf("%d:%d:%d\n",s/h,s%h/m,s%h%m);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239663/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239663/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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-(60*m);
printf("%d:%d:%d\n",h,m,s);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_239706/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_239706/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 d(int a[],int b);
int main(void)
{
int n,t,i,a,arr[100];
scanf("%d %d",&n,&t);
for (i=0; i<n; i++)
{
scanf("%d",&a);
arr[i]=a;
}
int c;
c=d(arr,t);
printf("%d",c);
return 0;
}
int d(int a[],int b)
{
int i,j;
int s=0;
for (i=0;i<100;i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_23975/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_23975/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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.