Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include<stdio.h>
int main(void){
int A,B,C,ans;
scanf("%d %d %d",&A,&B,&C);
if(A>=B && A>=C){
ans=A*10+B+C;
}else if(B>=A && B>=C){
ans=A+B*10+C;
}else if(C>=A && C>=B){
ans=A+B+C*10;
}
printf("%d",ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_153108/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_153108/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d %d %d",&A,&B,&C);
int sum1,sum2,sum3;
sum1 = 10*A+B+C;
sum2 = 10*B+A+C;
sum3 = 10*C+A+B;
int max = sum1;
if(sum2>=max){
max = sum2;
}
if(sum3>=max){
max = sum3;
}
printf("%d",max);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_153159/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_153159/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a, b, c, max, mid, min;
scanf("%d%d%d", &a, &b, &c);
max = a;
if (b > max) max = b;
if (c > max) max = c;
min = a;
if (b < min) min = b;
if (c < min) min = c;
mid = a + b + c - min - max;
printf("%d\n", max * 10 + mid + min);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_153201/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_153201/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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* x, const void* y) {
int a = *(const int*)x, b = *(const int*)y;
return a > b ? -1 : a < b;
}
int N, M, C;
int l[114514];
int ballNums[114514];
int* balls[114514];
int asumisu;
int mizuhasu[114514];
int main(void) {
int i;
int answer = 0;
if (scanf("%d... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_153252/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_153252/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int n;
scanf("%d",&n);
if(n%2)
printf("9 %d\n",(n-9));
else
printf("4 %d\n",(n-4));
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_15331/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_15331/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
void sort(int n,int* array){
int i,j;
for(i =0;i<n-1;i++){
for(j=i+1;j<n;j++){
if(array[i]>array[j]){
array[i]+=array[j];
array[j]=array[i]-array[j];
array[i]-=array[j];
}
}
}
}
int main(){
int n,i,*array;
scanf("%d",&n);
arr... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_153353/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_153353/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int n,i,j,a[1001],t=0;
scanf("%d",&n);
for(i=0;i<n;i++)scanf("%d",&a[i]);
for(i=0;i<n;i++){
for(j=0;j<n-1;j++){
if(a[j]>a[j+1]){
t=a[j];
a[j]=a[j+1];
a[j+1]=t;
}
}
}
printf("%d",a[0]);
for(i=1;i<n;i++)printf(" %d",a[i]);
printf("\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_153397/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_153397/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 i, j, h, n, data[ 1000 ], tmp;
scanf( "%d", &n );
for ( i = 0; i < n; i++ )
scanf( "%d", &data[ i ] );
for ( h = 1; h < n / 9; h = h * 3 + 1 ) ; // hを初期化
for ( ; h > 0; h /= 3 )
for ( i = h; i < n; i++ ) {
tmp = data[ i ];
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_153447/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_153447/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
int compare_int(const void *a, const void *b)
{
return *(int*)a - *(int*)b;
}
int main(){
int num[1001] = {0};
int i,n;
scanf("%d",&n);
for(i=0; i<n; i++){
scanf("%d",&num[i]);
}
qsort(num... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_153498/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_153498/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 F, C;
scanf("%d",&F);
C = (F - 30) / 2;
printf("%d\n",C);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_153548/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_153548/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 f,c,m;
scanf("%d",&f);
c=f-30;
m=c/2;
printf("%d\n",m);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_153599/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_153599/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, n, m, miss, a[1000], min, min_idx, res;
scanf("%d%d", &n, &m);
min_idx = 0;
for(i=0;i<m;i++){
scanf("%d%d", &a[i], &miss);
if(i == 0) {
min = a[0];
}
if(min > a[i]){
min = a[i];
min_idx = i;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_153641/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_153641/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
int main(void){
int n, i;
scanf("%d", &n);
int b[200000];
char c = (n%2==0);
int l=n/2, r=l;
scanf("%d", b+l);
for(i=1; i<n; i++){
int j;
if(c==0){
c=1;
j=++r;
}else{
c=0;
j=--l;
}
scanf("%d", ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_153685/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_153685/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#define m 200000
int main(void)
{
int a[m],b[m],n,i,t=1;
scanf("%d\n",&n);
for(i=1;i<=n;i++)
{
scanf("%d",&a[i]);
}
if(n%2==0)
{
for(i=n;i>=2;i=i-2)
b[t++]=a[i];
for(i=1;i<=n-1;i=i+2)
b[t++]=a[i];
}
else
{
for(i=n;i>=1;i=i-2)
b[t++]=a[i];
for(i=2... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_153728/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_153728/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
int main() {
int n;
scanf("%d", &n);
int a[n];
for (int i = 0; i < n; i++) {
scanf("%d", &a[i]);
}
for (int j = n - 1; j >= 0; j -= 2) {
printf("%d ", a[j]);
}
for (int k = n % 2; k <= n - 2; k += 2) {
printf("%d ", a[k]);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_153771/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_153771/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
int n,i,d1,d2,p,max,ans;
while(scanf("%d",&n),n){
max=0;
ans=0;
for(i=0;i<n;i++){
scanf("%d%d%d",&p,&d1,&d2);
max<d1+d2?(max=d1+d2,ans=p):(0);
}
printf("%d %d\n",ans,max);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_153814/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_153814/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/*HOME - Volume2 - 0217 Walking in the Hospital*/
#include<stdio.h>
int main(void)
{
int n;
int i,s,p,d1,d2,d,max;
1<=n && n<=10000;
1<=p && p<=10000;
0<=d1 && d1<=5000;
0<=d2 && d2<=5000;
scanf("%d",&n);
while(n!=0) {
max=0;
for(i=1;i<=n;i++) {
scanf("%d %d %d",&p,&d1,&d2);
d=d1+d2;
if(d > max) {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_153865/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_153865/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n;
scanf("%d",&n);
n=1110-n;
printf("%d",n);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_153973/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_153973/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
//Atcoder-Begginer-Contest
//2018/10/1
//A
#include<stdio.h>
int main(void)
{
int s;
int a;
scanf("%d",&s);
if(s%10==1){
a = 9;
}
else{
a = 1;
}
if(((s/10)%10)==1){
a += 90;
}
else{
a += 10;
}
if((s/100)==1){
a += 900;
}
else{
a += 100;
}
printf("%d\n",a);
ret... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_154101/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_154101/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 = 0 ,a100 = 0,a10 = 0,a1 = 0;
scanf("%d", &n);
a100 = n/100;
a10 = (n%100)/10;
a1 = n%10;
if(a100 == 1){
a100 = 9;
}else if(a100 == 9){
a100 = 1;
}
if(a10 == 1){
a10 = 9;
}else if(a10 == 9){
a10 = 1;
}
if(a1 == 1){
a1... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_154152/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_154152/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n[3];
scanf("%s", n);
int i;
for(i=0;i<3;i++){
if(n[i] == '1') n[i] = '9';
else if(n[i] == '9') n[i] = '1';
}
printf("%s\n", n);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_154196/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_154196/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
void change(int a[5][5], int x, int y, int k)
{
int i = 0, j;
if (k % 2 != 0)
{
a[x + 1][y] = (a[x + 1][y] == 0) ? 1 : 0;
a[x][y + 1] = (a[x][y + 1] == 0) ? 1 : 0;
a[x - 1][y] = (a[x - 1][y] == 0) ? 1 : 0;
a[x][y - 1] = (a[x][y - 1] == 0... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_15429/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_15429/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main(void){
int h[26];
char m,c='a';
for(int a=0;a<26;a++)h[a]=0;
while(scanf("%c",&m)!=EOF){
if((m>='A'&&m<='Z')||(m>='a'&&m<='z')){
if(m>='A'&&m<='Z')m-='A';
if(m>='a'&&m<='z')m-='a';
h[m]++;
}
}
for(int b=0;b<26;b++){
printf("%c : %d\n",c+b,h[b]);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_154332/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_154332/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int counter[26]={0};
char ch;
while(scanf("%c",&ch)!=EOF){
if(ch==EOF) break;
int num=ch-'a';
if(0<=num && num<26){
counter[num]++;
}else if(-32<=num && num<-6){
counter[num+32]++;
}
// printf("%c %d\n",ch,ch);
}
for(i=0;i<26;i++){
printf("%c : %d\n... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_154376/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_154376/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(){
int i, cnt[26] = {0};
char c;
while ((c = getchar()) != EOF) {
c = tolower(c);
cnt[c - 'a']++;
}
for(i = 0; i < 26; i++) {
printf("%c : %d\n", 'a' + i, cnt[i]);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_154426/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_154426/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 arr[3][3] = {{1,1,1},{1,1,1},{1,1,1}};
int mat[3][3];
int i,j;
for(i=0;i<3;i++)
for(j=0;j<3;j++)
scanf("%d",&mat[i][j]);
for(i=0;i<3;i++)
for(j=0;j<3;j++)
{
int f = 1;
int v = mat[i][j];
if... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_15447/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_15447/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 a[3][3],b[3][3];
int main()
{
int i,j,k,l;
for(i=0;i<3;i++)
for(j=0;j<3;j++){
b[i][j]=1;
scanf("%d",&a[i][j]);
}
for(i=0;i<3;i++){
for(j=0;j<3;j++)
{
b[i][j]+=a[i][j];
if(i+1<=2)
b[i+1][j]+... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_15452/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_15452/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@b = dso_local local_unnamed_... |
//ITP1_8_C
#include <stdio.h>
#include <stdlib.h>
#define num 20
int main(){
int i;
int alp[26];
int p,q;
char r;
for(i=0;i<26;i++){alp[i]=0;}
while(scanf(" %c",&r)!=EOF){
p=r;
if(('A'<=p)&&(p<='z')){
if(p-'A'<26){alp[p-'A']++;}
if(p-'A'>26){alp[p-'a']++;}
}
}
for(i=0;i<26;i++){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_154563/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_154563/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 buf[1200];
char c;
int i;
int answer[26];
memset(answer, 0, sizeof(answer));
while(fgets(buf, sizeof(buf), stdin) != NULL) {
for(i = 0; buf[i] != '\0'; i++) {
if(buf[i] >= 'A' && buf[i] <= 'Z')
buf[i] = buf[i] + 'a' - 'A';
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_154606/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_154606/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = external local_unn... |
#include <stdio.h>
int main(void) {
int a,b,c,n,t,i,j,k,l;
scanf("%d",&t);
//printf("%d",t);
for(i=0;i<t;i++)
{
k=1;
scanf("%d %d %d %d",&a,&b,&c,&n);
int sum=a+b+c+n;
if(sum%3!=0) k=0;
if(sum<3*a) k=0;
if(sum<3*b) k=0;
if(sum<3*c) k=0;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_15465/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_15465/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 argc, const char *argv[])
{
int num,i;
char ch;
int count[26];
char s[26] = {'a','b','c','d','e','f','g','h','i','j','k','l','m',
'n','o','p','q','r','s','t','u','v','w','x','y','z'};
for(i=0;i<26;i++){ //カウントの初期化
count[i]=0;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_154693/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_154693/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int counter[26];
int i;
for (i=0;i<26;i++){
counter[i]=0;
}
while (scanf("%c",&ch)!=EOF){
if (isalpha(ch)){
int num=tolower(ch)-'a';
counter[num]++;
}
}
for (i=0;i<26;i++){
printf("%c : %d\n",i+'a',counter[i]);
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_154736/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_154736/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a[26];
int main() {
for (char c = getchar(); c != EOF; c = getchar()) {
if (c >= 'A' && c <= 'Z') {
c -= 'A' - 'a';
}
if (c >= 'a' && c <= 'z') {
a[c - 'a']++;
}
}
for (int i = 0; i < 26; i++) {
printf("%c : %d\n", 'a' + ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_154787/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_154787/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@a = dso_local local_unname... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define N 1000
#define X 1000
#define Y 1000
int xx[N], yy[N];
int compare(const void *a, const void *b) {
int i = *(int *) a;
int j = *(int *) b;
return xx[i] != xx[j] ? xx[i] - xx[j] : yy[i] - yy[j];
}
int main() {
int t;
scanf("%d", &t);
while (t... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_15483/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_15483/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@xx = dso_local global [1000 ... |
#include <stdio.h>
#include <string.h>
#include <ctype.h>
int main(int argc, char *argv[])
{
int ch;
int c[100] = { 0 };
while ((ch = getchar()) != EOF) {
if (isalpha(ch)) {
c[tolower(ch) - 'a']++;
}
}
for (int i = 0; i < 26; i++) {
printf("%c : %d\n", 'a' + i,... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_154873/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_154873/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,e;
static int n[26];
char st,al[53] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
do{
e = scanf("%c", &st);
for(i=0;i<52;i++)
if(al[i] == st){
n[ i%26 ]++;
}
}while(e != EOF);
for(i=0;i<26;i++)
printf("%c : %d\n... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_154916/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_154916/source.c"
target datalayout = "e-m:e-p270: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.n = internal unnamed_... |
#include<stdio.h>
int main()
{
int i, j, a, b, c, n, l, t;
scanf("%d", &t);
for(i = 0; i < t; i++)
{
scanf("%d %d %d %d", &a, &b, &c, &n);
if((a + b + c + n) % 3 ==0)
{
l = (a + b + c + n) / 3;
if(a > l || b > l || c > l)
printf("NO\n");
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_15496/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_15496/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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;
int count[26]={0};
char str;
while(scanf("%c",&str)!=EOF){
if(str>='a' && str<='z'){
count[str-'a']++;
}else if(str>='A' && str<='Z'){
count[str-'A']++;
}
}
for(i=0;i<26;i++){
printf("%c : %d\n",'a'+i,count[i]);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_155001/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_155001/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int n;
int L[101];
scanf("%d",&n);
int max =0,sum=0;
for(int i=0;i<n;i++){
scanf("%d",&L[i]);
sum+=L[i];
if(max < L[i]){
max = L[i];
}
}
if(max < (sum-max)){
printf("Yes");
}else{
printf("No");
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_155052/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_155052/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 bubbleSort(int numbers[], int array_size);
int main(void){
int i, n;
int line[100] = {0};
int sum = 0;
scanf("%d", &n);
for(i = 0; i < n; i++){
scanf("%d", &line[i]);
}
bubbleSort(line, n);
for(i = 1; i < n; i++){
sum += line[i];
}
if... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_155102/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_155102/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int i, j;
int N; scanf("%d", &N);
int L[10] = {};
int max_index = 0;
int max = 0;
int total = 0;
for(i = 0; i < N; i++){
scanf("%d", &L[i]);
if(max < L[i]){
max = L[i];
max_index = i;
}
}
for(j = 0; j < N; j++){
if(j != max_index){
t... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_155146/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_155146/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
int t,a,b,c,n,k,i;
scanf("%d",&t);
for(i=0;i<t;i++){
scanf("%d %d %d %d",&a,&b,&c,&n);
k=n+a+c-2*b;
if(k%3==0 && k/3>=0 &&b-a+k/3>=0 && b-c+k/3>=0)
printf("YES\n");
else
printf("NO\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_15519/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_15519/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 t;
scanf("%d",&t);
while(t--){
int a,b,c,n;
scanf("%d %d %d %d",&a,&b,&c,&n);
int sum=a+b+c+n;
if(sum%3==0){
int d=sum/3;
if(a<=d&&b<=d&&c<=d){
printf("YES\n");
}
else{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_15524/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_15524/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
int main() {
int index, N, L[100];
int len_sum = 0;
int len_max = 0;
scanf("%d", &N);
for (index = 0; index < N; ++index)
{
scanf("%d", &L[index]);
len_sum += L[index];
if (L[index] > len_max) len_max = L[index];
}
if (l... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_155283/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_155283/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a, b, c, d, X, Y;
// double c;
int A[103]={};
int flag[103]={};
// long long a, b, c, d, X, Y;
//char s[101][101]={};
// int N, M;
// int A[1000000001]={};
// long long C[101]={};
int i,j,k;
// int fla... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_155326/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_155326/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
int T;
int n;
int a, b, c;
char F;
scanf("%d", &T);
while (T--)
{
scanf("%d", &n);
F = 1;
for (a = 0; 3 * a <= n; a++)
{
for (b = 0; 5 * b <= n; b++)
{
for (c = 0; 7 * c <= n; c++)
{
if (3 * a + 5 * b + 7 * c == n)
{
F = 0;
break;
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_15537/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_15537/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
int power(int i){
int a;
for(a=1;a<=i;a++){
if(a*a==i){
return 1;
}
else if(a*a*a==i){
return 1;
}
else if(a*a*a*a==i){
return 1;
}
else if(a*a*a*a... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_155412/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_155412/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x,sq,po,i,max;
max=0;
scanf("%d",&x);
for(i=1; i*i<=x; i++){
sq=i*i;
po=0;
if(sq*i<=x){
po=sq;
while(po*i<=x && i!=1){
po*=i;
}
}
if(max<sq)
max=sq;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_155456/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_155456/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <math.h>
int main(){
int X,sq,max=0;
scanf("%d",&X);
for(int i=1;i<=sqrt(X);i++){
for(int k=1;k<10;k++){
sq=1;
for(int n=1;n<=k;n++){
if(sq*i>X)break;
sq=sq*i;
}
if(sq>max)max=sq;
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_155542/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_155542/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int i,j,rear,a,b,co;
while(scanf("%d %d",&n,&m),n||m){
int f[501];
char c[501]={0};
char r[501][501]={0};
rear=0;
for(i=0;i<m;i++){
scanf("%d %d",&a,&b);
if(a==1){
f[rear++]=b;
c[b]=1;
}
else{
r[a][b]=1;
r[b][a]=1;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_155586/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_155586/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,n,k,i,j,a[10001][2],m[501];
while(scanf("%d%d",&n,&k),n!=0&&k!=0){
for(i=0;i<n;i++)m[i]=0;
for(i=0;i<k;i++){
scanf("%d%d",&a[i][0],&a[i][1]);
if(a[i][0]==1)m[a[i][1]-1]=1;
}
for(i=0;i<n;i++){
if(m[i]==1){
for(j=1;j<k;j++){
if(m[a[j][0]-1]==1&&m[a[j][1]-1]=... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_155636/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_155636/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
#define n 6
int main() {
int l[6], sum = 0, yes = 0;
for(int i = 0; i < n; i++){
scanf("%d", &l[i]);
sum += l[i];
}
for(int i = 0; i < n; i++)
for(int j = i + 1; j < n; j++)
for(int k... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_15568/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_15568/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
int main(void){
int N,i,j,k,l,h;
long x[200005],y[200005],B,b[200002],buff;
char str[2500000],*p;
fgets(str,sizeof(str),stdin);
N=atoi(str);
fgets(str,sizeof(str),stdin);
p=strtok(str," \n");
x[1]=atoi(p);
for(i=2;i<N+1;i++){
p=strto... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_155722/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_155722/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = external local_unn... |
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
typedef long long int int64;
#define MAX(a,b) ((a)>(b)?(a):(b))
#define MIN(a,b) ((a)<(b)?(a):(b))
#define ABS(a) ((a)>(0)?(a):-(a))
void msort(int *a,int n,int *tmp){
if(n<=1) return;
int m=n/2;
msort(a,m,tmp);
msort(a+m,n-m,tmp);
int i=0;
int j=m;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_155766/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_155766/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 A,B,C,X[105][105],Y[105][105],i,j,k;
long long t;
int main()
{
scanf("%d%d%d",&A,&B,&C);
for(i=0;i<A;i++)
for(j=0;j<B;j++)
scanf("%d",&X[i][j]);
for(i=0;i<B;i++)
for(j=0;j<C;j++)
scanf("%d",&Y[i][j]);
for(i=0;i<A;i++)
{
for(j=0;j<C;j++)
{
for(k=t=0;k<B;k++)
t+=X[i][k]*Y[k... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_155809/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_155809/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 SIZE 101
int main(void)
{
int n, m, l;
int A[SIZE][SIZE];
int B[SIZE][SIZE];
int i, j, k;
double c;
scanf("%d %d %d", &n, &m, &l);
for(i=1; i <= n; i++){
for(j = 1; j <= m; j++){
scanf("%d ", &A[i][j]);
}
}
for(i=1; i <= m; i++){
for(j = 1; j <= l; j++){... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_155852/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_155852/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
// 1_7_B
#include<stdio.h>
int main(){
int n, m, l, i, j, k;
scanf("%d %d %d", &n, &m, &l);
int mtrxA[n][m];
int mtrxB[m][l];
long long int result[n][l];
for(i = 0; i < n; i++){
for(j = 0; j < m; j++){
scanf("%d", &mtrxA[i][j]);
}
}
for(j = 0; j < m; j++){
for(k = 0; k < l; k++){
scanf("%d", &mt... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_155896/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_155896/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, const char * argv[])
{
int n,m,l;
int i,j,k;
double a[100][100]={0};
double b[100][100]={0};
double c[100][100]={0};
scanf(" %d %d %d",&n,&m,&l);
for(i=0;i<n;i++){
for(j=0;j<m;j++){
scanf("%lf",&a[i][j]);
}
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_155939/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_155939/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, m, l;
int i, j, k;
int a[100][100], b[100][100];
long long int c[100][100]={};
scanf("%d %d %d", &n, &m, &l);
for(i=0; i<n; i++){
for(j=0; j<m; j++){
scanf("%d", &a[i][j]);
}
}
for(i=0; i<m; i++){
f... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_155982/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_155982/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,l,i,j,k;
long c[100][100]={0};
scanf("%d %d %d",&n,&m,&l);
int A[n][m],b[m][l];
for(i=0;i<n;i++){
for(j=0;j<m;j++){
scanf("%d",&A[i][j]);
}
}
for(j=0;j<m;j++){
for(k=0;k<l;k++){
scanf("%d",&b[j][k]);} }
for(i=0;i<n;i++){
for(j=0;j<m;j++){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_156024/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_156024/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include <stdlib.h>
int main(){
int n,m,j,b,ai,l;
unsigned long long int a[101][101], gh[101][101],ans[101][101];
scanf("%d %d %d",&n,&m,&l);
for(j=0;j<101;j++){
for(b=0;b<101;b++){
ans[j][b]=0;
a[j][b]=0;
gh[j][b]=0;
}
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_156068/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_156068/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 MATRIX_MAX 101
#define LOOP_RESET 0
#define MATRIX_RESET 0
#define RETURN 0
int main(){
unsigned long ulW_D_inact[MATRIX_MAX][MATRIX_MAX]; /* 行列Aの格納用配列 */
unsigned long ulW_D_act[MATRIX_MAX][MATRIX_MAX]; /* 行列Bの格納用配列 */
unsigned long ulW_D_ans[MATRIX_MAX][MATRIX_MAX]; /* 積の格納用変数 */
un... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_156118/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_156118/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 m, n, l;
int A[110][110], B[110][110];
long long C[110][110]={0};
int i, j, k;
scanf("%d %d %d\n", &m, &n, &l);
for(i=1; i<=m; i++) {
for(j=1; j<=n; j++) {
scanf("%d", &A[i][j]);
}
}
for(i=1; i<=n; i++) {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_156161/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_156161/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
//======================================================================
// Contents : AOJ ITP1_7_D
// n×m の行列 A と m×l の行列 B を入力し、
// それらの積 n×l の行列 C を出力
// Input : n、m、l
// n×m の行列 A の要素、 m×l の行列 B の要素
// Output : n×l の行列 C の要素
// Constraints : 1 ≤ n,m,l ≤ 100
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_156204/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_156204/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, l;
scanf("%d %d %d", &n, &m, &l);
int a[n][m], b[m][l];
long long c[n][l];
for (int i = 0; i < n; i++)
{
for (int j = 0; j < m; j++)
{
scanf("%d", &a[i][j]);
}
}
for (int i = 0; i < m; i++)
{
for (i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_156255/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_156255/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 i,j,k,n,m,l,a[110][110],b[110][110];
long long int ans=0;
scanf("%ld %ld %ld\n",&n,&m,&l);
for(i=0;i<n;i++){
for(j=0;j<m;j++){
scanf("%ld",&a[i][j]);
}
scanf("\n");
}
for(i=0;i<m;i++){
for(j=0;j<l;j++){
scanf("%ld",&b[i][j]);
}
scanf("\n");
}
for(i=0;i<n;i++){
for(j=0;j<l;j++){
f... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_156305/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_156305/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 i,j,k,n,m,l,a,b,c;
long long A[101][101] = {0};
long long B[101][101] = {0};
long long C[101][101] = {0};
scanf("%lld %lld %lld",&n,&m,&l);
for(j=0; j<n; j++) {
for(i=0; i<m; i++) {
scanf("%lld", &a);
A[j][i] = a;
}
}
for(j=... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_156356/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_156356/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
long long a,b,c;
while(n--){
scanf("%I64d%I64d%I64d",&a,&b,&c);
printf("%I64d\n",(a+b+c)/2);
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_1564/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_1564/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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<stdlib.h>
long long map[100005]={};
int main()
{
long long ans=0,n,a,b;
scanf("%lld %lld %lld",&n,&a,&b);
for(int i=1;i<=n;i++)
scanf("%lld",&map[i]);
for(int i=1;i<n;i++){
if((map[i+1]-map[i])*a<b) ans+=(map[i+1]-map[i])*a;
else ans+=b;
}
printf("%lld\n",ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_156486/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_156486/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@map = dso_local global [10... |
#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++)
ll pom(ll a,ll n,int m){ll x=1;for(a%=m;n;n/=2)n&1?x=x*a%m:0,a=a*a%m;return x;}
#define invp(a,p)pom(a,p-2,p)
//非再帰fft
void fft(ll*f,int n,ll g){
ll p=7*(1<<26)+1;
ll*x=f,*y=(ll*)malloc(n*sizeof(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_156529/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_156529/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 MAX(a,b) (a > b ? a : b)
#define MIN(a,b) (a < b ? a : b)
const int inf = 1000000000; // 10^9
int main(){
int d,n;scanf("%d %d",&d,&n);
if(d==0){
if(n==100)printf("%d",101);
else printf("%d",n);
}
else if(d==1... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_156572/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_156572/source.c"
target datalayout = "e-m:e-p270: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<stdlib.h>
#include<string.h>
#include<limits.h>
int pw(int n) {
if(n==0) {
return 1;
}
int i;
int ans = 1;
for(i=0; i<n; i++) {
ans *= 100;
}
return ans;
}
int main(void){
int D, N;
scanf("%d %d", &D, &N);
if(N == 100) {
N += 1... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_156615/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_156615/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,n;
scanf("%d %d",&d,&n);
int i;
int a=1;
for(i=0;i<d;i++){
a*=100;
}
if(n!=100){
printf("%d\n",a*n);
}else{
printf("%d\n",a*(n+1));
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_156666/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_156666/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,n;
scanf("%d %d",&d,&n);
if(n == 100)n=101;
switch(d){
case 0:
printf("%d\n",n);
break;
case 1:
printf("%d\n",n*100);
break;
case 2:
printf("%d\n",n*10000);
break;
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_156716/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_156716/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int i;
int a,b;
int num;
int sum = 0;
scanf("%d %d",&a,&b);
for (i = a; i <= b; i++){
num = i;
while (num){
switch(num%10){
case 0:
sum += 6;
break;
case 1:
sum+= 2;
break;
case 2:
sum += 5;
break;
case 3:
sum += 5;
break;
case 4:
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_15676/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_15676/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
int main(void) {
int d, n;
scanf("%d %d", &d, &n);
if (d == 0 && n == 100)
printf("101\n");
else if (d == 1 && n == 100)
printf("10100\n");
else if (d == 2 && n == 100)
printf("1010000\n");
else
printf("%d\n", (int)pow(100, d) * n);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_156802/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_156802/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 dp[50][3001];
int main(){
int n,m,s;
int i,j,k;
while(1){
scanf("%d %d %d",&n,&m,&s);
if(n==0)return 0;
for(i=0;i<=n*n;i++)for(j=0;j<=s;j++)dp[i][j]=0;
dp[0][0]=1;
for(i=1;i<=m;i++){
for(j=s;j>=0;j--){
if(j+i<=s){
for(k=0;k<n*n;k++){
dp[k+1][j+i]=(dp[k+1][j+i]+dp[k][j])%10000... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_156860/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_156860/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 b = 'A',c1,c2;
while(scanf("%c,%c",&c1,&c2)!=EOF){
if(c1==b)
b = c2;
else if(c2==b)
b = c1;
}
printf("%c\n",b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_156910/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_156910/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 l='A',c1,c2;
while(scanf("%c,%c",&c1,&c2)!=EOF){
if(c1==l)l=c2;
else if(c2==l)l=c1;
}
printf("%c\n",l);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_156976/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_156976/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 cup = 'A';
char a, b;
while (scanf("%c,%c", &a, &b) != EOF) {
if (a == cup) {
cup = b;
}
else if (b == cup) {
cup = a;
}
}
printf("%c\n", cup);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157047/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157047/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/**
* We'll, once again, tackle this using DP. Let P(n, k) be the probability
* that, among the first n coins tossed, there are k heads. Then on the nth
* coin toss, we have two possibilities: either the nth coin comes up heads,
* in which case we will have k heads if the previous n-1 coins yielded k-1
* heads, ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157090/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157090/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 b;
scanf("%c",&b);
if (b =='A') printf("T");
else if (b == 'T') printf("A");
else if (b == 'C') printf("G");
else printf("C");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157140/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157140/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
if(c == 'A'){
printf("T\n");
}
if(c == 'T'){
printf("A\n");
}
if(c == 'C'){
printf("G\n");
}
if(c == 'G'){
printf("C\n");
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157191/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157191/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 base;
scanf("%c", &base);
if(base == 'A'){
printf("T");
}else if(base == 'T'){
printf("A");
}else if(base == 'G'){
printf("C");
}else if(base == 'C'){
printf("G");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157234/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157234/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%s",&a);
if(a=='A')
printf("T");
else if(a=='C')
printf("G");
else if(a=='G')
printf("C");
else
printf("A");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157292/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157292/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%c",&a);
if (a=='A') printf("T\n");
else if (a=='C') printf("G\n");
else if (a=='G') printf("C\n");
else if (a=='T') printf("A\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157342/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157342/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[2];
scanf("%s", s);
if (s[0] == 'A')puts("T");
if (s[0] == 'T')puts("A");
if (s[0] == 'C')puts("G");
if (s[0] == 'G')puts("C");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157386/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157386/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#include <time.h>
#define _CRT_SECURE_NO_WARNINGS
#define TLong long long
// fact(n)
int fact(int n){
if(n == 1) return 1;
else return (n * fact(n - 1));
}
// combination(n,r)
int combination(int n, int r){
if(r == 0 || r == n) return 1... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157429/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157429/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%c",&a);
if(a=='A')
printf("T");
else if(a=='T')
printf("A");
else if(a=='G')
printf("C");
else
printf("G");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157472/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157472/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[1];
scanf("%s",s);
if(s[0]=='A') printf("T\n");
if(s[0]=='T') printf("A\n");
if(s[0]=='C') printf("G\n");
if(s[0]=='G') printf("C\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157515/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157515/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <stdbool.h>
typedef long long LL;
typedef long double Lf;
#define in (void)scanf
#define Rep(i,a,n)for(int i=(int)(a);i<(int)(n);i++)
//#define Rep(i,a,n)for(LL i=(LL)(a);i<(LL)(n);i++)
#define rep(i,n)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157566/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157566/source.c"
target datalayout = "e-m:e-p270: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.fac = type { i64, i... |
#include<stdio.h>
#include<string.h>
int main()
{
char s[101],t[101];
char u;
int n,m;
int i,j;
int a=0;
scanf("%s",s);
scanf("%s",t);
n=strlen(s);
m=strlen(t);
for (i=0;i<n;i++){
for (j=i+1;j<n;j++){
if(s[i]>s[j]){
u=s[i];
s[i]=s[j];
s[j]=u;
}
}
}
fo... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157609/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157609/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[110],t[110],tmp_s,tmp_t;
int len_s,len_t;
scanf("%s%s",s,t);
len_s=(int)strlen(s);
len_t=(int)strlen(t);
for(int i=0;i<len_s-1;i++){
for(int j=i+1;j<len_s;j++){
if(s[i]>s[j]){
tmp_s=s[j];
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157652/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157652/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
int compare_int(const void *a, const void *b){return (int)(*(char*)a - *(char*)b);}
int compare_int_re(const void *a, const void *b){return (int)(-*(char*)a + *(char*)b);}
int main(void){
char s[101],t[101];
scanf("%s",&s);
scanf("%s",&t);
int x=strlen(s... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157696/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157696/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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_157753/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157753/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int N, K;
int A[1000000];
int main(void) {
int i;
int asumisu, mizuhasu;
if (scanf("%d%d", &N, &K) != 2) return 1;
for (i = 0; i < N; i++) {
if (scanf("%d", &A[i]) != 1) return 1;
}
asumisu = N - K;
mizuhasu = K - 1;
printf("%d\n", (asumisu + mizuhasu - 1) / mizuhasu + 1); /* +1 : 最初 */
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157797/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157797/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <stdlib.h>
long long int min (long long int a, long long int b){
if (a > b)
return b;
else
return a;
}
int main(void){
long long int x1,y1,x2,y2,x,y,dx,dy,d,absv1,absv2;
scanf("%lld %lld",&x1,&y1);
scanf("%lld %lld",&x2,&y2);
absv1 = llabs(x1 - x2);
absv2 = l... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_15784/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_15784/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 <stdbool.h>
#include <string.h>
#include <math.h>
#include <limits.h>
#define Max(a, b) ((a) > (b) ? (a) : (b))
#define Min(a, b) ((a) > (b) ? (b) : (a))
#define abs(x) ((x) > 0 ? (x) : -(x))
#define MOD 1000000007 //10^9 + 7
#define endl printf("\n")
typedef long long ll... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157883/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157883/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <stdbool.h>
int find_max(int n[4][4]);
bool check(int a1, int a2, int a3, int n[4][4]);
int main()
{
int grid[4][4]; /* 0は使わない */
int max;
for (int i = 1; i < 4; i++)
{
scanf("%d", &grid[i][1]);
scanf("%d", &grid[i][2]);
scanf("%d", &grid[i][3]);
}
max = find... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157926/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157926/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void){
int c[3][3],i,j;
char str[100],*p;
for(i=0;i<3;i++){
fgets(str,sizeof(str),stdin);
p=strtok(str," \n");
c[i][0]=atoi(p);
for(j=1;j<3;j++){
p=strtok(NULL," \n");
c[i][j]=atoi(p);
}
}
for(i=0;i<2;i++){
for(j... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157977/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157977/source.c"
target datalayout = "e-m:e-p270: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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.