Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include<stdio.h>
int main(){
int train[10];
int x,top,i;
while(scanf("%d",&x)!=EOF){
if(x==0){
printf("%d\n",top);
train[top-1]=0;
for(i=0;i<10;i++){
train[i]-=(train[i]!=0);
if(train[i]==1) top=i+1;
}
}else{
top=x;
for(i=0;i<10;i++){
train[i]+=train[i]!=0;
}
train[x-1]=1;
}
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_258496/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_258496/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
// Aizu Vol0 0084: Search Engine
// 2017.7.30
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#define MAX 1100
char *gets(char *);
char buf[MAX + 5];
int main()
{
int len, f;
char *p, *w;
gets(p = buf); f = 1;
while (*p) {
while (*p && (isspace(*p) || *p == '.' || *p == ',')) p++;
if (*p == 0) br... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_258560/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_258560/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@buf = dso_local global [11... |
// AOJ ALDS1_15_A Change Making
// 2019.3.8 bal4u
#include <stdio.h>
#include <stdlib.h>
int main()
{
int n, ans;
scanf("%d", &n);
ans = n / 25, n %= 25;
ans += n / 10, n %= 10;
ans += n / 5, n %= 5;
ans += n;
printf("%d\n", ans);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_258618/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_258618/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 k;
scanf("%d",&k);
for(int i=0;i<k;i++){
printf("ACL");
}
//printf("%s",vet);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_258661/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_258661/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d",&K);
char s[3*K + 1];
for(int i = 1; i <= K; i++){
s[3*i - 3] = 'A';
s[3*i - 2] = 'C';
s[3*i - 1] = 'L';
}
s[3*K] = '\0';
printf("%s\n",s);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_258704/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_258704/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 K,i;
scanf("%d", &K);
for (i = 0; i < K; i++) printf("ACL");
printf("\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_258748/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_258748/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
if(n==0)
{
printf("0\n");
return 0;
}
else if(m==0)
{
if(n%2==0)
printf("%d",n/2);
else
printf("%d",(n/2)+1);
return 0;
}
else if(n<m)
{
print... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25882/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25882/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <math.h>
/** Application main entry point. */
int main (
int argc,
char * argv[ ]
)
{
int n;
scanf ( "%d", &n );
while ( n-- )
{
double dh, dm, res;
int h, m;
scanf ( "%d:%d", &h, &m );
dh = h * 30.; dm = m * 6.;
dh += dm / 12.;
res = fmod ( dh ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_258863/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_258863/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 int member[4000];
int i;
int ans[4000];
int ans_num;
int n;
int tmp_e,tmp_p,tmp_q;
while(1){
ans_num=0;
for(i=0;i<4000;i++){
member[i]=0;
ans[i]=-1;
}
scanf("%d",&n);
if(n==0)return 0;
for(i=0;i<n;i++){
scanf("%d%d%d",&... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_258906/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_258906/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#define N 4001
#define Total 1000000
int judge(int id,int j,int set_of_person[]){
int i;
for (i=0;i<j;i++)
if (set_of_person[i]==id)
return 1;
return -1;
}
void initialize(double person[],int set_of_person[]){
int i;
for (i=0;i<N;i++){
person[i]=0.0;
set_of_person[i]=0;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_258957/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_258957/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,X;
int i, num, j;
scanf("%d", &X);
num=0;
while (X > 0)
{
num = num + X%2;
X=X/2;
}
printf("%d\n", num);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_2590/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_2590/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 <string.h>
#include <math.h>
#include <stdlib.h>
int main(){
int i,n,m,a=0,c,flag=0;
scanf("%d %d",&n,&m);
int s=n/2;
if(n==1 && m==1){
printf("1\n");
return 0;
}
if(m==1){
printf("%d\n",n%2 +(n-2*(n%2)));
return 0;
}
for(i=s;i>=0;i--){
a=i*2;
c=n-a;
if((i+c)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25905/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25905/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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"
#include "math.h"
int i;
int main() {
printf("2000\n");
for (i = 1; i <= 1000; i++) {
printf("%d 1 %d 2\n", i, i);
}
for (i = 1000; i >= 1; i--) {
printf("%d 1 %d 2\n", i, i);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_25910/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_25910/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@i = dso_local local_unnamed_... |
#include <stdio.h>
int f(int x){
return x*x;
}
int area(int d)
{
int i = 0, a, b, c = 0;
a = 600/d;
for(i = 0; i < a; i++) {
b = d*f(i*d);
c = c + b;
}
return c;
}
int main(void)
{
int d;
while(scanf("%d",&d)!=EOF){
printf("%d\n",area(d));
}
return(0);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_259150/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_259150/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<math.h>
int main(void)
{
int d;
int i;
int S ;
while(scanf("%d",&d) != EOF)
{
S = 0;
for(i = 1; i < 600/d; i++)
{
S += d * pow(i * d,2);
}
printf("%d\n",S);
}
return (0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_259222/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_259222/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 squ(int d){
int i,S=0;
for(i=1; i*d<600;i++)
S +=d*(i*d)*(i*d);
return (S);
}
int main(void){
int d,S;
while(scanf("%d", &d) != EOF){
S=squ(d);
printf("%d\n", S);
};
return (0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_259273/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_259273/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 d;
int n, sum;
int i;
while (scanf("%d", &d) != EOF) {
n = 600 / d;
sum = 0;
for (i = 1; i < n; i++) {
sum += ((d * i)*(d * i) * d);
}
printf("%d\n", sum);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_259316/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_259316/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 d,s=0,i;
while(scanf("%d\n",&d)!=EOF){
for(i=1;i*d<=600-d;i++){
s=s+i*d*i*d*d;
}
printf("%d\n",s);
s=0;
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_259374/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_259374/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <ctype.h>
#include <math.h>
#define MAX(X, Y) (((X) > (Y))? (X) : (Y))
#define MIN(X, Y) (((X) < (Y))? (X) : (Y))
#define MOD 1000000007
// 大きな数の組み合わせを1000000007で割った余りを計算する方法
// https://www.smartbowwow.com/2018/10/mod1097.html
typedef long long ll;
/... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_259417/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_259417/source.c"
target datalayout = "e-m:e-p270: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.pp = type { i8, i32... |
#include<stdio.h>
int main(){
int a,b,c;
scanf("%d%d",&a,&b);
printf("%d",(c=b-a)*(c+1)/2-b);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_259460/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_259460/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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_3
potter0723sw */
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
int add (int factorial);
int dif (int minuend,int subtrahend);
int main(void) {
int diff, heighta, heightb, ans, addition;
scanf("%d %d", &heighta, &heightb);
diff = dif(heightb,heighta);//塔の差を計算
addition = add(di... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_259503/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_259503/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/*Kadai4_3
saitomo*/
#include<stdio.h>
int snow(int height_A,int height_B);
//プロトタイプ宣言
int main (void){
int exs_tower_A,exs_tower_B;
//晒されたタワーの高さを定義
scanf("%d%d",&exs_tower_A,&exs_tower_B);
printf("%d\n", snow(exs_tower_A,exs_tower_B));
//関数を使い答えを出す
return 0;
}
//関数を定義
int snow(int exs_t... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_259554/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_259554/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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_3
urah */
#include <stdio.h>
// プロトタイプ宣言
int snow_amount(int west, int east);
int main(void){
int west, east, ans;
// 入力受け取り
scanf("%d\t%d", &west, &east);
// 関数の呼び出し
ans = snow_amount(west, east);
// 出力
printf("%d\n", ans);
return 0;
}
//関数の定義
int snow_amount(int west, ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_259598/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_259598/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,x,a_high=0;
scanf("%d %d",&a,&b);
x = b - a;
for(int i=1;i<x;i++){
a_high += i;
}
printf("%d\n",a_high-a);
return(0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_259640/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_259640/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,h;
h=0;
scanf("%d %d",&a,&b);
for(int i=b-a; i>0; i--){
h+=i;
}
printf("%d",h-b);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_259684/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_259684/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
int p = b - a;
printf("%d\n",p*(1+p)/2-b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_259727/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_259727/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, i, num, len;
scanf("%d %d", &a, &b);
num = b - a;
len = 0;
for(i=0; i<num; i++){
len = len + i;
}
len = len - a;
printf("%d\n",len);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_259778/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_259778/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <stdbool.h>
#include <string.h>
#include <math.h>
int main(){
int a,b,x;
int h[1001]={};
scanf("%d %d",&a,&b);
h[0]=0;
for(int i=1;i<1000;i++){
h[i]+=h[i-1]+i;
}
x=h[b-a-1]-a;
printf("%d",x);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_259820/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_259820/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 FOR(i,a,b) for(int i=a;i<b;i++)
#define ll long long
int main(){
ll n,m,x[100000],y[100000];
ll xsum =0ll, ysum = 0ll, sum = 0ll;
scanf("%lld %lld",&n,&m);
FOR(i,0,n) scanf("%lld",&x[i]);
FOR(i,0,m) scanf("%lld",&y[i]);
FOR(i,0,n){
xsum += i*x[i] - (n-1-i)*x[i];
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_259864/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_259864/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
typedef long long ll;
int main(){
ll n, a, b, old, now;
scanf("%lld%lld%lld%lld", &n, &a, &b, &old);
ll ans = 0;
for(int i = 1; i < n; ++i){
scanf("%lld", &now);
ans += (a * (now - old) > b ? b : a * (now - old));
old = now;
}
printf("%lld\n", ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_259929/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_259929/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x;
scanf("%c", &x );{
char b = x+1;
printf("%c", b);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_259972/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_259972/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 c;
scanf("%c",&c);
printf("%c",c+1);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_260028/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_260028/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 c;
scanf("%c", &c);
c += 1;
puts(&c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_260071/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_260071/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 c_inputChar;
scanf("%c", &c_inputChar);
c_inputChar++;
printf("%c", c_inputChar);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_260114/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_260114/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 word;
scanf("%c",&word);
printf("%c",word+1);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_260165/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_260165/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 = 0;
scanf("%c",&a);
printf("%c",a+1);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_260215/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_260215/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[1];
scanf("%s",s);
printf("%c",s[0]+1);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_260259/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_260259/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, t, i;
scanf("%d", &t);
for(i=0;i<t;i++)
{
scanf("%d", &n);
if(n%7!=0)
{
if((n%10)>(n%7))
n=n-(n%7);
else n=n+7-(n%7);
}
printf("%d\n", n);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_26036/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_26036/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 fun(int arr[], int m, int l, int n)
{
int num[m];
int num1[m];
int ncpy = n;
int ans;
for (int i = 0; i < m; ++i)
{
num[i] = ncpy % 10;
ncpy /= 10;
}
int change = 10000;
int ch1 = 0;
for (int i = 0; i < l; ++i)
{
ch1 = 0;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_26041/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_26041/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
#include <math.h>
#define ll long long
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k))
#define INF ((1LL<<62)-(1LL<<31))
#define max(p,q)((p)>(q)?(p):(q))
#define min(p,q)((p)<(q)?(p):(q))
#define bit(n,m)(((n)>>(m))&1)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_260497/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_260497/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 s1, s2;
scanf("%c %c",&s1, &s2);
if(s1 == s2){
printf("H\n");
}else if(s1 != s2){
printf("D\n");
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_260547/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_260547/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 pai 3.1415926535
int main(void) {
char a, b;
scanf("%c %c", &a, &b);
if ((a == 'H'&&b == 'H') || (a == 'D'&&b == 'D')) {
printf("H");
}
else {
printf("D");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_260590/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_260590/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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",&a);
getchar();
scanf("%c",&b);
if(a=='H')
{
if(b=='H')
printf("H");
else
printf("D");
}
else
{
if(b=='D')
printf("H");
else
printf("D");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_260640/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_260640/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
char a,b;
int main(){
scanf("%c %c",&a,&b);
if((a=='H'&&b=='H') || (a=='D'&&b=='D')){
printf("H\n");
}
else{
printf("D\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_260684/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_260684/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,b;
scanf("%c %c",&a,&b);
if(a==b){
printf("H");
}else{
printf("D");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_260734/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_260734/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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')
printf("%c\n", b);
else if(b == 'H')
printf("D\n");
else
printf("H\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_260792/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_260792/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
//b.c B-754
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
long iabs(long x){
if(x<0){
return -x;
}
return x;
}
int main(void){
long x;
scanf("%ld",&x);
long diff = 1000;
while(x/100!=0){
if(diff>iabs(753-(x%1000))){
diff = iabs(753-(x%1000));
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_260842/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_260842/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
int main(void) {
int len, kari, ans = 1000000;
char s[12], s2[4];
if(scanf("%s", s) != 0);
len = strlen(s);
for(int i = 0; i < len - 2; i++) {
for(int j = 0; j < 3; j++) {
s2[j] = s[j + i];
}
kari = atoi(s2);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_260936/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_260936/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/* Teng K. J. */
#include <stdio.h>
#define N 300000
#define LB 0
#define UB 1000000001
typedef struct segment {
int start;
int end;
} segment;
typedef struct node {
struct node *left;
struct node *right;
segment val;
} node;
segment origin[N];
node data[N * 2];
int c = 0, n;
void intersect(segment *result, ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_26100/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_26100/source.c"
target datalayout = "e-m:e-p270: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.segment = type { i32,... |
#include <stdio.h>
#include <string.h>
int absn(int n){
if(n>0){
return n;
}
return -n;
}
void cint(char*S1,int*S,int N){
int i;
for(i=0;i<N;i++){
S[i]=(int)S1[i]-(int)('0');
}
}
int main(){
long long int num;
int i;
scanf("%lld",&num);
int N=0;
long long int temp=num;
while(num>0){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_261050/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_261050/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
long long n , m;
scanf("%lld %lld",&n ,&m);
long long ans = n*m - 2*(n+m-2);
if(n == 1 || m == 1){
if(n != 1 || m != 1){
ans *= -1;
}
}
printf("%lld\n",ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_261100/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_261100/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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],m[2],s[2],t,g,i,j;
for(t=0;t<3;t++){
i=0;j=0;
scanf("%d %d %d %d %d %d",&h[0],&m[0],&s[0],&h[1],&m[1],&s[1]);
g=3600*(h[1]-h[0])+60*(m[1]-m[0])+s[1]-s[0];
while(g>=3600){
g-=3600;
i++;
}
while(g>=60){
g-=60;
j++;
}
printf("%d %d %d\n",i,j,g);
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_261151/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_261151/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 toSec(int h,int m,int s){
return 3600*h+60*m+s;
}
void printTime(int s){
printf("%d ",s/3600);
s %= 3600;
printf("%d ",s/60);
s %= 60;
printf("%d\n",s);
}
int main(void){
int i,j;
int t[2][3];
while(1){
for(i=0;i<2;i++){
for(j=0;j<3;j++){
if(scanf("%d",&t[i][j]) =... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_261195/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_261195/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
int s_h,s_m,s_s,f_h,f_m,f_s,i,h,m,s;
for(i=0;i<3;i++)
{
scanf("%d%d%d%d%d%d",&s_h,&s_m,&s_s,&f_h,&f_m,&f_s);
h=f_h-s_h;
m=f_m-s_m;
if(m<0)
{
h--;
m=60+m;
}
s=f_s-s_s;
if(s<0)
{
m--;
if(m<0){m=59;}
s=60+s;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_261252/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_261252/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
long long int n;
long long int f_sum, s_sum, f_count, s_count;
long long int f_point[200001], s_point[200001];
int main()
{
long long int i, score, last, max;
scanf("%I64d", &n);
for(i=0;i<n;i++)
{
scanf("%I64d", &score);
if(score>0)
{
f_point[f_count] = score;
f_count++;
f_sum+= s... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_26131/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_26131/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
int main()
{
int n;
scanf("%d",&n);
int i = 0;
int cnt = 0;
int r[n],l[n];
while (i < n)
{
scanf("%d%d",&l[i],&r[i]);
cnt += r[i] - l[i] + 1;
i++;
}
printf("%d",cnt);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_261353/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_261353/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i,sum=0;
scanf("%d",&N);
for(i=0;i<N;i++){scanf("%d %d",&a,&b);sum+=b-a+1;}
printf("%d",sum);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_261397/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_261397/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
int main(void) {
int N, i;
int l[1000] ,r[1000], a[1000];
int ans = 0;
scanf("%d", &N);
for ( i = 0; i < N; i++)
{
scanf("%d", &l[i]);
scanf("%d", &r[i]);
a[i] = r[i] - l[i] +1;
}
for ( i = 0; i < N; i++)
{
ans += a[i];
}
printf("%d", ans);... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_261447/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_261447/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define ll long long
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define max(p,q)((p)>(q)?(p):(q))
#define min(p,q)((p)<(q)?(p):(q))
int main(){
int n;
scanf("%d",&n);
ll ans=0;
rep(i,0,n){
int x,y;
scanf("%d%d",&x,&y);
ans+=y-x+1;
}
printf("%lld",an... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_261498/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_261498/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 const *argv[])
{
int n;
scanf("%d", &n);
int p = 0;
for (int i = 0; i < n; ++i) {
int l, r;
scanf("%d %d", &l, &r);
p += r - l + 1;
}
printf("%d\n", p);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_261540/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_261540/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 l[N],r[N];
for(int i=0;i<N;i++){
scanf("%d %d",&l[i],&r[i]);
}
long sum =0;
for(int i=0;i<N;i++){
sum += r[i]-l[i]+1;
}
printf("%d",sum);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_261591/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_261591/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
typedef long long ll;
typedef char keytype;
int gcd(int a, int b){ return (a % b) ? gcd(b, a % b) : b;}
int lcm(int a, int b){ return (a / gcd(a, b)) * b;}
/* a[0], ..., a[n-1] の数の最大公約数 */
int ngcd(int n, int a[])
{
int i, d;
d = a[0];
for (i = ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_261634/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_261634/source.c"
target datalayout = "e-m:e-p270: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>
int main (){
char a[4];
char b[4];
char c[4];
char D[4];
scanf("%s %s %s",a,b,c );
D[0] = a[0];
D[1] = b[1];
D[2] = c[2];
D[3] = '\0';
puts(D);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_261678/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_261678/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[3],b[3],c[3];
scanf("%s",a);
scanf("%s",b);
scanf("%s",c);
printf("%c%c%c\n",a[0],b[1],c[2]);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_261720/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_261720/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 c[4][3];
int i;
for(i=0;i<3;i++){
scanf("%s",&c[i]);
}
printf("%c",c[0][0]);
printf("%c",c[1][1]);
printf("%c",c[2][2]);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_261779/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_261779/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,j;
for(i=0;i<3;i++)
{
for(j=0;j<3;j++)
{
scanf("%c",&a[i][j]);
if(j==2)
getchar();
}
}
for(i=0;i<3;i++)
{
printf("%c",a[i][i]);
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_261821/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_261821/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[3],b[3],c[3];
scanf("%s",a);
scanf("%s",b);
scanf("%s",c);
printf("%c%c%c",a[0],b[1],c[2]);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_261865/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_261865/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 m[101][101];
int main()
{
int n,k,l,a,b,c,i,j;
for(;;){
scanf("%d%d",&n,&k);
if(n == 0 && k == 0) break;
for(i=1;i<=n;i++){
for(j=1;j<=n;j++){
if(i == j) m[i][j] = 0;
else m[i][j] = 0x1fffffff;
}
}
while(k-- > 0){
scanf("%d",&l);
if(l == 0){
scan... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_261915/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_261915/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,t,r,a,b,i,j;
int q[400001];
while(scanf("%d %d",&n,&m),n||m){
t=r=0;
for(i=0;i<n;i++){
scanf("%d %d",&a,&b);
if(a==0){
q[r++]=b;
if(r-t>m)t++;
}
if(a==1){
r--;
for(j=b+t-1;j<r;j++)q[j]=q[j+1];
}
if(a==2)printf("%d\n",q[b+t-1]);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_261973/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_261973/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <unistd.h>
#include <stdlib.h>
char *create_array(char *s, char *new_arr, char *t, int size)
{
int i;
int j;
i = -1;
while (s[++i])
new_arr[i] = s[i];
free(s);
j = 0;
while (j < size)
new_arr[i++] = t[j++];
new_arr[i] = 0;
return (new_arr);
}
char *get_data(char *s)
{
int size;
i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_262015/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_262015/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: nounwind ... |
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
int main(void){
int i,j,N,M;
scanf("%d",&N);
char s[N][11];
int s_n[N];
int prev,max = -2147483648;
for(i=0;i<N;i++){
scanf("%s",s[i]);
s_n[i] = 0;
}
scanf("%d",&M);
char t[M][11];
for(i=0;i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_262059/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_262059/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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)
{
int N;
scanf("%d", &N);
char s[N][10];
for (int i = 0; i < N; i++) {
scanf("%s", &s[i]);
}
int M;
scanf("%d", &M);
char t[M][10];
for (int i = 0; i < M; i++) {
scanf("%s", &t[i]);
}
int max = 0;
for (int i = 0; i < N; i++) {... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_262101/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_262101/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 EPS 1e-10
#define INF 1000000000
typedef struct {
int x1, y1, x2, y2;
} Line;
Line line[102][3];
int rel_s_s(double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4, double *x, double *y) {
const double dn = (x2 - x1) * (y4 - y3) - (x4 - ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_262145/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_262145/source.c"
target datalayout = "e-m:e-p270: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.Line = type { i32, ... |
#include<stdio.h>
int main(){
long long n,i,j,a,b,c,s=0,M=1e9+7,d[300010]={};
scanf("%lld",&n);
for(i=0;i<n;i++)scanf("%lld",&d[i]);
for(i=0;i<60;i++){
c=(1LL<<i);
a=b=0;
for(j=0;j<n;j++){
if(d[j]&c)a++;
else b++;
}
//printf("%lld\n",a*b);
a%=M;
b%=M;
c%=M;
s... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_262196/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_262196/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
double s, l;
scanf("%lf", &r);
s = r * r * M_PI;
l = 2 * r * M_PI;
printf("%.6lf %.6lf\n", s, l);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_262239/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_262239/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 min(long long int a,long long int b)
{
if (a<b)
return a;
else return b;
}
int main()
{
long long int b,d,s,b1,d1,s1;
long long int res=0;int f=0;
scanf("%lld %lld %lld",&b,&d,&s);
b1=b;d1=d;s1=s;
if(min(b,min(d,s))==b)
{
f=1;
b=0;d=d-b1;s=s-b1;
}
else ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_26229/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_26229/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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(){
double r, l, s;
scanf("%lf",&r);
s = r * r * 3.141592653589;
l = 2 * 3.141592653589 * r;
printf("%f %f\n", s, l);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_262347/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_262347/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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("%.6lf %.6lf\n",r*r*M_PI,2*r*M_PI);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_262398/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_262398/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,s,l;
scanf("%lf",&r);
s = PI*(r*r);
l = 2*PI*r;
printf("%lf %lf\n",s,l);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_262440/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_262440/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <math.h>
int main(void){
int a,b,d;
double s,ensyu,r;
scanf("%lf",&r);
s=r*r*M_PI;
ensyu=r*2*M_PI;
printf("%lf %lf\n",s,ensyu);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_262484/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_262484/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; double pai=3.14159265359;
scanf("%lf",&r);
printf("%f %f\n",r*r*pai,2*r*pai);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_262527/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_262527/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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=r*r*3.141592653589;
b=2.0*r*3.141592653589;
printf("%f %f\n",a,b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_262570/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_262570/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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("%f %f\n",r*r*M_PI,2*r*M_PI);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_262613/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_262613/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
x=M_PI;
scanf("%lf",&r);
printf("%lf %lf\n",r*r*x,2*r*x);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_262657/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_262657/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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){
// Here your code !
double r;
scanf("%lf",&r);
printf("%.5lf %.5lf\n",r*r*(3.141592653589),2*r*(3.141592653589));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_262707/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_262707/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i;
scanf("%lf",&r);
s=r*r*M_PI;
i=r*2.0*M_PI;
printf("%lf %lf",s,i );
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_262750/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_262750/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_262800/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_262800/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, c;
scanf("%lf",&r);
c = 2.0 * r * M_PI;
s = M_PI * r * r;
printf("%lf %lf\n", s, c);
return 0 ;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_262888/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_262888/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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\n", 3.141592653589*r*r, 3.141592653589*2*r);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_262930/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_262930/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, c, s;
while(scanf("%lf", &r) != EOF)
{
c = 2.0 * r * M_PI;
s = r * r * M_PI;
printf("%.6lf %.6lf\n", s, c);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_262989/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_262989/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,m,s;
scanf("%lf",&r);
((0<r)&&(r<=10000));
s=r*r*3.1415926535897932384626;
m=2*r*3.1415926535897932384626;
printf("%f %f\n",s,m);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263038/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263038/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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("%f %f\n",r*r*3.14159265359,2*r*3.14159265359);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263081/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263081/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,m,e;
scanf("%lf",&r);
if(r > 0 && r < 10000) {
m = pow(r,2.0) * M_PI;
e = 2 * r * M_PI;
}
printf("%f %f\n",m,e);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263139/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263139/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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("%.6lf %.6lf\n", M_PI*r*r, 2*M_PI*r);
return(0);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263182/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263182/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 (M_PI)
int main(void) {
double r;
scanf("%lf", &r);
printf("%.05f %.05f\n", r*r*PI, 2.0*r*PI);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263225/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263225/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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("%f %f\n", M_PI*r*r, 2*M_PI*r);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263269/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263269/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, m, n;
scanf("%lf", &r);
m=r*r*3.141592653589;
n=r*2*3.141592653589;
printf("%f %f\n",m ,n);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263311/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263311/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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){
#define PI 3.141592653589793
double r;
scanf("%lf", &r);
printf("%f %f\n",r*r*PI, 2*r*PI);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263355/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263355/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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", r*r*pi, r*2*pi);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263412/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263412/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>//2つの整数 a と b を読み込んで、以下の値を計算するプログラム
#include<math.h>
int main(void){
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_263456/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263456/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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.