Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include<stdio.h>
int main(void){
int N=0;
int ans=0;
scanf("%d",&N);
ans=180+(N-3)*180;
printf("%d\n",ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_303551/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_303551/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 256
#define MAX(A,B) \
( (A) > (B) ? (A) : (B) )
char d[ N ][ N ];
int n;
static
int scan (
int x,
int y,
int sx,
int sy,
int res
)
{
int c;
for ( c = 0; x >= 0 && y >= 0
&& x < n && y < n;
x += sx, y += sy )
{
if ( d[ x ][ y ] == '0' )
{... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_303595/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_303595/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#ifdef __cplusplus
#include <iostream>
#include <iomanip>
#include <vector>
#include <string>
#include <algorithm>
using namespace std;
#else
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#endif
#define rep(i,n) for(int i = 0; i < (n); ++i)
#define BIG_PRIME 1000000007
#define BP_remai... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_303652/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_303652/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 int_compare(const int* a, const int* b)
{
if (*a < *b) {
return 1;
}
if (*a > *b) {
return -1;
}
return 0;
}
int main(void)
{
int n;
scanf("%d", &n);
int a[n];
int sorted[n];
for (int i = 0; i < n; i++) {
scanf... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_303696/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_303696/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a[n],r1=0,max,sec,i;
for(i=0;i<n;i++){
scanf("%d", &a[i]);
if(a[r1]<a[i]){
r1=i;
}
}
max=a[r1];
a[r1]=0;
int r2=0;
for(i=0;i<n;i++){
if(a[r2]<a[i]){
r2=i;
}
}
sec=a[r2];
for(i=0;i<n;i++){
if(i==r1){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_303746/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_303746/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d", &t);
while (t--)
{
int n;
scanf("%d", &n);
int arr[n];
for (int i = 0; i < n; i++)
{
scanf("%d", &arr[i]);
}
int sum = 0;
for (int i = 0; i < n; i++)
{
sum += arr[i];
}
if (... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_30379/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_30379/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
void calc(long long int n)
{
long long int temp = 0;
long long int s = 0;
for (int p = 0; p < n; p++)
{
scanf("%lld", &temp);
s += temp;
}
if (s==n)
{
printf("0\n");
}
else if(s ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_30384/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_30384/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main(){
int n,a,b=0,c=0,i,mi;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&a);
if(a>b){
b=a;
if(a>c){
mi=i;
b=c;
c=a;
}
}
}
for(i=0;i<n;i++)printf("%d\n",i==mi?b:c);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_303883/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_303883/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
// AOJ DPL_2_A Traveling Salesman Problem
// 2018.5.5 bal4u
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#if 1
#define gc() getchar_unlocked()
#else
#define gc() getchar()
#endif
int in()
{
int n = 0, c = gc();
do n = 10*n + (c & 0xf), c = gc(); while (c >= '0');
return n;
}
#define INF 0x03030303
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_303926/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_303926/source.c"
target datalayout = "e-m:e-p270: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>
#include<stdlib.h>
int main(){
int t;
scanf("%d",&t);
while(t--){
long long n;
scanf("%lld",&n);
long long a[n];
long long sum=0;
for(int i=0;i<n;i++){
scanf("%lld",&a[i]);
sum=sum+a[i];
}
if(sum==n){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_30397/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_30397/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
int main ()
{
int n,x,tmp,i,j=0;
int count = 1;
int d[110];
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d",&d[i]);
}
while(1)
{
int max = 0;
for(i=j;i<n;i++)
{
if(max<d[i])
{
max = d[i];
x = i;
}
}
tmp = d[j];
d[j] = d[... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_304011/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_304011/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
int compare(const void *a, const void *b) {
return *(int*)a - *(int*)b;
}
int main(void) {
int n, d[100], count = 0;
scanf("%d", &n);
for(int i = 0; i < n; i++) {
scanf("%d", &d[i]);
}
qsort(d, n, 4, compare);
for(int i = 0; i < n-1; i++) {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_304055/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_304055/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, ans, i;
int d;
char D[101];
int main(){
scanf("%d", &n);
for(i=0; i<n; i++){
scanf("%d", &d);
D[d]=1;
}
for(i=0; i<=100; i++){
if(D[i]){ans++;}
}
printf("%d\n", ans);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_304099/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_304099/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
int compare(const void *a,const void *b){
return *(int*)a-*(int*)b;
}
int main(){
int n,x,r=1,t;
int arr[999];
scanf("%d",&n);
for(x=0;x<n;x++)scanf("%d",arr+x);
qsort(arr,n,4,compare);
t=arr[0];
for(x=1;x<n;x++){
if(t!=arr[x]){
t=arr[x];
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_304141/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_304141/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void) {
int N;
int i, d[100], c = 0;
int m, n, tmp = 0;
scanf("%d", &N);
for (i = 0; i < N; i++) {
scanf("%d", &d[i]);
}
for (m = 0; m < N; m++) {
for (n = m + 1; n < N; n++) {
if (d[m] > d[n]) {
tmp = d[m];
d[m] = d[n];
d[n] = tmp;
}
}
}
for (i = 0; i < N - ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_304185/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_304185/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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=0,b=0,c=0,tem,i;
for(i=0;i<10;i++){
scanf("%d",&tem);
if(tem>=a){
c=b;b=a;a=tem;
}
else if(tem>=b){
c=b;b=tem;
}
else if(tem>=c){
c=tem;
}
}
printf("%d\n%d\n%d\n",a,b,c);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_304235/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_304235/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, j;
int m[10];
int t;
for (i = 0; i < 10; i++){
scanf("%d", &m[i]);
}
for (i = 0; i < 10; i++){
for (j = 10 - 1; j > i; j--){
if (m[j - 1] < m[j]){
t = m[j];
m[j] = m[j - 1];
m[j - 1] = t;
}
}
}
for (i = 0; i < 3; i++){
printf("%d\n", m[... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_304279/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_304279/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 10
void swap(int *a , int *b) {
int tmp;
tmp = *a;
*a = *b;
*b = tmp;
}
void sort(int ary[N]) {
int i , s;
for(i = 0; i < N - 1; i++) {
for(s = i + 1; s < N; s++) {
if (ary[i] < ary[s]) {
swap(&ary[i] , &ary[s]);
}
}
}
}
int main () {
int heights[N];
int i;
for(i =... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_304329/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_304329/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 NUM 10
int main(void)
{
int n[NUM];
int h1,h2,h3,t;
int i;
scanf("%d",&h1);
scanf("%d",&t);
if(t>=h1){
h2 = h1;
h1 = t;
}
else h2 = t;
scanf("%d",&t);
if(t>=h1){
h3 = h2;
h2 = h1;
h1 = t;
}
else if(t>=h2){
h3 = h2;
h2 = t;
}
else h3=t;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_304372/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_304372/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 num[10];
int tmp=0;
int count,counta,countb,countc;
for(count=0;count<10;count++){
scanf("%d",&num[count]);
}
for(counta=0;counta<10;counta++){
for(countb=counta+1;countb<10;countb++){
if(num[counta]<num[countb]){
tmp = num[counta];
num[counta] = num[countb];
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_304415/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_304415/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 h[100],max,hn;
for(i=0;i<10;i++)scanf("%d",&h[i]);
for(i=0;i<10;i++){
for(j=9;j>0;j--){
if(h[j]>h[j-1]){
hn=h[j-1];
h[j-1]=h[j];
h[j]=hn;
}
}
}
printf("%d\n%d\n%d\n",h[0],h[1],h[2]);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_304459/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_304459/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 h[100000],x,temp;
int i,k,j;
for(i=1;i<=10;i++)
{
scanf("%lld",&h[i]);
}
for(j=1;j<=3;j++)
{
x=h[j];
temp =0;
for(k=j+1;k<=10;k++)
{
if(h[k]>x)
{
temp=x;
x=... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_304501/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_304501/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,k,tmp,m[10];
for(k=0;k<10;k++){
scanf("%d",&m[k]);
}
for(i=0;i<10;++i){
for(j=i+1;j<10;++j){
if(m[i]<m[j]){
tmp=m[i];
m[i]=m[j];
m[j]=tmp;
}
}
}
for(i=0;i<3;i++){
printf("%d\n",m[i]);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_304552/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_304552/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ShowData(int x[], int n);
void Swap(int x[], int i, int j);
void QSort(int x[], int left, int right);
void Input(int x[], int n);
int main()
{
int hight[10] = {0};
int i;
Input(hight, 10);
QSort(hight, 0, 9);
for (i = 9; i >= 7; i--) {
printf("%d\n", hight[i]);
}
return 0;
}
// ??... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_304602/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_304602/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[10],i,max[3]={0},n,j;
for(i=0;i<10;i++)
scanf("%d",&a[i]);
for(j=0;j<3;j++){
for(i=0;i<10;i++)
{
if(a[i]>max[j]) {max[j] = a[i]; n = i;}
}
a[n]= 0;
}
for(j=0;j<3;j++)
printf("%d\n",max[j]);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_304653/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_304653/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 mountain[10];
int buf;
int i;
for(i = 0; i < 10; i++){
scanf("%d", &mountain[i]);
}
int flag = 0;
do{
flag = 0;
for(i = 0; i < 9; i++){
if(mountain[i] < mountain[i + 1]){
buf = mountain[i];
mountain[i] = mountain[i + 1];
mountain[i + 1] = bu... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_304697/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_304697/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 Max 100
int main(void){
int i, j, a, temp;
int mo[Max];
for(i=0;i<10;i++)
{
scanf("%d",&a);
mo[i] = a;
}
for(i=0;i<10;i++)
{
for(j=i+1;j<10;j++)
{
if(mo[i]<=mo[j])
{
temp = mo[i];
mo[i] = mo[j];
mo[j] = temp;
}
}
}
for(i=0;i<3;i++)
{
printf("%d\n",... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_304747/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_304747/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 NUM 10
void bsort(int a[], int n){
int i,j;
for(i = 0; i < n - 1; i++){
for(j = 0; j < n - 1 - i; j++){
if(a[j + 1] > a[j]){
int temp = a[j];
a[j] = a[j + 1];
a[j + 1] = temp;
}
}
}
}
int main(void){
int hills[NUM];
int i;
for(i = 0; i < NUM; i++){
scan... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_304798/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_304798/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, i;
int h1 = 0, h2 = 0, h3 = 0;
for(i = 0; i < 10 ; i++){
scanf("%d", &h);
if(h <= h3){
}
else if(h3 < h && h <= h2){
h3 = h;
}
else if(h2 < h && h <= h1){
h3 = h2;
h2 = h;
}
else{
h3 = h2;
h2 = h1;
h1 = h;
}
}
printf("%d\n%... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_304848/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_304848/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
void paixu(int a[],int n)
{
int i,k,t;
for(i=1;i<n;i++){
t=a[i];k=i-1;
while(t>a[k]){
a[k+1]=a[k];k--;
if(k==-1)break;
}
a[k+1]=t;
}
}
int main()
{
int i,a[10];
for(i=0;i<10;i++)
scanf("%d",&a[i]);... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_304891/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_304891/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
// AOJ Volume 0 Problem 0001
#include <stdio.h>
int main(void)
{
int i;
int height;
int height_1st, height_2nd, height_3rd;
height_1st = height_2nd = height_3rd = 0;
for (i = 0; i < 10; i++){
scanf("%d", &height);
if (height > height_1st){
height_3rd = height_... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_304949/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_304949/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
#define clr(ar) memset(ar, 0, sizeof(ar))
#define read() freopen("lol.txt", "r", stdin)
int n, flag, counter[52], ar[52][52];
bool check(){
int i, j, a, b, d1 = 0, d2 = 0;
for (i = 0; i < n; i++){
a = 0, b = 0;
d1 += ar[i][i];
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_305/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_305/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@n = dso_local global i32 0, alig... |
#include <stdio.h>
int main (int argc, char* argv[])
{
int i, j, temp, height[10];
for (i=0; i<10; i++) {
scanf("%d", &height[i]);
}
for (i=9; 0<i; i--) {
for (j=0; j<i; j++) {
if (height[j+1] < height[j]) {
temp = height[j];
height[j] = height[j+1];
height[j+1] = temp;
}
}
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_305063/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_305063/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 in,a,b,c,i;
a=b=c=0;
for(i=0;i<10;i++){
scanf("%d",&in);
if(in>a)
{
int t=a;
a=in;
in =t;
}
if(in>b)
{int t=b;
b=in;
in =t;}
if(in>c)
{int t=c;
c=in;
in =t;
}
}
printf("%d\n%d\n%d\n",a,b,c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_305135/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_305135/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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)
{
int *x = (int *)a;
int *y = (int *)b;
return (*y - *x);
}
int main(void)
{
int hills[10];
int i;
for (i = 0; i < 10; i++){
scanf("%d", hills + i);
}
qsort(hills, 10, sizeof(int), cmp);
for (i = 0; i < 3; i++){
printf("%d\n"... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_305179/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_305179/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[10],i,j,temp;
for(i=0;i<10;i++) scanf("%d",&a[i]);
for(i=9;i>=0;i--){
for(j=0;j<=i;j++){
if(a[j] <a[j+1]){
temp = a[j];
a[j] = a[j+1];
a[j+1] = temp;
}
}
}
for(i=0;i<3;i++) printf("%d\n",a[i]);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_305221/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_305221/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,a[10]={0},b,c,i2;
for(i=0;i!=10;i++){
scanf("%d",&a[i]);
}
for(i=0;i!=9;i++){
for(i2=0;i2!=9-i;i2++){
if(a[i2]<a[i2+1]){
b=a[i2];
a[i2]=a[i2+1];
a[i2+1]=b;
}
}
}
for(i=0;i!=3;i++){
printf("%d\n",a[i]);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_305272/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_305272/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a[15],i,j,t;
for(i=1;i<=10;i++)
{
scanf("%lld",&a[i]);
}
for(i=1;i<=10;i++)
{
for(j=1;j<10;j++)
{
if(a[j]<a[j+1])
{
t=a[j];
a[j]=a[j+1];
a[j+1]=t;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_305315/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_305315/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, tmp, h[10];
for (i = 0; i < 10; i++) {
scanf("%d", &h[i]);
}
for (i = 0; i < 10; i++) {
for (j = 9; j > i; j--) {
if (h[j - 1] < h[j]) {
tmp = h[j];
h[j] = h[j - 1];
h[j - 1] = tmp;
}
}
}
fo... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_305359/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_305359/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int i,n,f,s,t;
f=0,s=0,t=0;
for(i=0;i<10;i++){
scanf("%d",&n);
if(f<n||f==n){
t=s;
s=f;
f=n;
continue;
}else if(s<n||s==n){
t=s;
s=n;
continue;
}else if(t<n||... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_305416/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_305416/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,j,a[10],n;
n=0;
for(i=0;i<10;i++){
scanf("%d",&a[i]);
}
/*for(i=0;i<10;i++){
printf("i=%d\n",a[i]);
}*/
for(i=0;i<9;i++){
for(j=i+1;j<10;j++){
if(a[i]<a[j]){
n=a[i];
a[i]=a[j];
a[j]=n;
}
//printf("i=%d j=%d\n\n",a[i],a[j]);
}
}
for(i=0;i<... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_305467/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_305467/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n;
scanf("%Ld",&n);
long double ans=0;
for(int i=1;i<=n;i++)
{
ans=ans+(long double)1/i;
}
printf("%0.12Lf\n",ans);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_30551/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_30551/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
#include<stdlib.h>
int compare_ascending(const void* a, const void* b){
return *(int*)a-*(int*)b;
}
int main(){
int n;
scanf("%d", &n);
int d[n];
for(int i=0; i<n; i++){
scanf("%d", &d[i]);
}
qsort(d, n, sizeof(int), compare_ascending);
printf("%d", d[n/2] - d... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_305568/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_305568/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
int compare_int(const void *a, const void *b){
if ( *(int*)a > *(int*)b ) return 1;
if ( *(int*)a < *(int*)b ) return -1;
return 0;
}
int main(void){
int n,i,j,temp;
scanf("%d",&n);
int a[n];
for(i=0; i<n; i++){
scanf("%d",&a[i]);
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_305610/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_305610/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 asc(const void *a, const void *b) {
return *(int *)a - *(int *)b;
}
int main(){
int n;
scanf("%d",&n);
if(n%2!=0 || n<2 || n>100000){
return 0;
}
int d[n];
int i,j;
int tmp;
for(i=0;i<n;i++){
scanf("%d",&d[i]);
if(d[i]<1 || d[i]>100000){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_305654/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_305654/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
int compare_int(const void *a, const void *b)
{
return *(int*)a - *(int*)b;
}
int main(){
int n;
scanf("%d",&n);
int d[n];
for(int i=0;i<n;i++){
scanf("%d",&d[i]);
}
qsort(d, n, sizeof(int), compare_int);
int count=d[n/2] - d[(n/2)-1]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_305704/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_305704/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
// AOJ 1049 Building Houses
// 2018.3.13 bal4u
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#if 1
#define gc() getchar_unlocked()
#else
#define gc() getchar()
#endif
int in()
{
int n = 0, c = gc();
do n = 10 * n + (c & 0xf), c = gc(); while (c >= '0');
return n;
}
#define INF 10000000
int n;
int a[... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_305748/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_305748/source.c"
target datalayout = "e-m:e-p270: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 main(void){
int n,m;
scanf("%d %d",&n,&m);
printf("%d ",n*m);
printf("%d\n",2*n+2*m);
return 0;
// Your code here!
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_305791/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_305791/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,s,h;
scanf("%d",&a);
scanf("%d",&b);
s=a*b;
h=a+a+b+b;
printf("%d %d\n",s,h);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_305834/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_305834/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int a,b;
scanf("%d %d",&a,&b);
printf("%d %d\n",a*b,2*(a+b));
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_305878/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_305878/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int a, b;
scanf("%d%d", &a, &b);
printf("%d %d\n", a*b, (a*2)+(b*2));
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_305920/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_305920/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,S,l;
scanf("%d %d",&a,&b);
S=a*b;
l=2*(a+b);
printf("%d %d\n",S,l);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_305964/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_305964/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a, b;
long c, d;
scanf("%ld %ld", &a, &b);
c = a * b;
d = 2 * (a + b);
printf("%ld %ld\n", c, d);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_306006/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_306006/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
double i, s = 0.0;
for (i = 1; i <= n; i++)
s = s + 1/i;
printf("%.12f", s);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_30605/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_30605/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
#include <stdlib.h>
#define ll long long
#define inc(i, first, end) for (int i = first; i <= end; i++)
#define dec(i, first, end) for (int i = fiest; i >= end; i--)
#define mem(a) memset(a, 0, sizeof(a))
int cmp(const void *a, const void *b)
{
return *(int *)a - *(int *)b;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_30610/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_30610/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 a,b;
scanf("%d %d",&a,&b);
printf("%d %d\n",a*b,(a+b)*2);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_306143/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_306143/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int a,b,c;
scanf("%d %d",&a,&b);
c = (a+b)*2;
a = a*b;
printf("%d %d\n",a,c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_306194/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_306194/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int a,b;
scanf("%d%d",&a,&b);
printf("%d %d\n",a * b,2*(a + b));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_306237/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_306237/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int a,b;
scanf("%d %d",&a,&b);
printf("%d %d\n",a*b,2*a+2*b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_306280/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_306280/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(int argc, char **argv){
int a,b;
scanf("%d %d",&a, &b);
printf("%d %d\n",a*b,a*2+b*2);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_306323/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_306323/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 = 0;
int b = 0;
scanf("%d %d", &a, &b);
printf("%d %d\n", a*b, 2 * (a + b));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_306367/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_306367/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 t;
scanf("%d",&t);
while (t--) {
int n;
scanf("%d",&n);
int a[n];
int b[n];
int c[n];
int d[n];
for (int i = 0; i < n; i++) {
scanf("%d",&a[i]);
}
for (int i = 0; i < n; i++) {
scanf("%d",&b[i]);
}
for (int i = 0; i < n; i++) {
scanf("%d",&c[i]);
}
d[0] = a[0];
int i;
for (i = ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_30641/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_30641/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 a,b,area,length;
scanf("%d %d",&a,&b);
area=a*b;
length=2*(a+b);
printf("%d %d\n",area,length);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_306453/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_306453/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
int a,b;
scanf("%d",&a);
scanf("%d",&b);
printf("%d %d\n",a*b,2*a+2*b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_306503/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_306503/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
int a,b,x,y ;
scanf("%d",&a);
scanf("%d",&b);
x=a*b ;
y=2*a+2*b ;
printf("%d %d\n",x,y);
return 0 ;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_306554/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_306554/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int a, b;
scanf("%d %d",&a, &b);
printf("%d %d\n",a*b, 2*a+2*b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_306598/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_306598/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int a,b;
scanf("%d%d", &a, &b);
printf("%d %d\n", a*b, 2*(a+b));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_306648/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_306648/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d %d\n",a*b,2*a+2*b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_306691/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_306691/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void) {
int a , b;
scanf("%d %d",&a, &b);
printf("%d %d\n",a*b , a+a+b+b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_306734/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_306734/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<math.h>
int main(void)
{
int a=0,b=0,c=0,d=0;
scanf("%d %d",&a,&b);
c=a*b;
d=2*(a+b);
printf("%d %d\n",c,d);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_306785/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_306785/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 SIDES 2
int main(void){
int a,b,S,L;
scanf("%d%d",&a,&b);
S = a * b;
L = a*SIDES + b*SIDES;
printf("%d %d\n",S,L);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_306828/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_306828/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
// Here your code !
int n,m;
scanf("%d %d" ,&n,&m) ;
printf("%d %d\n",n*m,n*2+m*2) ;
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_306879/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_306879/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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=0, b=0, s, L;
scanf("%d %d", &a, &b);
s=a*b;
L=(a+b)*2;
printf("%d %d\n", s, L);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_306921/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_306921/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int a,b,c,d;
scanf("%d",&a);
scanf("%d",&b);
c=a*b;
d=(a+b)*2;
printf("%d %d\n",c,d);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_306965/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_306965/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d %d",&a,&b);
c = a*b;
d = 2*(a+b);
printf("%d %d\n",c,d);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_307007/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_307007/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main (void)
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d %d\n",a*b,2*a+2*b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_307058/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_307058/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main() {
int a,b;
scanf("%d %d",&a,&b);
printf("%d %d\n",a*b,(a+b)*2);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_307100/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_307100/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int a,b;
scanf("%d %d",&a,&b);
printf("%d %d\n",a*b,2*a+2*b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_307144/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_307144/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,wa,ws;
scanf("%d %d", &a, &b);
wa=a*b;
ws=a*2+b*2;
printf("%d %d\n",wa,ws);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_307188/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_307188/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int b;
scanf("%d",&a);
scanf("%d",&b);
printf("%d %d\n",a*b,2*a+2*b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_307238/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_307238/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d %d", &i, &j);
printf("%d %d\n", i * j, 2 * (i + j));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_307281/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_307281/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(int argc, char* argv[]){
int a,b,len,area;
scanf("%d %d",&a, &b);
area = a*b;
len = 2 * (a + b);
printf("%d %d\n", area, len);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_307331/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_307331/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <math.h>
int main (int argc, const char * argv[]) {
int a,b;
scanf("%d %d",&a,&b);
if(a < 1 || b > 100){
return 1;
}
printf("%d %d\n",a*b,a*2+b*2);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_307375/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_307375/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main( ){
int a,b,c,d;
scanf("%d %d", &a, &b);
c=a*b;
d=2*(a+b);
printf("%d %d\n", c,d);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_307425/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_307425/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
int a,b;
scanf("%d %d",&a,&b);
printf("%d %d\n",a * b,a * 2 + b * 2);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_307469/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_307469/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
int a, b;
scanf("%d %d", &a, &b);
printf("%d %d\n", a*b, (a+b)*2);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_307511/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_307511/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
int a, b;
scanf("%d %d", &a, &b);
printf("%d %d\n", a * b, 2*(a+b));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_307555/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_307555/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d %d\n",a*b,(a+b)*2);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_307599/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_307599/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d %d",&a,&b);
c=a*b;
d=2*a+2*b;
printf("%d %d\n",c,d );
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_307641/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_307641/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
// Here your code !
int a,b;
scanf("%d %d",&a,&b);
printf("%d %d\n",a*b,a*2+b*2);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_307685/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_307685/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
int a, b;
scanf("%d", &a);
scanf("%d", &b);
printf("%d %d\n", a*b, 2*a + 2*b);
return(0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_307728/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_307728/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, y;
scanf("%d %d", &x, &y);
printf("%d %d\n", x*y, 2*(x+y));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_307771/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_307771/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/************************************/
//
//?????? a cm ?????? b cm ???????????¢?????¢?????¨??¨?????????????±???????????????°??????
//
//http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_1_C&lang=jp
/************************************/
#include<stdio.h>
#define MIN 1
#define MAX 100
int main()
{
int a... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_307829/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_307829/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,m,s;
scanf("%d%d",&a,&b);
s = a*b;
m = 2*(a+b);
printf("%d %d\n",s,m);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_307887/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_307887/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 cmpfunc(const void *a,const void *b)
{
return (*(int*)a-*(int*)b);
}
int main()
{
int n;scanf("%d",&n);int arr[n];
int i,sum=0,ini,count=0;float ave;
for(i=0;i<n;i++)
{
scanf("%d ",&arr[i]);
sum=sum+arr[i];
}
qsort(arr,n,sizeof(arr[0])... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_30793/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_30793/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
int main(void)
{
int a, b;
scanf("%d %d", &a, &b);
printf("%d %d\n", a*b, 2*a+2*b);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_307973/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_307973/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
int a, b;
scanf("%d %d",&a,&b);
printf("%d %d\n",a*b,2*a+2*b);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_308015/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_308015/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int a, b;
scanf("%d %d", &a, &b);
printf("%d %d\n", a*b, 2*(a+b));
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_308059/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_308059/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, S, d;
scanf("%d", &m);
scanf("%d", &n);
S = m * n;
d = 2 * (m + n);
printf("%d %d\n", S, d);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_308101/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_308101/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, S, L;
scanf("%d", &a);
scanf("%d", &b);
S=a*b;
L=a*2+b*2;
printf("%d %d\n",S,L);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_308152/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_308152/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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.