Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include<stdio.h>
int main()
{
char a,b,t;
scanf("%c%c%c",&a,&t,&b);
if(a==b)
printf("H\n");
else
printf("D\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_260676/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_260676/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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)
{
char a, b;
scanf("%c %c", &a, &b);
if(a == 'H' && b == 'H'){
printf("H\n");
} else if(a == 'H' && b =='D'){
printf("D\n");
} else if(a == 'D' && b =='H'){
printf("D\n");
} else if(a == 'D' && b =='D'){
printf("H\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_260719/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_260719/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a, b;
scanf("%c %c", &a, &b);
if(a == 'H'){
printf("%c", b);
}else{
if(b == 'H'){
printf("%c", a);
}else{
a = 'H';
printf("%c", a);
}
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_260777/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_260777/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 che[1000010];
void mergesort(int arr[],int t)
{
if(t<=1)
return;
mergesort(arr,t/2);
mergesort(&arr[t/2],t-t/2);
int i=0,j=t/2,k=0;
while(i<t)
{
if(j==t)
{
che[i]=arr[k];
k++;
}
else if(k==t/2 || arr[k]>arr[j])
{
che[i]=arr[j];
j++;
}
else
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_26082/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_26082/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@che = dso_local local_unname... |
#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; // 大きい順
}
int compare_int_small(const void *a, const void *b){
retur... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_260863/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_260863/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<math.h>
#include<string.h>
#include<stdlib.h>
int ctoi(const char c){
if('0' <= c && c <= '9') return (c-'0');
return -1;
}
int main(){
char str[100];
scanf("%s",str);
int n = strlen(str);
int i,j,k,min = 10000000;
for(i=0;i<n-2;i++){
k = ctoi(str[i])*100 + ctoi(str[... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_260928/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_260928/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
long i,c,M,N,k=0,l;
int a[20];
scanf("%ld",&N);
while(N>0){
a[k]=N%10;
N/=10;
k++;
}
M=753-(a[k-1]*100+a[k-2]*10+a[k-3]);
if(M<0)M=-M;
for(int j=k-2;j>=2;j--){
c=753-(a[j]*100+a[j-1]*10+a[j-2]);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_260986/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_260986/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int i,j;
int max = 1;
int cnt = 1;
int *a;
scanf("%d",&n);
a = (int *)malloc(sizeof(int)*n);
for (i=0;i<n;i++)
scanf("%d",a+i);
for (j=n-1;j>0;j--)
{
if (a[j]<=(a[j-1]*2))
cnt++;
else
{
if (cnt>max) max = cnt;
cnt = 1;
}
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_26105/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_26105/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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()
{
unsigned long long n,m;
unsigned long long ans;
scanf("%llu%llu",&n,&m);
if(n==1)
{
if(m==1) ans=1;
else ans=m-2;
}
else
{
if(m==1)
{
if(n==1) ans=1;
else ans=n-2;
}
else
ans=(m-2)*(n-2);
}
printf("%llu\n",ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_261121/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_261121/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[3],a1=0,a2=0,i,j;
for(j=0;j<3;j++){
a1=0;a2=0;
for(i=0;i<3;i++){
scanf("%d",&a[i]);
if(i==0)a1+=a[i]*3600;
else if(i==1)a1+=a[i]*60;
else if(i==2)a1+=a[i];
}
for(i=0;i<3;i++){
scanf("%d",&a[i]);
if(i==0)a2+=a[i]*3600;
else if(i==1)a2+=a[i]*6... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_261165/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_261165/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,h1,h2,h3,m1,m2,m3,s1,s2,s3;
for(i=1;i<=3;i++) {
scanf("%d %d %d %d %d %d",&h1,&m1,&s1,&h2,&m2,&s2);
s3=s2-s1;
m3=m2-m1;
h3=h2-h1;
if(s3<0) {
m3--;
s3+=60;
}
if(m3<0) {
h3--;
m3+=60;
}
printf("%d %d %d\n",h3,m3,s3);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_261237/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_261237/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> // uint64_t
#define BUF_SIZE 30
// size: specify sizeof(str)
int get_str(char *str, int size) {
if(!fgets(str, size, stdin)) return -1;
return 0;
}
int get_int(void) {
int num;
#ifdef BUF_SIZE
char line[BUF_SIZE];
if(!fgets(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_261280/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_261280/source.c"
target datalayout = "e-m:e-p270: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.ufind = type { i32,... |
#include<stdio.h>
int main()
{
int n;
scanf("%d", &n);
int i;
int a[200005];
for (i = 0; i < n; i++)
scanf("%d", &a[i]);
long long int cnt[200005];
for (i = 0; i <= n; i++)
cnt[i] = 0;
long long int ans = 0;
for (i = 0; i < n; i++)
{
if (i - a[i] >= 0 && i - a[i] <= n)
ans += cnt[i - a[i]];
if (a[i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_261345/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_261345/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, l, r, ans = 0;
scanf("%d", &n);
for (int i = 0; i < n; i++) {
scanf("%d%d", &l, &r);
ans += r - l + 1;
}
printf("%d\n", ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_261389/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_261389/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, total = 0, a[100005], b[100005];
scanf("%d", &n);
for(int i = 0; i < n; ++i)
scanf("%d %d", &a[i], &b[i]);
for(int j = 0; j < n; ++j){
total = total + (b[j] - a[j]) + 1;
}
printf("%d\n", total);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_261431/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_261431/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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=0;
int a, b, ans, x;
scanf("%d", &n);
for(i=0;i<n;i++){
scanf("%d %d", &a, &b);
x=b-a+1;
ans+=x;
x=0;
}
printf("%d", ans);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_261482/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_261482/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,sum;
sum = 0;
scanf("%d", &a);
while(a > 0){
scanf("%d%d", &b, &c);
sum = sum + c - b + 1;
a--;
}
printf("%d", sum);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_261532/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_261532/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,sum=0;
scanf(" %d", &n);
for (int i = 0; i < n; i++) {
int x, y;
scanf(" %d %d", &x, &y);
sum += (y - x + 1);
}
printf("%d ", sum);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_261583/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_261583/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 i;
char ch, ch_i[3], ch_o[3];
scanf("%s", ch_i);
ch_o[0] = ch_i[0];;
scanf("%s", ch_i);
ch_o[1] = ch_i[1];
scanf("%s", ch_i);
ch_o[2] = ch_i[2];
for(i=0; i<3; i++)
printf("%c", ch_o[i]);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_261626/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_261626/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 long int cmpfunc (const void * a, const void * b)
{
return ( *(long long int*)a - *(long long int*)b );
}
int main()
{
long long int b[3],l,i,j,temp;
scanf("%lld %lld %lld",&b[0],&b[1],&b[2]);
for(i=0;i<3;i++)
{
for(j=i;j<3;j++)
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_26167/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_26167/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 i;
char str[4];
for(i = 0; i < 3; i++) {
scanf("%s", str);
printf("%c", str[i]);
}
printf("\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_261712/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_261712/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a[4],b[4],c[4];
scanf("%s%s%s",a,b,c);
printf("%c%c%c",a[0],b[1],c[2]);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_261756/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_261756/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a[4][4];
int i;
for(i=0;i<3;i++)
{
scanf("%s",a[i]);
}
printf("%c",a[0][0]);
printf("%c",a[1][1]);
printf("%c",a[2][2]);
printf("\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_261806/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_261806/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
long long b, d, s, tot, max;
scanf("%I64d %I64d %I64d", &b, &d, &s);
max = (b>d) ? ((b>s) ? b : s) : ((d>s) ? d : s);
if(max==b) b--;
if(max==d) d--;
if(max==s) s--;
tot = 3 * (max-1) - (b + d + s);
printf("%I64d\n", tot);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_26185/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_26185/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 k, r, flag=1;
scanf("%d", &k);
scanf("%d", &r);
k = k%10;
int i;
for(i=1; i<=9; i++){
if((k*i)%10 == r || (k*i)%10 == 0){
printf("%d", i);
flag = 0;
break;
}
}
if(flag)
printf("10");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_26190/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_26190/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define mem(x,y) (x*)malloc(sizeof(x)*(y));
int find(int a,int b,int** list,int n)
{
int* cost = mem(int,n);
int* flg = mem(int,n);
int i,j,k;
for(i = 0;i < n;i++)
{
cost[i] = 100000000;
flg[i] = 1;
}
cost[a-1] = 0;
for(i = 1;i < n;i++)
{
for(j... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_261958/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_261958/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 MAX(a,b) (a > b ? a : b)
#define MIN(a,b) (a < b ? a : b)
const int inf = 1000000000; // 10^9
int Amax(int *p,int size){
int _max = 0;
for(int i = 0;i < size;i++)
if(p[i] > _max)_max = p[i];
return _max;
}
int main(){
int n,m;
cha... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_262007/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_262007/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@inf = dso_local local_unna... |
#include<stdio.h>
#include<string.h>
char list[200][11], p = 0;
int check(char *s){
int i;
for (i = 0; i < p; i++){
if(strcmp(list[i], s) == 0){
return i;
}
}
strcpy(list[i], s);
p++;
return i;
}
int main(){
int N, M, count[201] = {0}, max = -100, q;
char s[11];
scanf("%d", &N);
f... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_262050/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_262050/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@p = dso_local local_unname... |
#include<stdio.h>
#include<string.h>
int main()
{
int m,n,i,j,k,s,max=0;
char a[110][20],b[110][20];
scanf("%d",&m);
for(i=0;i<m;i++)
{
scanf("%s",a[i]);
}
scanf("%d",&n);
for(j=0;j<n;j++)
{
scanf("%s",b[j]);
}
for(i=0;i<m;i++)
{ s=0;
for(k=0;k<m;k++)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_262094/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_262094/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
double min(double x,double y){
if(x<y) return x;
else return y;
}
int main(){
int n,t[100],sum[100],i,j;
double dis=0,vl[40002],vv[40002],v[100];
scanf("%d",&n);
scanf("%d",&t[0]);
sum[0]=t[0];
for(i=1;i<n;i++){
scanf("%d",&t[i]);
sum[i]=sum[i-1]+t[i];
}
int max=sum[n-1];... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_262137/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_262137/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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 NDEBUG
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <assert.h>
// for DEBUG {{{
#ifdef NDEBUG
#define DEBUG_PRINT(fmt, ...) ((void)0)
#else
#define DEBUG_PRINT(fmt, ...) fprintf(stderr, fmt, ##__VA_ARGS__)
#endif
#define ASSERT_RANGE(min,x,max) assert(((x)>=(min)) && (... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_262180/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_262180/source.c"
target datalayout = "e-m:e-p270: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>
#include<math.h>
int main(){
double r;
scanf("%lf",&r);
printf("%f %f\n",r*r*M_PI,2*r*M_PI);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_262230/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_262230/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 pi 3.141592653589
int main()
{
double r;
scanf("%lf", &r);
printf("%.6lf %.6lf\n", r*r*pi, 2*r*pi);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_262274/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_262274/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 r, s, l;
double pai=3.141592653589;
scanf("%lf", &r);
s=pai*r*r;
l=pai*2*r;
printf("%f %f\n", s, l);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_262324/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_262324/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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)
{double r,a,b;
scanf("%lf",&r);
a=3.141592653589*r*r;
b=3.141592653589*2*r;
printf("%f %f\n",a,b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_262368/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_262368/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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){
double r,s,l;
scanf("%lf",&r);
s = r*r*3.141592653589;
l = 2*r *3.141592653589;
printf("%.6lf %.6lf\n",s,l);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_262418/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_262418/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 r;
scanf("%lf",&r);
printf("%0.6f %0.6f\n",r*r*M_PI,2*r*M_PI);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_262461/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_262461/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 radius;
scanf("%lf\n", &radius);
printf("%f %f\n", radius*radius*M_PI, 2*radius*M_PI);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_262504/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_262504/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 r=0,Ensyu=0,Menseki=0;
scanf("%lf",&r);
Menseki=r*r*3.141592653589;
Ensyu=r*2*3.141592653589;
printf("%f %f\n",Menseki,Ensyu);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_262548/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_262548/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<math.h>
int main(){
double r,x,y;
scanf("%lf",&r);
x = (double)r*2*M_PI;
y = (double)r*(double)r*M_PI;
printf("%f %f\n",y,x);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_262591/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_262591/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <math.h>
int main()
{
double r,a,b;
scanf("%lf",&r);
a = 2 * r * M_PI;
b = r * r * M_PI;
printf("%f %f",b,a);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_262634/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_262634/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <math.h>
int main()
{
double r;
scanf("%lf", &r);
printf("%lf %lf\n", M_PI * pow(r, 2), 2 * M_PI * r);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_262685/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_262685/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#define _CRT_SECURE_NO_WARNINGS
#define _USE_MATH_DEFINES
#include<stdio.h>
#include<math.h>
int main() {
double r;
scanf("%lf", &r);
printf("%lf %lf\n",r*r*M_PI,2*r*M_PI);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_262728/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_262728/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 r;
scanf("%lf", &r);
printf("%f %f", r*r*3.141592653589, 2*r*3.141592653589);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_262779/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_262779/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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)
{
double r,s,n;
scanf("%lf",&r);
s = r *r*3.141592653589;
n = 2*r*3.141592653589;
printf("%lf %lf",s,n);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_262829/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_262829/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 PI 3.14159265359
int main(){
double r;
scanf( "%lf", &r );
printf( "%lf %lf\n", PI*r*r, 2*PI*r );
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_262872/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_262872/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 PI 3.14159265358979
int main(){
double x;
scanf("%lf",&x);
printf("%f %f\n", x*PI*x, 2*x*PI);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_262915/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_262915/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 r,p,a,c;
p=3.141592653589;
scanf("%lf",&r);
a=r*r*p;
c=2*r*p;
printf("%f %f\n",a,c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_262959/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_262959/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 r, pi =3.141592653589, l,s;
scanf("%lf",&r);
l = 2*pi*r;
s = pi*r*r;
printf("%f %f\n",s,l);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263008/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263008/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 r;
scanf("%lf", &r);
printf("%.6f %.6f\n", (r * r * M_PI), (2 * r * M_PI));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263051/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263051/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 r,pai=3.14159265359;
scanf("%lf",&r);
printf("%f %f",pai*r*r,2*pai*r);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263095/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263095/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <math.h>
int main() {
double r;
double circ, area;
scanf("%lf", &r);
area = r * r * M_PI;
circ = 2 * r * M_PI;
printf("%f %f\n", area, circ);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263145/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263145/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 r,S,l;
scanf("%lf",&r);
S=r*r*M_PI;
l=r*2*M_PI;
printf("%.5f %.5f\n",S,l);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263196/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263196/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include<math.h>
int main()
{
double r ; double a , c ;
scanf("%lf",&r) ;
if(r > 0 && r < 10000) {
a = (M_PI)*r*r ;
c = 2*(M_PI)*r ;
printf("%lf %lf\n",a,c) ;
}
return 0 ;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263246/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263246/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 k,r,m=1;
scanf("%d%d",&k,&r);
while(1){
int price = k*m;
if(price % 10 == 0 || price % 10 == r)
break;
m++;
}
printf("%d",m);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_26329/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_26329/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 PI 3.141592653589793
int main(void){
double r,are,circ;
scanf("%lf",&r);
are=r*r*PI;
circ=2*r*PI;
printf("%f %f\n",are,circ);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263332/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263332/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 r;
scanf("%lf",&r);
double s,l,pi;
pi = 4 * atan(1.0);
s = r*r*pi;
l = 2*pi*r;
printf("%lf %lf\n",s,l);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263383/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263383/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 r, pi = 3.141592653589;
scanf("%lf", &r);
printf("%f %f\n", pi * r * r, 2 * r * pi);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263426/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263426/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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<ctype.h>
#include<string.h>
int main()
{
int k,i,a[600],n,diff;
int count=0;
scanf("%d%d",&n,&k);
for (i=0;i<n;i++)
scanf("%d",&a[i]);
for (i=0;i<n-1;i++)
{
if (a[i]+a[i+1]>=k)
continue;
else
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_26347/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_26347/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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){
double pi=3.14159265358979;
double r;
scanf("%lf",&r);
printf("%lf %lf\n",pi*r*r,2*pi*r);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263512/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263512/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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){
// Your code here!
double r,v,l;
double pai=3.141592653589793;
scanf("%lf",&r);
v=pai*r*r;
l=2*pai*r;
printf("%.6lf %.6lf\n",v,l);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263556/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263556/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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=0,y=0,n;
scanf("%d",&n);
while(n>1)
{
x=n%2;
if(x==1)
y++;
n=n/2;
}
if(n==1)
y++;
printf("%d\n",y);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_2636/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_2636/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr co... |
#include<stdio.h>
int main()
{
double a,b,c;
scanf("%lf",&a);
b=a*2*3.14159265359;
c=a*a*3.14159265359;
printf("%f %f\n",c,b);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263642/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263642/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 PI 3.141592653589
int main(void){
double r;
scanf("%lf", &r);
printf("%lf %lf\n", PI*r*r, 2*PI*r);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263686/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263686/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a, b, c;
scanf("%lf", &a);
b = M_PI*a*a;
c = M_PI*2*a;
printf("%f %f\n", b, c);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263729/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263729/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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)
{
double r;
scanf("%lf", &r);
printf("%lf %lf", 3.141592653589793238 * r * r, 2 * 3.141592653589793238 * r);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263772/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263772/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<math.h>
#include<stdio.h>
int main(void){
double a,b,c;
scanf("%lf",&a);
b=M_PI*a*a;
c=2*M_PI*a;
printf("%.8f %.8f\n",b,c);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263815/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263815/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 argc, const char * argv[]){
double r;
scanf("%lf", &r);
printf("%lf %lf\n", r * r * M_PI, r * 2 * M_PI);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263901/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263901/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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)
{
double r,x,y,PI;
PI = 3.141592653589;
scanf("%lf",&r);
x=PI*r*r;
y=2*PI*r;
printf("%f %f\n",x,y);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263945/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263945/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[3][11];
scanf("%s %s %s", s[0], s[1], s[2]);
printf("%c%c%c\n", s[0][0] - 'a' + 'A', s[1][0] - 'a' + 'A', s[2][0] - 'a' + 'A');
fflush(stdout);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263996/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263996/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(){
int t;
scanf("%d", &t);
int n;
int res[t];
for(int i=0; i<t; i++){
scanf("%d", &n);
int arr[n];
for(int j=0; j<n; j++)
scanf("%d", &arr[j]);
int test[n];
test[0] = 1;
int x=0;
for(int j=0; j<n-1; j++){
if(test[j] == 0)
c... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_26406/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_26406/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 <ctype.h>
int main(void){
char a[10],b[10],c[10];
scanf("%s %s %s",a,b,c);
printf("%c%c%c",toupper(a[0]),toupper(b[0]),toupper(c[0]));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264117/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264117/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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) {
char a[10], b[10], c[10];
scanf("%s %s %s", &a, &b, &c);
a[0] -= 32;
b[0] -= 32;
c[0] -= 32;
printf("%c%c%c", a[0], b[0], c[0]);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264168/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264168/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[3][80];
char s_out[3];
scanf("%s %s %s",s[0],s[1],s[2]);
for(int i = 0;i < 3;i++){
s_out[i] = s[i][0] + ('A' - 'a');
}
for(int i = 0;i < 3;i++){
printf("%c",s_out[i]);
}
printf("\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264210/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264210/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
long long int a,b,n;
scanf("%lld %lld %lld",&a,&b,&n);
printf("%lld",((n<b)?(a*n/b):(a*(b-1)/b)));
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264254/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264254/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
long long int A,B,N;
scanf("%lld %lld %lld", &A, &B, &N);
if(N >= B )
N = B-1;
long long int ans = A *(N%B) /B;
printf("%lld\n", ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264298/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264298/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main() {
long long int a, b, n;
scanf("%lld", &a);
scanf("%lld", &b);
scanf("%lld", &n);
long long int x = b - 1;
long long int t = 2;
long long int maxnum = -1;
long long int tmp = 0;
if (x < n){
tmp = a * x / b - x / b * a;
if (maxnum < tmp){
maxnum = tmp;
}
}
x = n;
tmp = a * x / b... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264340/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264340/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 min(a,b) ((a)<(b)?(a):(b))
int main(void){
long long a,b,n;
scanf("%lld%lld%lld",&a,&b,&n);
printf("%lld",a*min(b-1,n)/b);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264384/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264384/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <time.h>
#include <string.h>
char s[100];
char orgS[100];
int shim(char x){
int ans = 101;
int L = strlen(s);
int check=0;
for (int i=1;i<strlen(s);i++){
if (s[0] !=s[i]){
check = 1;
break;
}
}if (check == 0)return 0;
fo... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264449/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264449/source.c"
target datalayout = "e-m:e-p270: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 [100 ... |
#include<stdio.h>
#include<math.h>
int main(){
unsigned int x,sum=0;
scanf("%u",&x);
while(x){
sum+=x%2;
x=x/2;
}
printf("%d",sum);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_2645/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_2645/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr co... |
#include<stdio.h>
int main()
{
int test, i;
long long n;
scanf("%d", &test);
for(i=1;i<=test; i++)
{
scanf("%lld", &n);
printf("%lld\n", n);
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_26455/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_26455/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define BUF_SIZE 1500000
int comp(const void* a, const void* b) {
return *(int*)a - *(int*)b;
}
int main(void) {
FILE *fp = stdin;
char line[BUF_SIZE];
if(!fgets(line, BUF_SIZE, fp)) return 0;
int num, limits, time;
sscanf(line, "%d %d %d", &num... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264593/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264593/source.c"
target datalayout = "e-m:e-p270: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... |
#if 0
cat <<EOF >mistaken-paste
#endif
// thanks for @rsk0315_h4x
#pragma GCC diagnostic ignored "-Wincompatible-pointer-types"
#define _USE_MATH_DEFINES
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <math.h>
#include <time.h>
#define BIG 2000000007
#def... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264636/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264636/source.c"
target datalayout = "e-m:e-p270: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.hwll = type { i64, ... |
#include <stdio.h>
#include <stdlib.h>
int main()
{ int t;
scanf("%d",&t);
int i;
for(i=0;i<t;i++)
{
int n;
scanf("%d",&n);
printf("%d\n",n);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_26468/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_26468/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
int main(void)
{
int i,j,c;
int *a;
int n,p;
while(1)
{
scanf("%d",&n);
scanf("%d",&p);
if(n == 0 && p == 0){break;}
a = (int *)malloc(sizeof(int)*n);
if(a == NULL){
printf("memory allocation fault.");
exit(0);
}
for(i=0;i<n;i++){... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264722/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264722/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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
#include <math.h>
#define max(a,b) ((a) > (b) ? (a) : (b))
#define min(a,b) ((a) > (b) ? (b) : (a))
int get_int(void) {
int num;
scanf("%d", &num);
return num;
}
int get_int2(int64_t *a1, int64_t *a2) {
scanf("%lld %lld... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264773/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264773/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
char ss[25000][6];
int compare(const void *arg1, const void *arg2){
return(strcmp(ss[*(int*)arg1], ss[*(int*)arg2]));
}
int main(){
char s[5001];
int k,g=0,i,j,c=0,l;
scanf("%s%d",s,&k);
while(s[g]!=0)g++;
int num[25000];
for(i=0;i<25000;i++)num[i]=i;
f... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264830/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264830/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ss = dso_local global [250... |
#include <stdio.h>
int main(){
int a,b;
scanf("%d%d", &a, &b);
if(a==2 || b==2){ printf("No\n"); }
else { printf("Yes\n"); }
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264881/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264881/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
//a.c A-ABC333
#include<stdio.h>
int main(void){
int a,b;
scanf("%d %d",&a,&b);
if((a*b)%2==0){
printf("No\n");
}else{
printf("Yes\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264924/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264924/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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",&a,&b);
c=a*b*a;
if(c%2==0){
printf("No\n");
}
else{
printf("Yes\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264968/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264968/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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()
{
long long int t;
scanf("%lld",&t);
while(t!=0){
long long int i,j,k,l,n;
scanf("%lld",&n);
printf("%lld\n",n);
t--;
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_26501/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_26501/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main(void){
int A,B;
scanf("%d %d",&A, &B);
if(A%2 == 0 || B%2 == 0){
printf("No\n");
}else{
printf("Yes\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265060/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265060/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int A,B;
scanf("%d%d",&A,&B);
if(A*B % 2) puts("Yes");
else puts("No");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265103/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265103/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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){
// Your code here!
int a,b;
scanf("%d",&a);
scanf("%d",&b);
if(a*b%2==1)
printf("Yes");
else
printf("No");
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265147/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265147/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int a,b;
scanf("%d %d",&a,&b );
if(a==2 || b==2)
printf("No");
else
printf("Yes" );
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265190/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265190/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int a,b;
scanf("%d%d",&a,&b);
if(a%2==0||b%2==0)puts("No");
else puts("Yes");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265233/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265233/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 after_tax(int value, int tax) {
return value * (100 + tax) / 100;
}
int main(int argc, char *argv[])
{
int tax_1, tax_2, a, b, sum;
int d = 0;
while(!feof(stdin)) {
fscanf(stdin, "%d", &d);
tax_1 = d;
fscanf(stdin, "%d", &d);
t... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265277/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265277/source.c"
target datalayout = "e-m:e-p270: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>
long long int t, n[10000];
int main()
{
scanf("%d",&t);
int i;
for (i = 0; i < t; i++)
{
scanf("%d", &n[i]);
}
for (i = 0; i < t; i++)
{
printf("%d\n", n[i]);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_26532/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_26532/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 <ctype.h>
int main(void) {
int case_num,now_case;
char cards[10][2];
int i;
int score,aces;
scanf("%d",&case_num);
for(now_case=0;now_case<case_num;now_case++) {
for(i=0;i<10;i++)scanf("%s",cards[i]);
score=aces=0;
for(i=0;i<2;i++) {
if(isdigit(cards[i][0])) {
score+=card... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265363/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265363/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 M 50
int X[M];long long Z[M+1][M*M+1];
int main(){
int N,A,S=0,i,j,k;
long long R=0;
scanf("%d%d",&N,&A);
for(i=0;i<N;i++)scanf("%d",X+i);
Z[0][0]=1;
for(i=0;i<N;i++){
S+=X[i];
for(k=i;k>=0;k--)for(j=S;j>=X[i];j--)Z[k+1][j]+=Z[k][j-X[i]];
}
for(i=1;i<=N;i++)R+=Z[i][i*A];
printf("... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265406/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265406/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.