Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include <stdio.h>
#include <ctype.h>
int main() {
char ch[1200];
int i,n;
n=0;
char a[1200];
while(1) {
scanf("%c",&a[n]);
if(a[n] == '\n') {
break;
}
ch[n] = a[n];
if('A' <= a[n] && a[n] <= 'Z') {
ch[n] = a[n] + 32;
} else if(a[n] >= 'a' && a[n] <= 'z') {
ch[n] =... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_175638/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_175638/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 1200
int main(){
char str[1200];
int i;
int count=0;
for(i=0; i<N;i++){
scanf("%c",&str[i]);
if(str[i]=='\n'){
break;
}
count++;
}
for(i=0;i<count;i++){
if('a'<=str[i] && str[i] <='z'){
str[i]=str[i]+('A'-'a');
}else if('A'<=str[i] && ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_175696/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_175696/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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<ctype.h>
int main(){
char ch,a;
scanf("%c",&ch);
a='\n';
while(a!=ch){
if(islower(ch)){
printf("%c",toupper(ch));}
else if(isupper(ch)){
printf("%c",tolower(ch));}
else printf("%c",ch);
scanf("%c",&ch);
}
printf("%c",a);
return 0... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_175825/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_175825/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 str;
while(1){
scanf("%c",&str);
if(str >= 'A' && str <= 'Z') str += 0x20;
else if(str >= 'a' && str <= 'z') str -= 0x20;
printf("%c",str);
if(str == '\n') break;
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_175883/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_175883/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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=0;
char c;
while(1){
scanf("%c",&c);
if(c>='A'&&'Z'>=c)c += 'a'-'A';
else if(c>='a'&&'z'>=c)c += 'A' - 'a';
printf("%c",c);
if(c =='\n'){
return(0);
}
}
return(0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_175933/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_175933/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <ctype.h>
int main(void)
{
char moji;
while(scanf("%c",&moji)!=EOF)
{
if(moji>='a' && moji<='z')
{
printf("%c",toupper(moji));
}
else if(moji>='A' && moji<='Z')
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_175984/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_175984/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <ctype.h>
int main(){
char ch;
while(1){
scanf("%c", &ch);
if(ch=='\n'){
printf("\n");
break;
}else if(islower(ch)){
printf("%c", toupper(ch));
}else if(isupper(ch)){
printf("%c", tolower(ch));
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_176026/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_176026/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ans=0,n,m,z;
scanf("%d %d %d",&n,&m,&z);
int k=m;
while (k<=z)
{
if (k%n==0)
ans++;
k+=m;
}
printf("%d",ans);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_17607/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_17607/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,n,j,k;
scanf("%d",&n);
int a[n];
for(i=0;i<n;i++)
{
scanf("%d",&a[i]);
}
for(k=1;k<=n-k+1;k=k+2)
{
j=a[k-1];
a[k-1]=a[n-k];
a[n-k]=j;
}
for(i=0;i<n;i++)
printf("%d ",a[i]);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_17612/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_17612/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
#include<string.h>
int main()
{
long long int i;
char ch='A';
char ch1='a';
long long int diff;
char arr[1199];
scanf("%[^\n]",arr);
long long int length=strlen(arr);
diff=ch1-ch;
for(i=0;i<length;i++)
{
if(arr[i]>='a' && arr[i]<='z')
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_176163/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_176163/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[1205];
scanf("%[^\n]",a);
int p=0;
while(a[p]!='\0'){
p++;
}
for(int i=0;i<p;i++){
if(a[i]>='a'&&a[i]<='z'){
a[i]=a[i]-32;
}
else if(a[i]>='A'&& a[i]<='Z'){
a[i]=a[i]+32;
}
}
printf("%s",a);
printf("\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_176206/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_176206/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int n;
scanf("%d",&n);
int arr[n];
int i;
for(i=0;i<n;i++)
{
scanf("%d",&arr[i]);
}
for(i=0;i<n/2;i+=2)
{
int temp=arr[i];
arr[i]=arr[n-i-1];
arr[n-i-1]=temp;
}
for(i=0;i<n-1;i++)
{
printf("%d ",arr[i]);
}
printf("%d\n",arr[n-1]);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_17625/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_17625/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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)
{
char ch;
while(1){
scanf("%c",&ch);
if(ch=='\n'){
break;
}
if('a'<=ch&&ch<='z'){
ch=ch-32;
printf("%c",ch);
}else if('A'<=ch&&ch<='Z'){
ch=ch+32;
printf("%c",ch);
}else{
printf("%c",ch);
}
}
printf("\n");
return... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_176293/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_176293/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 exchange(char);
int main(void)
{
char c='\0';
while(c!='\n')
{
scanf("%c",&c);
printf("%c",exchange(c));
}
return 0;
}
char exchange(char c)
{
if(c>='A'&&c<='Z') return c+'a'-'A';
else if(c>='a'&&c<='z') return c+'A'-'a';
return c;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_176343/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_176343/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 line[256];
int h, w, k;
char c[6][6];
fgets(line, 256, stdin);
sscanf(line, "%d %d %d", &h, &w, &k);
for (int i = 0; i < h; i++) {
fgets(line, 256, stdin);
sscanf(line, "%s", &c[i]);
}
int ans = 0;
for (int maskR = 0; maskR ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_176394/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_176394/source.c"
target datalayout = "e-m:e-p270: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>
void count(int H, int W, int row, int col, char map[6][6], int* cnt);
int main() {
int H,W,K;
char map[6][6];
char buf;
int x,y;
int cnt;
int row,col;
int result;
scanf("%d %d %d\n", &H, &W, &K);
for ( y = 0; y < H; y++ ) {
for ( x = 0; x < W; x++ ) {
scanf("%c", &map[x][... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_176437/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_176437/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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<limits.h>
int main(void)
{
char S[2];
int i;
for(i=0;i<3;i++)
{
scanf("%c", &S[i]);
}
if(S[0]==S[1]||S[0]==S[2]||S[1]==S[2])
{
printf("No");
}
else
{
printf("Yes");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_176480/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_176480/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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], i, a=0, b=0, c=0;
scanf("%s", s);
for(i=0; i<3; i++){
if(s[i] == 'a')
a++;
if(s[i] == 'b')
b++;
if(s[i] == 'c')
c++;
}
if(a==1 && b==1 && c==1)
printf("Yes\n");
else
printf("... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_176523/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_176523/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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];
int i;
int aa=0;
int bb=0;
int cc=0;
scanf("%s",&S[0]);
for(i=0;i<3;i++){
if(S[i]=='a')
aa=1;
if(S[i]=='b')
bb=1;
if(S[i]=='c')
cc=1;
}
if(aa==1&&bb==1&&cc==1)
printf("Yes");
else
printf("No");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_176567/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_176567/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x,a,b,z,count=0;
scanf("%d%d%d",&a,&b,&z);
x=(a>b)?a:b;
while(1){
if(x%a==0&&x%b==0){
break;
}
++x;
}
while(z>=x){
z-=x;
count++;
}
printf("%d",count);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_17661/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_17661/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 i,a=0,b=0,c=0;
char s[4];
scanf("%s",s);
for(i=0;i<3;i++){
if(s[i]=='a'){
a=1;
}
if(s[i]=='b'){
b=1;
}
if(s[i]=='c'){
c=1;
}
}
if(a==1&&b==1&&c==1){
printf("Yes\n");
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_176660/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_176660/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 s[3];
scanf("%s", &s);
int x = 0;
int y = 0;
int z = 0;
for (int i = 0; i < 3; i++) {
if (s[i] == 'a') x++;
if (s[i] == 'b') y++;
if (s[i] == 'c') z++;
}
if (x == 1 && y == 1 && z == 1) printf("Yes\n");
else printf("No\n");
return 0;
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_176703/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_176703/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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) {
char s[4];
scanf("%s",s);
int i,frag[3]={};
for(i=0;i<3;i++){
frag[s[i]-'a']++;
}
for(i=0;i<3;i++){
if(frag[i]!=1){
printf("No\n");
break;
}
}
if(i==3){
printf("Yes\n");
}
return EXIT_SUCCESS;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_176747/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_176747/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#define i_cin(X) scanf("%d", &X)
#define i_cin2(X,Y) scanf("%d %d",&X,&Y)
#define i_cin3(X,Y,Z) scanf("%d %d %d",&X,&Y,&Z)
#define l_cin(X) scanf("%ld",&X)
#define l_cin2(X,Y) scanf("%ld %ld",&X,&Y)
#define s_cin(X) scanf("%s",&X)
#define i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_176804/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_176804/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int GCD(int x,int y){return y==0? x:GCD(y,x%y);}
int main(void){
int n,i,ans;
scanf("%d",&n);
int A,B;
scanf("%d",&ans);
for(i=1;i<n;i++){
scanf("%d",&B);
ans = GCD(ans,B);
A = B;
}
printf("%d",ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_176855/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_176855/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 gcd(int a, int b){
while(1){
if(a>b)a%=b;
else b%=a;
if(a==0)return b;
if(b==0)return a;
}
}
int main(void){
int n,i,e=0,o=0,r,g=0;
scanf("%d",&n);
int a;
for(i=0;i<n;i++){
scanf("%d",&a);
if(a==1){
printf("1");
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_176899/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_176899/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
#include<stdbool.h>
#include<assert.h>
typedef long long ll;
typedef long double ld;
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k))
#define rrep(i,l,r)for(ll i=(l);i>=(r);i--)
#define INF (1LL<<60)
#defin... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_176941/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_176941/source.c"
target datalayout = "e-m:e-p270: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.fr = type { i64, i6... |
#include <stdio.h>
#include <string.h>
int main(void) {
int N;
char X[1024];
int D;
char YakusimaruHiroko[1024];
int YosinagaSayuri;
int MinaseInori;
if (scanf("%d", &N) != 1) return 1;
if (scanf("%s", X) != 1) return 1;
if (scanf("%d", &D) != 1) return 1;
YosinagaSayuri = D;
for (MinaseInori = 0; MinaseIno... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_176985/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_176985/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
int main()
{
char ss[100005];
while(~scanf("%s",ss))
{
int i,flag=0;
for(i=0;i<strlen(ss)-1;i++)
{
if(ss[i]==ss[i+1])
{
printf("%d %d\n",i+1,i+2);
flag=1;
break;
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_177027/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_177027/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
static int s[10000001] = { 0 };
int q, c = 0, i, a;
scanf("%d", &n);
for (i = 0; i < n; i++){
scanf("%d", &a);
s[a] = 1;
}
scanf("%d", &q);
for (i = 0; i < q; i++){
scanf("%d", &a);
if (s[a])
c++;
}
printf("%d\n", c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_177070/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_177070/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@main.s = internal unnamed_... |
#include <stdio.h>
#define MAX_V 10000000
static int cnt_s[MAX_V + 1] = {0}, cnt_t[MAX_V + 1] = {0};
int main() {
int i, v;
int n, q, cnt = 0;
scanf("%d", &n);
for(i = 0; i < n; i++) {
scanf("%d", &v);
cnt_s[v] = 1;
}
scanf("%d", &q);
for(i = 0; i < q; i++) {
scanf("%d", &v);
cnt_t[v] = 1;
}
for(i = ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_177113/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_177113/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 BUCKET_SIZE 131072
typedef struct {
int key;
int state;
} BUCKET;
BUCKET table[ BUCKET_SIZE ];
int main( void ) {
int i, n, tmp, h, C = 0;
scanf( "%d", &n );
while ( n-- ) {
scanf( "%d", &tmp );
h = tmp > 0 ? tmp % BUCKET_SIZE : -tmp % BUCKET_SIZE;
for ( i = 1; table[ h ].sta... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_177157/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_177157/source.c"
target datalayout = "e-m:e-p270: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.BUCKET = type { i32... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main(){
int i,j,n,k,r,s,p,ans=0;
char t[100010]={};
scanf("%d %d %d %d %d %s",&n,&k,&r,&s,&p,t);
for(i=0; i<k; i++){
if(t[i]=='r')ans+=p;
if(t[i]=='s')ans+=r;
if(t[i]=='p')ans+=s;
}
for(i=k; i<n; i++){
if(t[i]!=t[i-k]){
if... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_177214/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_177214/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,k,r,s,p,i,f,u[100000];
char t[100000];
scanf("%d %d",&n,&k);
scanf("%d %d %d",&r,&s,&p);
scanf("%s",t);
f=0;
/*printf("%d %d\n",r,p);*/
/*printf("%c %c %c\n",t[0],t[1],t[2]);*/
for(i=0;i<k;i++){
if(t[i]=='r'){
f=f+p;
u[i]=1;
/*printf("%d p... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_177265/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_177265/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 NEW(p,n){p=malloc((n)*sizeof(p[0]));if(p==NULL){printf("not enough memory\n");exit(1);};}
//pの型の変数n個の要素分のメモリを確保し、そのアドレスをpに代入するマクロ
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define SWAP(type, x, y) do { type tmp =... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_177308/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_177308/source.c"
target datalayout = "e-m:e-p270: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.data = type { i32, ... |
#include<stdio.h>
#include<string.h>
int main(void){
int count[4];
int i,j,k,min;
char str[512];
memset(count,0,sizeof(count));
scanf("%s",str);
k=strlen(str);
for(i=0;i<k;i++){
switch(str[i]){
case 'K':
count[0]++;
break;
case 'U':
count[1]++;
break;
case 'P':
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_177359/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_177359/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,mul,i;
scanf("%d %d",&a,&b);
mul = 1;
if(a>0){
printf("Positive");
}
else if(a==0){
printf("Zero");
}
else if(b>=0){
printf("Zero");
}
else{
if((b-a+1)%2==0){
printf("Positive");
}
else{
printf("Negative");
}
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_177401/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_177401/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 int a, b;
scanf("%lld %lld", &a, &b);
if(a*b<0||a*b==0){
printf("Zero\n");
return 0;
}
if((a<0&&b<0)&&(b-a)%2==0){
printf("Negative\n");
return 0;
}
printf("Positive\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_177445/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_177445/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
while( scanf("%d %d", &a, &b) != EOF ){
printf("%d\n", a + b);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_177489/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_177489/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
while( scanf("%d %d", &a, &b) != EOF ){
printf("%d\n", a + b);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_177531/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_177531/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
while( scanf("%d %d", &a, &b) != EOF ){
printf("%d\n", a + b);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_177582/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_177582/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
while( scanf("%d %d", &a, &b) != EOF ){
printf("%d\n", a + b);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_177625/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_177625/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
/** Application main entry point. */
int main (
int argc,
char *argv[ ]
)
{
int a, b;
while ( scanf ( "%d%d", &a, &b ) == 2 )
{
printf ( "%d\n", a + b );
}
return ( 0 );
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_177683/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_177683/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
while(scanf("%d %d",&a,&b) != EOF){
printf("%d\n",a+b);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_177748/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_177748/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,x;
while( scanf("%d %d",&a,&b) != EOF){
x=a+b;
printf("%d\n",x);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_177791/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_177791/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
while( scanf("%d %d", &a, &b) != EOF ){
printf("%d\n", a + b);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_177849/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_177849/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int h, w; scanf("%d %d", &h, &w);
char field[103][103];
for(int i=0; i<h; i++)
scanf("%s", field[i]);
for(int i=0; i<w+2; i++) printf("#"); puts("");
for(int i=0; i<h; i++)
printf("#%s#\n", field[i]);
for(int i=0; i<w+2; i++) printf("#"); puts("");
return 0;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_177892/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_177892/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int H, W, i, j;
char a[100][101];
scanf("%d %d", &H, &W);
for(i=0; i<H; i++){
scanf("%s", a[i]);
}
for(i=0; i<W+2; i++)
printf("#");
printf("\n");
for(i=0; i<H; i++){
printf("#");
for(j=0; j<W; j++){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_177935/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_177935/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,w,i;
scanf("%d%d",&h,&w);
char a[h][w+1];
for(i=0;i<h;i++){
scanf("%s",&a[i]);
}
for(i=0;i<w+2;i++)printf("#");
printf("\n");
for(i=0;i<h;i++){
printf("#%s#\n",a[i]);
}
for(i=0;i<w+2;i++)printf("#");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_177979/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_177979/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int m,n,i,k,j;
char a[105];
scanf("%d%d",&m,&n);
for(i=1;i<=m;i++)
{
scanf("%s",a);
if(i==1)
{
for(j=1;j<=n+2;j++)
printf("#");
printf("\n");
}
for(j=0;j<n;j++)
{
if(n==1) { printf("#%c#\n",a[0]); break;}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_178035/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_178035/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 str[101][101];
int n,i,j=0,t,m,k=0;
scanf ("%d%d\n",&n,&m);
for (i=0;i<n;i++)
{
for (j=0;j<m;j++)
{
scanf ("%c",&str[i][j]);
}
getchar ();
}
for (i=0;i<n;i++)
{
if (i==0)
{
for (j=0;j<m+2;j++)
if (j!=m+1) printf ("#");
else printf ("#\n");
}
prin... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_178079/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_178079/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int s[105][105];
int a,b;
scanf("%d%d",&a,&b);
getchar();
for(int i=1;i<=a;i++){
for(int j=1;j<=b;j++){
scanf("%c",&s[i][j]);
}
getchar();
}
for(int i=0;i<=a+1;i++){
for(int j=0;j<=b+1;j++){
if(i==0||i==a+1||j==0||j==b+1) pu... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_178121/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_178121/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
int a,b,c,d;
int Pictures[100][100];
scanf("%d %d",&a,&b);
for(c=0;c<a;c++){
scanf("%s",Pictures[c]);
}
for(c=0;c<b+2;c++)printf("#");
printf("\n");
for(c=0;c<a;c++)printf("#%s#\n",Pictures[c]);
for(c=0;c<b+2;c++)printf("#");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_178165/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_178165/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 entry_sell,entry_buy;
int entry_tanka[1000];
int i,j,min,sum,index;
//入力
scanf("%d",&entry_sell);
scanf("%d",&entry_buy);
for(i=0; i<entry_sell; i++){
scanf("%d",&entry_tanka[i]);
}
sum=0;
for(i=0;i<entry_buy; i++){... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_178215/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_178215/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,k,i,j,l,m;
int sum = 0;
scanf("%d", &n);
scanf("%d", &k);
int p[n];
for(i=0; i<n; i++){
scanf("%d", &p[i]);
}
for(j=0; j<n; j++){
for(l=j+1; l<n; l++){
if(p[j]>p[l]){
int sort = p[j];
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_178259/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_178259/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
void sortArraySmall(int array[],int size);
void swap (int *pa, int *pb);
int main(int argc, const char * argv[]) {
int n,k;
scanf("%d%d",&n,&k);
int a[n];
for(int i=0;i<n;i++){
scanf("%d",&a[i]);
}
sortArraySmall(a,n);
int sum=0;
f... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_178309/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_178309/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ara [1000], i, j, k, temp, n, q;
scanf("%d %d", &n, &q);
for (i = 0; i < n; i++)
{
scanf("%d", &ara[i]);
}
for (j = 0; j < n; j++)
{
for (k = j + 1; k < n; k++)
{
if (ara [j] > ara [k])
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_178352/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_178352/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 quick_sort(int a[],int start,int end,int data_size)
{
int pivot,temp=0,i,j;
pivot=end;
temp=a[start];
a[start]=a[pivot];
a[pivot]=temp;
i=start+1;
j=end;
do{
while(a[i]<=a[start] && i<end) i++;
while(a[j]>=a[start] && j>start)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_178396/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_178396/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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=0,k=0;
int p[1050];
int sum=0;
int tmp=0;
scanf("%d%d",&n,&k);
for(int i=0;i<n;i++)
{
scanf("%d",&p[i]);
};
for (int i=0; i<n; ++i) {
for (int j=i+1; j<n; ++j) {
if (p[i] > p[j]) {
tmp = p[i];
p[i] = p[j];
p[j] = tmp;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_178439/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_178439/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 cmp ( const void *a , const void *b )
{
return *(int *)a - *(int *)b;
}
int main()
{
int n,k,m,sum=0;
int a[1001];
scanf("%d %d",&n,&k);
for(m=0;m<n;m++)
{
scanf("%d",&a[m]);
}
qsort(a,n,sizeof(a[0]),cmp);
for(m=0;m<k;m++)
sum=su... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_178482/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_178482/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
#include <limits.h>
#include <stdbool.h>
#define rep(i, n) for(int i=0; i<(n); ++i)
#define max 20000
//qsort(str, n, sizeof(int), up_comp);
int up_comp(const void *a, const void *b){return *(int*)a - *(int*)b;}
int down_comp(const void *a,... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_178525/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_178525/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 c;
scanf("%d",&c);
c=48-c;
printf("%d\n",c);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_178792/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_178792/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#define N_MAX 300000
long long bit_foosum[N_MAX+1];
long long bit_num[N_MAX+1];
/*BITÌÝÏa*/
long long bit_sum(const long long* bit,int n) {
long long sum=0;
n++;
while(n>0) {
sum+=bit[n];
n-=(n & (-n));/*ÅãÌ1Ìrbgðø*/
}
return sum;
}
/*BITÉlðÁZ*/
vo... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_178921/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_178921/source.c"
target datalayout = "e-m:e-p270: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.bacteria_t = type {... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
void print(char *str, const int a, const int b)
{
int i;
for( i = a; i < b+1; ++i )
printf("%c", str[i]);
printf("\n");
}
void reverse(char *dst, const int a, const int b)
{
int i, j;
char src[1001];
strcpy(src, dst);
fo... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_178972/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_178972/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str.2 = private unnamed_a... |
#include <stdio.h>
#include <string.h>
int main(void)
{
char str[1001];
int q;
int i,j,k;
char req[10];
int tar;
int a,b;
char p[1001];
char temp;
scanf("%s",str);
scanf("%d",&q);
for(i=0; i<q; i++){
memset(req,'\0',10);
memset(p,'\0',1001);
scanf("%s",req);
if(strcm... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_179021/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_179021/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
void printFunc(int a, int b ,char str[1001]) {
int i;
//printf("print");
for(i = a; i <= b; i++) {
printf("%c",str[i]);
}
printf("\n");
}
void replaceFunc(int a, int b, char str[1001], char p[1001]) {
int i;
//printf("replace");
for(i = a ; i <= b; i++) {
str[i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_179065/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_179065/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str.2 = private unnamed_a... |
#include <stdio.h>
#include <string.h>
int main(void) {
char str[1001], order[10], tmp[1001];
int q, a, b;
int i;
scanf("%s", str);
scanf("%d", &q);
while (q--){
scanf("%s %d %d", order, &a, &b);
if (strcmp(order, "print") == 0){
for (i = a; i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_179115/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_179115/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 argc, const char * argv[]) {
int a,b,q;
char str[1001];
char order[1001];
char p[1001];
int i,j,k;//アクセス変数
char tmp[1001];
scanf("%s",str);
scanf("%d",&q);
for(i=0;i<q;i++){
//初期化
// order[0]='\n';
//... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_179159/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_179159/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 s[1001], order[8], ch[1001];
int i, j, n, a, b;
scanf("%s\n%d", s, &n);
for(i=0;i<n;i++){
scanf("%s %d %d", order, &a, &b);
if(!strcmp(order, "reverse")){
for(j=a;j<=b;j++)
ch[b-j] = s[j];
for(j=a;j<=b;j++)
s... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_179209/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_179209/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include<string.h>
int main()
{
char s[1001];
scanf("%s",s);
char char_array[1001],str2[1001];
char str[1001];
strcpy(char_array,s);
int t,i,a,b,k=0,l=0;
char temp,p[1001];
scanf("%d",&t);
while(t--)
{
scanf("%s",str);
if(strcmp(str,"replace")=... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_179252/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_179252/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 s[1001], order[8], ch[1001];
int i, j, n, a, b;
scanf("%s\n%d", s, &n);
for(i=0;i<n;i++){
scanf("%s %d %d", order, &a, &b);
if(!strcmp(order, "reverse")){
for(j=a;j<=b;j++)
ch[b-j] = s[j];
for(j=a;j<=b;j++)
s... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_179296/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_179296/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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<ctype.h>
int main(){
char s[1000], c[10], r[1000];
int q, i, j, a, b;
scanf("%s", s);
scanf("%d", &q);
for(i=0;i<q;i++){
scanf("%s", c);
if(strcmp(c,"replace")==0){
scanf("%d %d %s", &a, &b, r);
for(j=a;j<=b;j++) s[j]=r[j-a];
}else ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_179339/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_179339/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
int main() {
char s[1000];
scanf("%s", s);
if (s[strlen(s) - 1] == 's') {
printf("%ses", s);
}
else {
printf("%ss", s);
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_179403/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_179403/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[1000];
char s[2] = "s";
char es[3] = "es";
int i=0;
scanf("%s",S);
while(S[i++] != 0);
if(S[i-2] == 's'){
printf("%s%s\n",S,es);
}else{
printf("%s%s\n",S,s);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_179454/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_179454/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.es = private ... |
#include<stdio.h>
int main(void){
char s[1001];
int i,j,flag=0;
scanf("%s",s);
for(i=0;flag==0;i++){
if(s[i]=='\0'){
j=i;
flag=1;
}
}
if(s[j-1]=='s'){
s[j]='e';
s[j+1]='s';
s[j+2]='\0';
}
else{
s[j]='s';
s[j+1]='\0';
}
printf("%s",s);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_179511/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_179511/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <ctype.h>
#include <float.h>
#include <inttypes.h>
#include <limits.h>
#include <signal.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <math.h>
#ifdef __cplusplus
#include <bits/stdc++.h>
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_179562/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_179562/source.c"
target datalayout = "e-m:e-p270: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._IO_FILE = type { i... |
#include<stdio.h>
int solve()
{
int n,i,q,cmd,inrr,s0=0,s1=0;
char a[100007]={0},inr;
scanf("%d%d",&n,&q);
for(i=1;i<=n;i++){
getchar();inr=getchar();
a[i]=inr-'0';
if(a[i]==0)s0++;
if(a[i]==1)s1++;
}
while(q--){
scanf("%d%d",&cmd,&inrr);
switch(cm... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_17962/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_17962/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 ... |
// Aizu 1154: Monday-Saturday Prime Factors
// 2017.9.13 bal4u@uu
#include <stdio.h>
#define MAX 300000
#define MAX2 35813
char mk[MAX+5];
int tbl[MAX2+5], len;
int main()
{
int n, i;
char *p, *q, *pend;
int *tp;
for (i = 7; i <= MAX; i += 7) mk[i-1] = mk[i+1] = 1;
for (p = mk, pend = mk + MAX, i = 0; p <= p... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_179663/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_179663/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@mk = dso_local global [300... |
#include <stdio.h>
#include <stdlib.h>
#define swap(type,a,b) do{type t=a;a=b;b=t;}while(0);
#define MAX(a,b) ((a)>(b)?(a):(b))
#define MIN(a,b) ((a)<(b)?(a):(b))
#define ll long long
#define INF 100000000
#define FOR(i,a,n) for(i=a;i<n;i++)
int comp(const void* a,const void* b){
return *(int*)a-*(int*)b;
}
void fill(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_179713/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_179713/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
typedef struct List {
struct List *next;
int v, cost, tmp;
} list;
typedef struct {
long long key;
int id;
} data;
typedef struct {
data *obj;
int size;
} min_heap;
void push(data x, min_heap* h)
{
int i = h->size;
data tmp;
h->obj[(h->size)++] = x;
while (1) {
i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_179764/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_179764/source.c"
target datalayout = "e-m:e-p270: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.data = type { i64, ... |
#include <stdio.h>
static
const int seg[ ]
= { 0x3F, 0x06, 0x5B, 0x4F, 0x66, 0x6D, 0x7D, 0x27, 0x7F, 0x6F };
/** Application main entry point. */
int main (
int argc,
char * argv[ ]
)
{
for ( ; ; )
{
int st = 0;
int n;
scanf ( "%d", &n );
if ( !( ~n ) ) break ;
while ( n-- )
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_179807/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_179807/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <math.h>
#include <stdbool.h>
#define LL long long
#define INF 1<<31-1
#define LNF 9223372036854775807
#define PI 3.14159265358979
#define MIN(x,y) ((x)<(y)?(x):(y))
#define MAX(x,y) ((x)<(y)?(y):(x))
#define FOR(i,a,n) for(i=a;i<n;i++)
#define MOD 100... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_179850/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_179850/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@fac = dso_local local_unna... |
#include <stdio.h>
int main()
{
int K;
scanf("%d", &K);
printf("%d\n", (K / 2) * ((K + 1) / 2));
fflush(stdout);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_179900/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_179900/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int i,h,len,j,n,k;
scanf("%d",&h);
i=0;
if(h%2==0){
for(j=1;j<h;j=j+2){
i=i+j;
}
printf("%d\n",i);
}
else if(h%2!=0){
for(j=2;j<h;j=j+2){
i=i+j;
}
printf("%d\n",i);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_179951/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_179951/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
if(k % 2 == 0){
printf("%d",(k/2) * (k/2));
}
else{
printf("%d",((k-1)/2) * ((k+1)/2));
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_179995/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_179995/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
//set many funcs template
//Ver.20181228
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<stdbool.h>
#include<time.h>
#define inf 1072114514
#define llinf 4154118101919364364
#define mod 1000000007
#define pi 3.1415926535897932384
int max(int a,int b){if(a>b){return a;}return b;}
int min(int a,int b){i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_180043/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_180043/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,j,s;
scanf("%d",&k);
for(j=2,s=0; j<=k; j++)
{
for(i=1; i<=j; i++)
{
if((i%2!=0 && j%2==0) || (i%2==0 && j%2!=0))
{
s++;
}
}
}
printf("%d\n",s);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_180087/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_180087/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, ans;
scanf("%d", &K);
ans = (K / 2) * ((K + 1) / 2);
printf("%d", ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_180137/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_180137/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d",&k);
double ans = k / 2.0;
int a = (int)(ans*ans);
printf("%d\n",a);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_180188/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_180188/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
int main()
{
int K;
scanf("%d",&K);
if( K % 2 == 0 ){
printf("%d\n",K/2 * K/2);
}else{
printf("%d\n",K/2 * ( K/2 + 1 ));
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_180230/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_180230/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 int a,b,c,i,d,min;
scanf("%ld %ld",&a,&b);
d=0;
if(a<b) min=a;
else min=b;
i=min;
while(d==0 && i>0)
{
if(a%i==0 && b%i==0) {c=i;
d++;}
else i--;
}
printf("%ld",a*b/c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_180274/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_180274/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 A,B,tmp;
long int N=1;
scanf("%ld %ld",&A,&B);
if(A>=B)
{
tmp = A;
A = B;
B = tmp;
}
while((A*N)%B != 0)
{
N++;
}
printf("%ld\n",A*N);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_180317/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_180317/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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<math.h>
#define PI 3.141592653589793
#define MOD 1000000007
int main(){
int a, b;
scanf("%d%d", &a, &b);
int lar, sma;
if(a>b){
lar = a;
sma = b;
}
else{
lar = b;
sma = a;
}
long int ans = lar;
while(ans%sma != 0){
ans += lar;
}
pr... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_180360/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_180360/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, e, d;
int c = 0;
scanf("%lld%lld", &a, &b);
e = a;
d = b;
while (c = a % b)
{
a = b;
b = c;
}
printf("%lld\n", e * d / b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_180403/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_180403/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 A,B,tmp;
long int x,r,ans;
scanf("%ld %ld",&A,&B);
x = A*B;
if(A < B){
tmp = A;
A = B;
B = tmp;
}
r = A % B;
while(r != 0){
A = B;
B = r;
r = A % B;
}
ans = x/B;
printf("%ld\n",... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_180447/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_180447/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#define max(a, b) (((a) > (b)) ? (a) : (b)) /* 2個の値の最大値 */
#define min(a, b) (((a) < (b)) ? (a) : (b)) /* 2個の値の最小値 */
#define ENTER printf("\n") /* 改行プリント */
int DBG = 1; /* デバッグプリント 提出時は0 */
long gcd(long m, long n); /... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_180490/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_180490/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@DBG = dso_local local_unna... |
#include <stdio.h>
#include <math.h>
int main(void){
double a,b,c,d;
scanf("%lf %lf %lf %lf",&a,&b,&c,&d);
a = hypot(a-c,b-d);
printf("%f\n",a);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_180533/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_180533/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x1,y1,x2,y2;
scanf("%lf %lf %lf %lf",&x1,&y1,&x2,&y2);
printf("%f\n",sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2)));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_180577/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_180577/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x1,x2,y1,y2;
double l;
scanf("%lf%lf%lf%lf",&x1,&y1,&x2,&y2);
l=sqrt(pow(fabs(x1-x2),2)+pow(fabs(y1-y2),2));
printf("%.8lf\n",l);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_180627/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_180627/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x1,y1,x2,y2;
scanf("%lf %lf %lf %lf\n",&x1,&y1,&x2,&y2);
printf("%.8lf\n",sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2)));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_180692/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_180692/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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.