Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include <stdio.h>
int main(void) {
int a, b, c, d, e, k;
scanf("%d%d%d%d%d%d", &a, &b, &c, &d, &e,&k);
if (b - a <= k) {
if (c - a <= k) {
if (d - a <= k) {
if (e - a <= k) {
if (c - b <= k) {
if (d - b <= k) {
if (e - b <= k) {
if (d - c <= k) {
if (e - c <= k) {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_202560/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_202560/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int A[5];
int k;
int count=0;
for(i=0;i<5;++i){
scanf("%d", &A[i]);
}
scanf("%d", &k);
for(i=4;i>=0;--i){
for(int j=0;j<5;++j){
if(A[i]-A[j] <= k){continue;}else{printf(":(");return 0;}
}
}
printf("Yay!... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_202603/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_202603/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,e,k;
scanf("%d%d%d%d%d%d",&a,&b,&c,&d,&e,&k);
if(e-a <= k)
{
puts("Yay!");
}
else
{
puts(":(");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_202647/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_202647/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
#define max(a,b) (a>b?a:b)
int mv[4][2] = {{1,0},{0,1},{-1,0},{0,-1}};
int ori[10][10];
int map[10][10];
int fa[100];
int color[100];
int x,y,tar;
int find(int now){
if(fa[now]==-1)return now;
return fa[now] = find(fa[now]);
}
void chkun()
{
int i,j,k;
int dx,dy;
int ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_202690/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_202690/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@mv = dso_local local_unnam... |
#include <stdio.h>
int main(void){
int i = 1, j = 1;
int month, days;
int day[13][32];
day[1][1] = 3;
day[2][1] = 6;
day[3][1] = 0;
day[4][1] = 3;
day[5][1] = 5;
day[6][1] = 1;
day[7][1] = 3;
day[8][1] = 6;
day[9][1] = 2;
day[10][1] = 4;
day[11][1] = 0;
day[12][1] = 2;
for( i = 1; i <= 12; i++) {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_202748/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_202748/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,m,d,temp;
int mon[13]={0};
temp = 31;
mon[0] = 0;
mon[1] = 31;
for(i=2;i<12;i++){
if(i==4||i==6||i==9||i==11)
mon[i]+=temp+30;
else if(i==2)
mon[i]+=temp+29;
else
mon[i]+=temp+31;
temp = mon[i];
}
while(scanf("%d %d",&m,&d)){
if(m==0)
break;
temp=(m... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_202791/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_202791/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 month;
int date;
int mod;
scanf("%d%d", &month, &date);
while (month != 0){
if(month == 1){
mod = date % 7;
}
else if(month == 2){
mod = (date + 31) % 7;
}
else if(month == 3){
mod = (date + 60) % 7;
}
else if(month == 4){
mod = (date + 91) %... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_202841/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_202841/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 m,d,days,i;
int date[13] = {0,31,29,31,30,31,30,31,31,30,31,30,31};
char *day[7] = {
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday",
"Saturday",
"Sunday",
};
while(1){
scanf("%d %d",&m,&d);
if(m == 0){
break;
}
days = 0;
for(i = 1;i < m;i++)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_202906/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_202906/source.c"
target datalayout = "e-m:e-p270: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.date = privat... |
#include<stdio.h>
int main()
{
int n,k;
scanf("%d%d",&n,&k);
int i;
i=k;
int save ;
save=k;
int flag=0;
i=k+1;
while(1)
{
if(flag==0)
{
printf("%d",i);
i--;
if(i==0)
{
flag=1;
i=save+2;
if(save==n-1)
{
break;
}
}
printf(" ");
}
else if (flag==1)
{
print... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_2030/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_2030/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr co... |
#include<stdio.h>
#include<math.h>
int main(void)
{
long long int a,b,c=1,i=2,count=1;
scanf("%lld%lld",&a,&b);
while(c!=0){
c=a%b;
a=b;
b=c;
}
while(i*i<=a){
if(a%i==0){
count++;
while(a%i==0)
a/=i;
}
i++;
}
if(a>1)
count++;
printf("%lld",count);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203042/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203042/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
long int gcd(long int a, long int b) {
long int t; // �⏕�ϐ�
while ( b != 0 ) { // ������0�ɂȂ�܂�
t = a%b; a = b; b = t; // �������]�ɒu��������
}
return a; // ������0�ɂȂ����Ƃ��̈����GCD
}
long int
main(){
long int A,B,i;
long int cnt=... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203086/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203086/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ha,hb,ka,kb,a,b,c,d,ht,kt;
scanf("%d %d",&ha,&hb);
scanf("%d %d",&ka,&kb);
scanf("%d %d %d %d",&a,&b,&c,&d);
ht=ha*a+hb*b;
if(ha>=10)
ht+=(ha/10)*c;
if(hb>=20)
ht+=(hb/20)*d;
kt=ka*a+kb*b;
if(ka>=10)
kt+=(ka/10)*c;
if(kb>=... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203143/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203143/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
int h[2],k[2],a,b,c,d,i,w,x,y,z;
for(i=0;i<2;i++){
scanf("%d",&h[i]);
}
for(i=0;i<2;i++){
scanf("%d",&k[i]);
}
scanf("%d %d %d %d",&a,&b,&c,&d);
x=h[0]*a+h[1]*b;
w=h[0]/10;
x=x+c*w;
z=h[1]/20;
x=x+d*z;
y=k[0]*a+k[1]*b;
w=k[0]/10;
y=y+c*w;
z=k[1]/20;
y=y+d*z;
if(x<... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203187/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203187/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 MIN(int a,int b){return a<b?a:b;}
int MAX(int a,int b){return a<b?b:a;}
int ta[100010],to[100010],co[100010],nt[100010],it[100010],l[100010];
int MF(int e,int s,int t,int min){
if(s==t)return min;
int i,r;
for(;it[s]+1;it[s]=nt[it[s]]){
if(co[it[s]]==0||l[s]>=l[to[it[s]]])continue;
r... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203237/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203237/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@it = dso_local local_unnam... |
#include <stdio.h>
#include <math.h>
int main(void) {
int A[3];
int N, i = 0;
int a, b, c;
int max;
scanf("%d", &N);
while(i++ < N) {
scanf("%d %d %d", &a, &b, &c);
if(a > b) {
A[2] = b;
if(a > c) {
A[0] = a;
A[1] = c;
}
else {
A[0] = c;
A[... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203280/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203280/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,a,b,c,esc,count,count1;
scanf("%d",&N);
for(count=0;count<N;count++){
scanf("%d %d %d",&a,&b,&c);
for(count1=0;count1<2;count1++){
if(a>b){
esc=b;
b=a;
a=esc;
}
if(b>c){
esc=c;
c=b;
b=esc;
}
}
if(a*a+b*b==c*c){
printf("YES\n");
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203338/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203338/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,l,m,n,max1,max2,max3;
scanf("%d",&a);
for(i=0;i<a;i++){
scanf("%d",&l);
max1 = l;
scanf("%d",&m);
if(max1<m){
max1 = m;
max2 = l;
}else{
max1 = l;
max2 = m;
}
scanf("%d",&n);
if(max1<n){
max3 = max2;
max2 = max1;
max1 = n... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203381/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203381/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, a, b, c;
scanf("%d", &n);
for (i = 0; i < n; ++i) {
scanf("%d %d %d", &a, &b, &c);
if ((a * a == b * b + c * c)
|| (b * b == c * c + a * a)
|| (c * c == a * a + b * b))
printf("YES\n");
else... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203424/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203424/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int n;
int a;
int b;
int c;
int i;
scanf("%d", &n);
for (i = 0; i < n; i++){
scanf("%d%d%d", &a, &b, &c);
if ((a * a) + (b * b) == (c * c)){
printf("YES\n");
}
else if ((b * b) + (c * c) == (a * a)){
printf("YES\n");
}
else if ((a * a) + (c * c) ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203475/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203475/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, hen[3], i, j, k, co;
scanf("%d", &n);
for (i = 0; i < n; i++){
scanf("%d %d %d", &hen[0], &hen[1], &hen[2]);
for (j = 0; j < 3; j++){
hen[j] *= hen[j];
}
for (j = 0; j < 3; j++){
for (k = 0; k < 3; k++){
if (hen[j] < hen[k]){
co = hen[j];
hen[j]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203525/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203525/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 checkTri(int,int,int);
int main(){
int a,b,c,n,i;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d %d %d",&a,&b,&c);
checkTri(a,b,c);
}
return 0;
}
void checkTri(int a,int b,int c){
a*=a;
b*=b;
c*=c;
if(a==b+c)printf("YES\n");
else if(b==a+c)printf("YES\n");
else if(c==a+b)printf("YE... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203569/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203569/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
int N;
scanf("%d", &N);
int i;
int A[N];
int B[N];
int C[N];
char ans[N][4];
for( i = 0; i < N; i++ ){
ans[i][0] = 'N';
ans[i][1] = 'O';
ans[i][2] = '\0';
ans[i][3] = '\0';
scanf("%d %d %d", A+i, B+i, C+i );
if( A[i]*A[i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203611/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203611/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, num, i, tmp;
scanf("%d", &num);
for(i = 0; i < num; i++){
scanf("%d %d %d", &a, &b, &c);
if(a < b){
tmp = a;
a = b;
b = tmp;
}
if(a < c){
tmp = a;
a = c;
c = tmp;
}
if(a * a == b * b + c * c){
printf("YES\n");
}else{
printf("NO\n... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203655/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203655/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,n,i;
scanf("%d",&n);
for(i=1;i<=n;i++){
scanf("%d %d %d",&a,&b,&c);
a*=a; b*=b; c*=c;
if(a+b==c || b+c==a || c+a==b)
printf("YES\n");
else
printf("NO\n");
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203705/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203705/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,a,b,c;
scanf("%d",&N);
for(i=0; i<N; i++){
scanf("%d %d %d",&a,&b,&c);
if(a*a==b*b+c*c || b*b==a*a+c*c || c*c==a*a+b*b)
printf("YES\n");
else
printf("NO\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203749/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203749/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 square(int x);
int main(void)
{
int i, a, temp, tcount, sides[3];
scanf("%d", &tcount);
for(a=0; a<tcount; a++)
{
scanf("%d %d %d", &sides[0], &sides[1], &sides[2]);
for(i = 0; i < 2; i++)
{
if(sides[i + 1] < sides[i])
{
temp ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203813/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203813/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main (int argc, char* argv[])
{
int n, array[3], temp, i, j, k;
scanf("%d", &n);
for (i=0; i<n; i++) {
scanf("%d %d %d", &array[0], &array[1], &array[2]);
for (j=2; 0<j; j--) {
for (k=0; k<j; k++) {
if (array[k+1] < array[k]) {
temp = array[k];
array[k] = array[k+1];
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203879/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203879/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 judgeTriangle(int* num);
int judgeRightTriangle(int* num);
int main(){
int dataSize;
int num[3];
int i;
scanf("%d", &dataSize);
for(i = 0; i < dataSize; i++)
{
scanf("%d %d %d", num, num+1, num+2);
if((judgeTriangle(num) == 1) && (judgeRightTriangle(num) == 1))
{
printf("YES\n... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203921/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203921/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/*
1000 以下の3つの正の整数を入力し、
それぞれの長さを3辺とする三角形が直角三角形である場合には YES を、
違う場合には NO と出力して終了するプログラムを作成して下さい。
手順:
・データセット数nを入力
・x,y,rを入力
・x,y,rのいずれかが1以上1000以下の範囲になければ、その入力はカウントしない。(i--)
・r^2==(x^2+y^2)なら、YES
そうでなければ、NOを表示する。
・データセット数(n)回繰り返して終了。
・結果:Wrong answer
なぜか不正解。
3つの入力の内、x,y,rを切り替えられるようにしてみたが、やはり不正解。(x^2==(y^2+r^2)とか、y^2... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203972/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203972/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int a,b,c;
int i,n;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d %d %d",&a,&b,&c);
if(a*a+b*b==c*c||a*a+c*c==b*b||b*b+c*c==a*a) printf("YES\n");
else printf("NO\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204021/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204021/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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<limits.h>
#include<string.h>
#include<math.h>
int maxsubsequence(int n,int a[n]){
int max=0;
float sum=0,c=0;
for(int p=0;p<n;p++){
int q;
//int sum=0,c=0;
for(q=0;q<p;q++){
if(a[p]==a[q])
break;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20408/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20408/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <stdlib.h>
int is_right_triangle(int a, int b, int c) {
return a * a == b * b + c * c;
}
int main(void) {
int i, n, a, b, c;
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%d %d %d", &a, &b, &c);
if (is_right_triangle(a, b, c) ||
is_right_triangle(b, a, c) ||
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204122/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204122/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 isright(int, int, int);
int main(void){
int i, N, a, b, c;
scanf("%d\n", &N);
for(i = 0; i < N; i++){
scanf("%d %d %d", &a, &b, &c);
if((a*a == b*b + c*c) || (b*b == c*c + a*a) || (c*c == a*a + b*b)){
printf("YES\n");
}else{
printf("NO\n");
}
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204173/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204173/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int Data;
int n;
int Factor[1000][3];
scanf("%d\n",&Data);
for(n=0;n<Data;n++){
scanf(" %d %d %d",&Factor[n][0],&Factor[n][1],&Factor[n][2]);
}
int l,m;
for(l=0;l<Data;l++){
int a,b,c;
a=b=c=0;
a=Factor[l][0]*Factor[l][0];
b=Factor[l][1]*Factor[l][1];
c=Factor[l][2]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204223/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204223/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 compare_int(const void *a, const void *b){
return *(int *)b - *(int *)a;
}
int main(int argc, char const *argv[]) {
int N;
scanf("%d", &N);
int M = 3 * N;
int a[M];
for (int i = 0; i < M; i++) {
scanf("%d", a + i);
}
qsort(a, M, sizeof(int), compare_int)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204267/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204267/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 check(int arr[],int n)
{
float avg=0;
int count=0,i;
for(i=0;i<n;i++)
{
avg+=arr[i];
if(arr[i]!=0) count++;
}
avg/=(float)count;
count=0;
for(i=0;i<n;i++)
{
if(avg<(float)arr[i])
{
count++;
}
}
if(co... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20431/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20431/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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, minNo;
float h, w, min, diff;
while (1)
{
scanf("%d", &n);
if (!n)
break;
min = 999999;
while (n--)
{
scanf("%d%f%f", &i, &h, &w);
h /= 100.0;
diff = 22.0 - w / (h*h);
if (diff < 0)
diff *= -1;
if (min > diff || min == diff && minNo > i)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204353/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204353/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
int max(const void *a, const void *b){return *(int*)b - *(int*)a;}
uint64_t a[13] = {0};
uint64_t b[13] = {0};
int main(void)
{
b[0] = 1;
while(1){
char c;
uint64_t f;
scanf("%c",&c);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204403/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204403/source.c"
target datalayout = "e-m:e-p270: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 local_unname... |
#include<stdio.h>
int main(void){
int n,d,cnt=0;
for(scanf("%d%d",&n,&d);0<n;n-=2*d+1,cnt++);
printf("%d",cnt);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204447/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204447/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/* ex4_1
shu_t */
#include<stdio.h>
#include<math.h>
int main(void){
int tree_num, d;
int ans;
//input N and D
scanf("%d %d",&tree_num,&d);
//answer: round up to tree_num divided by 2*D+1
ans = ceil((double) tree_num/(2*d+1));
//output the answer
printf("%d\n",ans);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204490/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204490/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/* ex4_1
kosaq */
#include <stdio.h>
#include <math.h>
int main(void){
double n_tree;//N本の林檎の木をn_treeで定義
double d_range;//一人は、D本先までを監視できるのでDをd_rangeで定義
double one_observe;//一人が監視できる林檎の木の数
int people_number;//N本の林檎の木を監視するために必要な人数の最小値
scanf("%lf %lf", &n_tree, &d_range);//NとDを入力
one... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204533/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204533/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, d;
scanf("%d%d",&n,&d);
if(n%(d*2+1)==0)
printf("%d\n",n/(d*2+1));
else
printf("%d\n",n/(d*2+1)+1);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204584/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204584/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, D;
int horieyui;
if (scanf("%d%d", &N, &D) != 2) return 1;
horieyui = D + 1 + D;
printf("%d\n", (N + horieyui - 1) / horieyui);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204627/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204627/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,m;
scanf("%d%d",&n,&m);
m*=2;
m++;
int t=n/m;
if(n%m)
t++;
printf("%d\n",t);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204670/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204670/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,d;
scanf("%d%d",&n,&d);
if(n%(2*d+1)==0) printf("%d",n/(2*d+1));
else printf("%d\n",n/(2*d+1)+1);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204713/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204713/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(int argc, char * argv[]) {
int n ,d, ans, i;
scanf("%d%d", &n, &d);
ans = 0;
for(i = 0;i < n;){
i += 2*d + 1;
ans++;
}
printf("%d\n", ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204757/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204757/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int n,a,b,i,j,k,p;
int arr[100];
int fz[100];
scanf("%d",&n);
for(i=0; i<n; i++)
{
scanf("%d %d",&a,&b);
for(j=0; j<a; j++)
{
scanf("%d",&arr[j]);
}
for(k=1; k<=b+1; k++)
{
for(p=0; p<a; p++)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20480/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20480/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <stdlib.h>
int main(void) {
// 入力
int n,d,result=0;
scanf("%d %d",&n,&d);
float tmp1=(n/(d*2.0+1.0));
int tmp2=(int)tmp1;
if(tmp1==tmp2)result=tmp2;
else result=tmp2+1;
printf("%d\n",result);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204843/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204843/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,d,res;
scanf("%d %d",&n,&d);
res=n/(d*2+1);
if(n%(d*2+1) != 0){
res++;
}
printf("%d",res);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204894/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204894/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, d;
scanf("%d %d", &n, &d);
int cansee = d * 2 + 1;
int ans = 0;
while(n > 0) {
n -= cansee;
ans++;
}
printf("%d\n", ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204937/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204937/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
printf("%s",(a%500<=b)?"Yes":"No");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204980/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204980/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,a;
scanf("%d\n",&n);
scanf("%d",&a);
if((n%500)<=a){
printf("Yes");
}
else{
printf("No");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205022/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205022/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,d;
scanf("%d%d",&a,&b);
d=a%500;
if(d<=b){
printf("Yes\n");
}
else if(a<500&&a<=b){
printf("Yes\n");
} else{
printf("No\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205066/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205066/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, A;
scanf("%d%d", &N, &A);
printf("%s\n", N%500 <= A ? "Yes" : "No");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205109/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205109/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
int N,A,i;
int sum,flag = 0;
scanf("%d%d",&N,&A);
for(i=0;i<=20;i++){
sum = 500*i;
if(N <= sum + A && N >= sum){
flag = 1;
}
}
if(flag == 1){
printf("Yes\n");
}else{
printf("No\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205152/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205152/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, A;
scanf("%d", &N);
scanf("%d", &A);
if (N % 500 <= A){
printf("Yes\n");
}
else {
printf("No\n");
}
return (0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205196/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205196/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(){
int N, A;
scanf("%d%d", &N, &A);
if(N%500<=A)
printf("Yes\n");
else
printf("No\n");
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205239/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205239/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int N,A;
scanf("%d%d",&N,&A);
if(N%500 > A)
{
printf("No\n");
}
else
{
printf("Yes\n");
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205282/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205282/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,x=0,y=0;
char s[101];
scanf("%d%s",&n,s);
for(i=0;i<n;i++){y+=1-(s[i]==')')*2;x=x<y?x:y;}
for(i=0;i<-x;i++)printf("(");printf("%s",s);for(i=0;i<y-x;i++)printf(")");
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205332/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205332/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 i;
char s[110] = {};
char ans[210] = {};
int numleft[110] = {};
int numright[110] = {};
int lmax = 0;
int rmax = 0;
scanf("%d\n", &n);
for (i = 1; i < n+1; i++) {
scanf("%c", &s[i]);
if (s[i] == ')') {
numleft[i] = numleft[i-1] + 1;
} else... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205390/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205390/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
(a==b&&b==c)?puts("Yes"):puts("No");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205433/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205433/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
char s[100];
scanf("%d%d%d%s", &a, &b, &c, s);
if (a == b && a == c) {
printf("Yes");
} else {
printf("No");
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205477/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205477/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
int main(void){
int a,c,b;
scanf("%d %d %d",&a,&b,&c);
if(a==b){
if(b==c){
if(a==c){
printf("Yes\n");
return 0;
}
}
}
printf("No\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205563/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205563/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include <ctype.h>
#include <stdint.h>
#include <string.h>
#include <wchar.h>
#include <math.h>
#define N_MAX (100)
#define P_MAX (100)
#define DP_ARRAY_SIZE (N_MAX * P_MAX / 32 + 1)
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205707/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205707/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[10];
scanf("%s",s);
s[3]=s[3]+1;
printf("%s\n",s);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205794/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205794/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 abs(int x)
{
if (x > 0){
return (x);
}
return (-x);
}
int main()
{
int N, T, E;
int x;
int i, j;
scanf("%d %d %d", &N, &T, &E);
for (i = 0; i < N; i++){
scanf("%d", &x);
for (j = 1; x * j - T <= E; j++){
if (abs(x * j - T) <= E){
printf("%d\n", i + 1);
return (0);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205952/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205952/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 three_min( int c ,int a ,int n )
{
if( c > a )
{
c = a ;
}
if( c > n )
{
return n ;
}
return c ;
}
int min_min( int c ,int a )
{
return c > a ? a : c ;
}
int main()
{
int q ;
int c ,a ,n ;
int ans ;
scanf( "%d" ,&q ) ;
int i ;
for( i = 0 ; i < q ; ++i )
{
ans =... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205996/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205996/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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<stdint.h>
#include<inttypes.h>
typedef int32_t i32;
typedef int64_t i64;
typedef uint64_t u64;
void set_at (u64 *b, i32 k) {
b[k >> 6] |= (u64) 1 << (k & 63);
}
i32 get_at (u64 *b, i32 k) {
return (b[k >> 6] >> (k & 63)) & 1;
}
int func (u64 *a, u64 *b, u64 *c, i32 ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206045/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206045/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 prog[1000000];
int i,j,k;
int a,d,n;
for(i=2;i<1000000;i++)
prog[i] = 1;
for(j=2;j*j<1000000;j++){
for(k=j*j;k<1000000;k=k+j)
prog[k] = 0;
}
while(1){
scanf("%d %d %d",&a,&d,&n);
if(!a && !d && !n)
break;
int x,y,z=0;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206089/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206089/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdint.h> // int64_t
#define max(a,b) ((a) > (b) ? (a) : (b))
#define min(a,b) ((a) > (b) ? (b) : (a))
#define NUM_MAX 100000
int get_str(char *str, int size)
{
char format[100];
if (size == 0)
return 0;
snprintf(format, sizeof... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206131/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206131/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ta[10010],to[60010],nt[60010];
int id[10010],rid[10010],cmp[100010],r=0,f[10010]={0};
void sdfs(int e,int s,int k){
int i;
f[s]++;
for(i=ta[s];i+1;i=nt[i]){
if(i<e&&k<0&&f[to[i]]==0||i>=e&&k>=0&&f[to[i]]==1)sdfs(e,to[i],k);
}
k<0?(id[rid[s]=r++]=s):(cmp[s]=k);
}
void scc(int v,int e,... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206175/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206175/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@r = dso_local local_unname... |
#include <stdio.h>
int main()
{
int L;
double a;
scanf("%d",&L);
a= L/3.0;
printf("%lf",a*a*a);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206247/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206247/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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()
{
double L, vol, a;
scanf("%lf", &L);
a = L / 3.;
vol = a * a * a;
printf("%.12lf", vol);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206290/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206290/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(){
double l;
scanf("%lf",&l);
printf("%9.6f\n",l * l * l / 27);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206333/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206333/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
double V;
scanf("%d",&a);
V=(double)(a*a*a)/27;
printf("%lf",V);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206377/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206377/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<math.h>
#include<string.h>
#define M 1000005
#define A 100005
typedef long long (ll);
char s[60][60],t[5];
ll x[31625],y[15820],z[A];
int main()
{
ll a,b,c,d,e,f,g,h,i,j,k,l,m,n,o;
scanf("%lli",&a);
for(;a;a--)
{
scanf("%lli",&d);
scanf("%lli%lli%lli",&e,&f,&g);
for(h=0;h<d;h++)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20642/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20642/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 <stdint.h>
#include <inttypes.h>
#include <stdlib.h>
#include <string.h>
typedef unsigned long long int uint64;
typedef long long int int64;
#define MAX(a,b) ((a)>(b)?(a):(b))
#define MIN(a,b) ((a)<(b)?(a):(b))
#define ABS(a) ((a)>(0)?(a):-(a))
//set many funcs template
//Ver.20... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206463/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206463/source.c"
target datalayout = "e-m:e-p270: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._tmp_t = type { i64... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
//N = number of atoms
int main()
{
//int i,j,k,l;
double L;
double i;
double ans;
scanf("%lf",&L);
i = (L/3.0);
ans = (i*i*i);
printf("%f\n",ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206506/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206506/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n, A[10000], top1, B[10000], top2, C[10000], top3;
int num;
int ans1;
int main() {
int i;
scanf("%d", &n);
for (i = 1; i <= n; i++) {
scanf("%d", &num);
if (num == 1) A[++top1] = i;
if (num == 2) B[++top2] = i;
if (num == 3) C[++top3] = i;
}
ans1 = top1;
if (top2 < ans1) ans1 = top... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20655/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20655/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
#include<stdlib.h>
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
#define NIL NULL
Node root;
Node treeMinimum(Node x){
while(x->left!=NIL) x=x->left;
return x;
}
Node treeMaximum(Node x){
while(x->right!=NIL) x=... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206593/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206593/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node = type { ptr, ... |
#include<stdio.h>
#include<stdlib.h>
struct node{
struct node *r;
struct node *l;
struct node *p;
int key;
};
typedef struct node * Node;
Node root;
Node find(Node u, int k){
while(u!=NULL && k != u->key){
if(k<u->key)u=u->l;
else u=u->r;
}
return u;
}
Node mini(Node x){
while(x->l!=NULL)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206643/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206643/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node = type { ptr, ... |
#include<stdio.h>
#include<stdlib.h>
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
#define NIL NULL
Node root;
Node treeMinimum(Node x){
while(x->left!=NIL)
x=x->left;
return x;
}
Node treeSearch(Node u, int k){
while(u!=NIL && k!=u... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206687/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206687/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node = type { ptr, ... |
# define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<stdlib.h>
typedef struct node {
int key;
struct node *p_left;
struct node *p_right;
struct node *p_parent;
}NODE;
NODE *insert(int value, NODE *p_root); /* ?????\ */
void inorderTreeWalk(NODE *p_node); /* ??????????????? */
void preorderTreeWalk(NODE *p_... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206737/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206737/source.c"
target datalayout = "e-m:e-p270: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 500001
#define NIL NULL
struct node{
int key;
struct node *parent;
struct node *left;
struct node *right;
};
typedef struct node * Node;
Node root;
Node treeMinimum(Node x){
while(x->left!=NIL) x=x->left;
return x;
}
Node treeSearch(Node x, int k){
i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206780/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206780/source.c"
target datalayout = "e-m:e-p270: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>
struct Node{
int key;
struct Node *right,*left,*parent;
};
struct Node *root,*NIL;
void insert(int k){
struct Node *y=NIL;
struct Node *x=root;
struct Node *z;
z=(struct Node *)malloc(sizeof(struct Node));
z->key=k;
z->left=NIL;
z->right=NIL;
while(x!=NIL)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206830/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206830/source.c"
target datalayout = "e-m:e-p270: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 <limits.h>
#include <stdlib.h>
#include <limits.h>
#include <stdbool.h>
#define NIL NULL
#define TREE_VALUE INT_MAX
typedef struct Node* NodePointer;
typedef NodePointer Tree;
typedef struct Node {
int key;
NodePointer p, left, right;
} Node;
NodePointer makeNode(int key) {
NodePoin... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206874/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206874/source.c"
target datalayout = "e-m:e-p270: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>
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
#define NIL NULL
Node root;
int count =0;
int count2 = 0;
Node treeMinimum(Node x){
while (x->left != NIL){
x = x->left;
}
return x;
}
Node Iterativet... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206917/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206917/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node = type { ptr, ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct Node {
int key;
struct Node *right, *left, *parent;
};
typedef struct Node Node;
Node *root, *NIL;
Node * treeMinimum(Node *x) {
while(x->left != NIL)
x = x->left;
return x;
}
Node * find(Node *u, int k) {
while(u != NIL && k != u->key)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206960/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206960/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.Node = type { i32, ... |
#include<stdio.h>
int main()
{
int a[5001],x[5001]={},y[5001]={},z[5001]={},lc,w,n,num,one=0,two=0,three=0,i=1,j=1,k=1;
scanf("%d",&n);
for(lc=1;lc<=n;lc++)
{
scanf("%d",&num);
if(num==1)
{
one++;
x[i]=lc;
i++;
}
else if(num==2)
{
two++;
y[j]=lc;
j++;
}
else
{
three++;
z[k]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20701/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20701/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
#define M 500000
#define NIL -1
typedef struct node_tbl
{
int key,p,l,r;
} node;
node T[M+1];
int root=NIL;
int size=0;
void insert(int k){
int y=NIL;
int x=root;
int z=size++;
T[z].key=k;
T[z].l=NIL;
T[z].r=NIL;
while (x!=NIL)
{
y=x;
if (T[z].key<T[x].key) x=T... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207053/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207053/source.c"
target datalayout = "e-m:e-p270: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>
#define nil NULL
struct node{
struct node *right;
struct node *left;
struct node *p;
int key;
};
typedef struct node * Node;
Node root;
Node treeMinimum(Node);
Node treeMaximum(Node);
Node treeSearch(Node, int);
Node treeSuccessor(Node);
void treeDelete(Node);
void tra... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207097/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207097/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node = type { ptr, ... |
#include <stdio.h>
int main()
{
int n, k, l, c, d, p, nl, np;
scanf("%d%d%d%d%d%d%d%d", &n, &k, &l, &c, &d, &p, &nl, &np);
int ans = 0, x = k * l, y = c * d, z = p, dx = n * nl, dy = n, dz = n * np;
while (x >= dx && y >= dy && z >= dz)
x -= dx, y -=dy, z -= dz, ++ans;
printf("%d\n", ans);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20714/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20714/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
#include<stdlib.h>
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
#define NIL NULL
Node root;
Node treeMinimum(Node x){
while(x->left !=NIL) x=x->left;
return x;
}
Node treeMaximum(Node x){
while(x->right != NIL) x=x->right;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207183/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207183/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node = type { ptr, ... |
#include<stdio.h>
#include<stdlib.h>
#define NIL NULL
struct node{
struct node *parent;
struct node *right;
struct node *left;
int key;
};
typedef struct node * Node;
Node root;
Node Minimum(Node x);
Node Search(Node u, int k);
Node Successor(Node x);
void Delete(Node z);
void insert(int k);
void inorder(Nod... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207226/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207226/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.node = type { ptr, ... |
#include <stdio.h>
#include <string.h>
int main(void) {
char s[100];
char t[100];
int leng1;
int leng2;
int judge = 1;
scanf("%s", s);
scanf("%s", t);
leng1 = strlen(s);
leng2 = strlen(t);
for(int i = 0; i < leng1; i++) {
if(s[i] != t[i]) {
judge = 0;
}
}
if(judge == 1 && leng2 - ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207277/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207277/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 mini(int a,int b)
{
if(a < b)
return a;
else
return b;
}
int main()
{
int n,k,l,c,d,p,nl,np,ans,min,m1,m2,m3;
scanf("%d%d%d%d%d%d%d%d",&n,&k,&l,&c,&d,&p,&nl,&np);
m1 = (k*l)/nl;
m2 = (c*d);
m3 = p/np;
printf("%d\n",mini(m1,mini(m2,m3))/n);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20732/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20732/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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(void){
// Your code here
int k,cnt=0,t;
char a[20],s[20];
scanf("%s%s",a,s);
k=strlen(s);
t=strlen(a);
for(int i=0;i<k;i++){
if(a[i]==s[i])cnt++;
}
if(cnt!=t)printf("No\n");
else if(t+1==k)printf("Yes\n");
return 0;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207370/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207370/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
int main(void){
char a[11];
char b[11];
int len;
scanf("%s",a);
scanf("%s",b);
len = strlen(a);
b[len]='\0';
if(strcmp(a,b)==0)
printf("Yes");
else
printf("No");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207413/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207413/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
int main(){
char s[11];
char t[11];
int flag = 0;
scanf("%s",s);
scanf("%s",t);
for(int i = 0; i < strlen(s); i++){
if(s[i] != t[i]){
flag = 1;
break;
}
}
if(flag == 0) printf("Yes\n");
else ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207457/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207457/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, m;
scanf("%d%d", &n, &m);
char s[100][101];
int i, j;
for (i = 0; i < n; i++)
scanf("%s", s[i]);
int mm[100];
for (i = 0; i < m; i++) {
mm[i] = '0';
for (j = 0; j < n; j++) {
if (mm[i] == '0' || s[j][i] > mm[i])
mm[i] = s[j][i];
}
}
int c = 0;
for (i =... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20750/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20750/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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.