Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>
#include <ctype.h>
int main (void)
{
int n, d;
scanf("%d %d",&n, &d);
int x = 0;
if (n%(2*d+1) != 0)
x = 1;
printf("%d\n",(n/(2*d+1))+x);
return(0);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204574/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204574/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, D;
scanf("%d %d", &N, &D);
int i = 1;
int cnt = 0;
while (i <= N)
{
i = i + 2 * D;
cnt++;
i++;
}
printf("%d", cnt);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204617/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204617/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ll long long
int main()
{
unsigned ll n,d,ans;
scanf("%llu %llu",&n,&d);
d=2*d+1;
if(n%d==0)
{ans=n/d;}
else
ans=(n/d )+1;
printf("%llu",ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204660/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204660/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,d,s;
scanf("%d %d",&n,&d);
s=(d*2+n)/(d*2+1);
printf("%d\n",s);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204703/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204703/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,D,b;
scanf("%d %d",&N,&D);
b=2*D+1;
printf("%d",(N+b-1)/b);
return(0);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204747/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204747/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, D, result;
scanf("%d %d", &N, &D);
result = N / (D * 2 + 1);
if(N % (D * 2 + 1) != 0)
result++;
printf("%d\n", result);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204790/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204790/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, d, ans = 1;
scanf("%d%d", &n, &d);
int monitor_man = d + 1;
int monitor_range_right = monitor_man + d;
while ( monitor_range_right < n ) {
ans++;
monitor_man += (2 * d + 1);
monitor_range_right = monitor_man + d;
}
p... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204877/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204877/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,x,ans,c;
scanf("%d %d",&n,&x);
int a[n],b[202];
for(int i=0;i<n;i++){
scanf("%d ",&a[i]);
}
for(int j=0;j<202;j++){
b[j]=0;
}
for(int k=0;k<n;k++){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20492/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20492/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,m,left;
scanf("%d %d", &n,&m);
int mod = n/500;
if(n% 500 == 0)
printf("Yes\n");
else if(mod != 0)
{
left = n - (mod*500);
if(left <= m)
printf("Yes\n");
else
printf("No\n");
}
else if(m>=n)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204963/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204963/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 solve(int n, int a);
int main()
{
int n, a;
scanf("%d %d", &n, &a);
solve(n, a);
return 0;
}
void solve(int n, int a)
{
int temp;
temp = n % 500;
if (temp <= a)
{
printf("Yes\n");
}
else
{
printf("No\n");
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205005/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205005/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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",&a);
scanf("%d",&b);
a = a%500;
if (a>b)
printf("No\n");
else
printf("Yes\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205049/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205049/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, a;
scanf("%d %d", &n, &a);
if(n%500 <= a) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205092/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205092/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n, a;
scanf("%d%d", &n, &a);
if(n % 500 <= a){
printf("Yes\n");
}else{
printf("No\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205142/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205142/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int n,a;
scanf("%d%d",&n,&a);
puts(n%500<=a?"Yes":"No");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205193/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205193/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,A;
scanf("%d %d",&N,&A);
if(N%500<=A)printf("Yes\n");
else printf("No\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205250/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205250/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
int N, A;
scanf("%d", &N);
scanf("%d", &A);
if(N % 500 - A <= 0)
printf("Yes");
else
printf("No");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205300/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205300/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
#include<math.h>
#include<stdlib.h>
#include<limits.h>
#define rep(i,begin,end) for(int i=begin; i<end; i++)
#define lld long long int
int main(){
int n;
scanf("%d", &n);
char s[n+1];
scanf("%s", s);
int x=0, y=0, p;
p=0;
rep(i, 0, n){
if(s[i] =... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205344/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205344/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(){
char *str;
int num;
scanf("%d",&num);
str = malloc(sizeof(char) * num);
scanf("%s",str);
int i;
int Rcnt = 0;
int Lcnt = 0;
for(i = 0; i < num; i++){
if(str[i] == '(')
Lcnt++;
if(str[i] == ')')
if(Lcnt == 0)
Rcnt+... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205388/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205388/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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 - Regular Triangle*/
#import<stdio.h>
int main(void){
int A, B, C;
scanf("%d", &A);
scanf("%d", &B);
scanf("%d", &C);
if(A == B && B == C && A == C){
printf("Yes\n");
}else{
printf("No\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205430/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205430/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 %d",&a,&b,&c);
if(a==b){
if(b==c){
printf("Yes\n");
}
else printf("No\n");
}
else {
printf("No\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205474/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205474/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 %d", &a,&b,&c);
if((a==b) && (b == c)){
printf("Yes");
}
else
{
printf("No");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205517/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205517/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 %d",&a,&b,&c);
if ((a==b) && (b==c)){
printf("Yes\n");
}else{
printf("No\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205560/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205560/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 date[15];
scanf ("%s", date);
for (int i = 0; date[i] != '/'; i++){
if (date[3] != '8'){
date[3] = '8';
}
}
printf ("%s", date);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205610/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205610/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 year,date,month;
char a,b;
scanf("%d%c%02d%c%02d",&year,&a,&month,&b,&date);
printf("2018%c%02d%c%02d",a,month,b,date);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205719/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205719/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 q,n,i;
char str[301];
scanf("%d",&q);
while(q--)
{
scanf("%d",&n);
scanf("%s",str);
if(n>2)
{
printf("YES\n");
printf("%d\n",2);
printf("%c ",str[0]);
for(i=1; i<n; i++)
printf("%c",str[i]);
}
else
{
if(str[0]<str[1])
{
printf("YES\n");
printf("%d\n",2);
printf("%c %c",str[0],str[... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20577/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20577/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
#include <stdbool.h>
#include <math.h>
int main(void){
long long n, i;
scanf("%lld", &n);
long long k[n], x[n];
for(i = 0; i < n; i++){
scanf("%lld%lld", &k[i], &x[i]);
}
for(i = 0; i < n; i++){
printf("%lld\n", x[i] + 9 * (k[i] - 1));... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20582/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20582/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 ... |
//f*ck hideto!!
#include<stdio.h>
int main(void)
{
int Q,i,y,c,a,n,t;
scanf("%d",&Q);
for(i=0;i!=Q;i++){
t=0;
scanf("%d%d%d",&c,&a,&n);
while(1){
if(c>0&&a>0&&n>0){
t++;
c-=1;
a-=1;
n-=1;
}
else if(c>1&&a>0){
t++;
c-=2;
a-=1;
}
else if(c>2){
t++;
c-=3;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_205986/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_205986/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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<stdint.h>
#include<inttypes.h>
typedef int32_t i32;
typedef uint64_t u64;
#define ALLOC(size,type) ((type*)calloc((size),sizeof(type)))
void set_at (u64 *a, i32 x) {
i32 q = x / 64;
i32 r = x % 64;
a[q] |= (u64)1 << r;
}
void run (void) {
i32 n;
scanf ("%" SCN... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206042/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206042/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a, d, n;
long i, j;
int pri[1000000] = {};
pri[2] = 1;
pri[3] = 1;
for(i = 2; i < 1000000; i++)
pri[i] = 1;
for(i = 2; i * i < 1000000; i++) {
if(pri[i] == 1) {
for(j = (i * 2); j < 1000000; j+=i){
pri[j] = 0;
}
}
}
while(1) {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206086/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206086/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>
#include <math.h>
int main(void){
char s[100001];
scanf("%s", s);
int len = strlen(s);
int g = 0, p = 0;
int l = 0, w = 0;
for(int i = 0; i < len; i++){
if(p == g){
g++;
if(s[i] ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206129/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206129/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ta[10010],to[30010],nt[30010],rta[10010],rto[30010],rnt[30010];
int id[10010],rid[10010],cmp[100010],r=0,f[10010]={0};
void dfs(int s){
int i;
f[s]=1;
for(i=ta[s];i+1;i=nt[i]){
if(f[to[i]]==0)dfs(to[i]);
}
id[rid[s]=r++]=s;//printf("\n");
}
void rdfs(int s,int k){
int i;
f[s]=2;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206172/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206172/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@r = dso_local local_unname... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int map_max;
int map[100][100];
int main(void) {
int p_tempnum=0;
int tempnum;
int temp[100];
int kohan_flag=0;
int i,j;
char tempbuf[10000];
char* next;
while(fgets(tempbuf,sizeof(tempbuf),stdin)) {
tempnum=0;
next=strtok(tempbuf,",");
if(next=... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206222/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206222/source.c"
target datalayout = "e-m:e-p270: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()
{
int L;
scanf("%d", &L);
printf("%Lf\n", ((long double)L / 3) * ((long double)L / 3) * ((long double)L / 3));
fflush(stdout);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206266/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206266/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>
#pragma warning(disable : 4996) //_CRT_SECURE_NO_WARNINGS
int main(void) {
double l = 0;
double a,b,c;
scanf("%lf", &l);
a = l / 3;
b = (l - a) / 2;
c = l - (a + b);
printf("%.11lf\n", a*b*c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206309/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206309/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 L;
scanf("%d",&L);
printf("%.12f",(double)L*L*L/27);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206352/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206352/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 L;
scanf("%d",&L);
printf("%.12f\n",(double)L*L*L/27);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206396/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206396/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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)
{
double L;
scanf("%lf", &L);
double x=L/3;
printf("%lf", x*x*x);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206439/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206439/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
printf("%.12f",n*n*n/27.0);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206497/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206497/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 aa[1000005],bb[1000005],i,j,k,a,b,l,m,n,am,bm;
char c[1000005];
scanf("%s",c);
/* i=0;
while(c[i]!='\n')
{
i++;
cin>>c[i];
}*/
int s=strlen(c);
//=i;
//cin>>a>>b;
scanf("%d %d",&a,&b);
am=1%a;
bm... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20654/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20654/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 L;
scanf("%d", &L);
printf("%.10f", (double)(L*L*L)/27.0);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206583/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206583/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
#define NIL NULL
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
Node root;
Node treeMinimum(Node x){
while(x->left != NIL) x = x->left;
return x;
}
void insert(int k){
Node y = NIL;
Node x = root;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206626/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206626/source.c"
target datalayout = "e-m:e-p270: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.node = type { ptr, ... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<limits.h>
#define gu getchar_unlocked
#define pu putchar_unlocked
#define lli long long int
#define ulli unsigned long long int
#define din(n) scanf("%d",&n)
#define dout(n) printf("%d\n",n)
#define lldin(n) scanf("%lld",&n)
#define lldout(n) printf("%l... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20667/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20667/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
#define NIL NULL
Node root;
Node treeMinimum(Node x){
while(x->left!=NIL){
x=x->left;
}
return x;
}
Node treeMaximum(Node x){
}
Node treeSearch(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206712/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206712/source.c"
target datalayout = "e-m:e-p270: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.node = type { ptr, ... |
#include <stdio.h>
typedef struct{
int p, k, l, r;
}node;
node nodes[500001];
int ino_f = 0;
int next_id = 0;
int next(int z);
void ino(int id)
{
if(id == -1)
return ;
ino(nodes[id].l);
printf(" %d", nodes[id].k);
ino(nodes[id].r);
}
void find(int z)
{
int x = 0;
while(x >= 0 ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206770/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206770/source.c"
target datalayout = "e-m:e-p270: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.node = type { i32, ... |
#include<stdio.h>
#include<stdlib.h>
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
#define NIL NULL
#define TRUE 1
Node root;
Node treeMinimum(Node x){
while(x->left != NIL){
x = x->left;
}
return x;
}
void insert(int k){
Node... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206820/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206820/source.c"
target datalayout = "e-m:e-p270: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.node = type { ptr, ... |
#include<stdio.h>
#include<stdlib.h>
typedef struct node{
int key;
struct node *left;
struct node *right;
}node;
void insert(node **p,int x){
node *new=malloc(sizeof(node));
new->key=x;
new->left=NULL;
new->right=NULL;
while((*p)!=NULL){
if((*p)->key > x)
p=&((*p)->left);
else
p=&((*p)->right);
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206871/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206871/source.c"
target datalayout = "e-m:e-p270: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.node = type { i32, ... |
#include<stdio.h>
#include<stdlib.h>
#define NIL NULL
#define N 500000
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
Node root;
Node treeMinimum(Node x){
while(x->left != NIL){
x = x->left;
}
return x;
}
Node treeSearch(Node u, int... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206914/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206914/source.c"
target datalayout = "e-m:e-p270: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.node = type { ptr, ... |
#include <stdio.h>
#include <stdlib.h>
#define N 500000
struct BiT_Node{
int key;
struct BiT_Node *p;
struct BiT_Node *left;
struct BiT_Node *right;
};
typedef struct BiT_Node *Node;
Node root;
Node getMinimum(Node x){
while(x->left != NULL) x = x->left;
return x;
}
void insert (int v){
Node y = NULL... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_206972/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_206972/source.c"
target datalayout = "e-m:e-p270: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.BiT_Node = type { i... |
#include <stdio.h>
#include <stdlib.h>
struct node
{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
#define NIL NULL
Node root;
Node treeMinimum(Node x)
{
while(x->left!=NIL){
x=x->left;
}
return x;
}
/*
Node treeMaximum(Node x)
{
}
*/... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207021/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207021/source.c"
target datalayout = "e-m:e-p270: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.node = type { ptr, ... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#define NIL NULL
struct node{
int key;
struct node *p,*l,*r;
};
typedef struct node * Node;
Node root;
void pre(Node u){
if (u == NIL) return;
printf(" %d",u->key);
pre(u->l);
pre(u->r);
}
void in(Node u){
if (u == NIL) return;
in(u->l);
pri... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207065/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207065/source.c"
target datalayout = "e-m:e-p270: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.node = type { i32, ... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
struct Node{
int key;
struct Node *right, *left , *parent;
};
struct Node *root , *NIL;
struct Node * treeMinimum(struct Node *x)
{
while(x->left != NIL) x = x->left;
return x;
}
struct Node * find(struct Node *u , int k)
{
while( u != NIL && k != u->... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207115/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207115/source.c"
target datalayout = "e-m:e-p270: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.Node = type { i32, ... |
#include<stdio.h>
#include<stdlib.h>
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
#define NIL NULL
Node root;
Node treeMinimum(Node x){
while(x->left!=NIL){
x=x->left;
}
return x;
}
Node treeMaximum(Node x){
while(x->right!=NIL)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207159/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207159/source.c"
target datalayout = "e-m:e-p270: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.node = type { ptr, ... |
#include<stdio.h>
#include<stdlib.h>
struct node{
struct node *right;
struct node *left;
struct node *parent;
int key;
};
typedef struct node * Node;
#define NIL NULL
Node root;
Node treeMinimum(Node x){
while(x->left!=NIL){
x=x->left;
}
return x;
}
Node treeMaximum(Node x){
while(x->right!=NIL... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207201/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207201/source.c"
target datalayout = "e-m:e-p270: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.node = type { ptr, ... |
#include <stdio.h>
#include <stdlib.h>
int j,i,n, t1,t2,t3,t4,tax[101], girl[101], piz[101]; char name[102][102], t;
int main(){
scanf("%d", &n);
for(i=0; i<n; i++){
scanf("%d", &t1);
getchar();
scanf("%s", &name[i]);
for(j=0; j<t1; j++){
scanf("%d-%d-%d", &t2, &t3, &t4);
if((t2==t3)&&(t2==t4)&&((t2%10)==(t2/... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20726/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20726/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <string.h>
int main(){
int x=0;
char s[11],t[12];
scanf("%s",&s);
scanf("%s",&t);
for (int i=0; i<strlen(s);i++){
if(s[i]!=t[i]){
x = x+1;
}
}
if(x==0){
printf("Yes\n");
}else{
printf("No\n");
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207302/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207302/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
int main()
{
char s[11],t[11];
int a,b,c,i;
scanf("%s %s",s,t);
a=strlen(s);
b=0;
c=0;
for(i=0;i<a;i++){
b++;
if(s[i]==t[i])
c++;
}
if(b==c) printf("Yes\n");
else printf("No\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207346/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207346/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(){
int i;
char S[11],T[12];
scanf("%s",S);
scanf("%s",T);
int S_len = strlen(S);
int T_len = strlen(T);
int diff = T_len - S_len;
if(diff!=1){
printf("No\n");
return 0;
}
for(i=0;i<S_len;i++){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207403/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207403/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
int main(int argc, char const *argv[])
{
char str1[11], str2[12];
scanf("%s %s", &str1, &str2);
str2[strlen(str2) - 1] = '\0';
if(strcmp(str1, str2) == 0)
printf("Yes\n");
else
printf("No\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207454/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207454/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[11],t[11];
int n=0;
do{
scanf("%c",&s[n]);
n++;
}while(s[n-1]!='\n');
for(int i;i<n;i++){
scanf("%c",&t[i]);
//printf("%c",t[i]);
}
for(int i=0;i<n-1;i++){
//printf("%c,%c\n",s[i],t[i]);
if(s[i]!=t[i]){
printf("No");
return 0;
}
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207498/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207498/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[15] ,t[15];
scanf("%s%s", s, t);
int a=0;
for(int i=0;i<10;++i)
{
if(s[i]==t[i]){continue;}
else if(s[i]==0){break;}
else if(s[i]!=t[i]){a+=1;}
}
if(a>0){printf("No");}
else printf("Yes");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207540/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207540/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[20],t[20];
scanf("%s",s);
scanf("%s",t);
int i=0,temp;
while(s[i]!='\0'){
if(s[i]==t[i]) i++;
else break;
}
if(t[i+1]=='\0') printf("Yes");
else printf("No");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207599/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207599/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <stdint.h>
#include <stdbool.h>
#include <math.h>
#include <time.h>
#define ll long long
#define min(a, b) ((a) > (b) ? (b) : (a))
#define max(a, b) ((a) > (b) ? (a) : (b))
#define miin(a, b, c) min((a), min((b), (c)))
#define maax(a, b, c) max((a), ma... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207641/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207641/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
int main(){
char S[10010];
char T[10010];
scanf("%s", S);
scanf("%s", T);
int len = strlen(S);
if(strncmp(S,T,len)== 0){
printf("Yes\n");
}else{
printf("No\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207685/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207685/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(void)
{
char s[13];
char t[13];
scanf("%s", s);
scanf("%s", t);
int i;
for (i = 0; i < strlen(s); i++)
{
if (s[i] != t[i])
{
printf("No\n");
return 0;
}
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207728/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207728/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,s,max,c[5],n;
while(~scanf("%d",&n)){
int c[15]={0};
c[n]++;
max=s=1;
for(i=0;i<4;i++){
scanf(",%d",&n);
if(c[n]==0)s++;
c[n]++;
if(max<c[n])max=c[n];
}
if(max==4)printf("four card\n");
if(max==3){
if(s==2)printf("full h... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207771/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207771/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 13
int main(){
int i,j,n1,n2,n3,n4,n5;
int data[N];
while (scanf("%d,%d,%d,%d,%d",&n1,&n2,&n3,&n4,&n5)!=EOF){
for (i=0;i<N;i++)
data[i]=0;
data[n1-1]++;data[n2-1]++;data[n3-1]++;data[n4-1]++;data[n5-1]++;
int three=0,two=0,four=0,one=0,straight=0;
for... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207821/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207821/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/* ABC174 C.c */
#include<stdio.h>
#include<math.h>
int main(void){
long long k, remain=0, i=0, j;
scanf("%lld", &k);
long long rest[k];
for(j=0; j<k; j++){
rest[j] = 0;
}
//count = i+1
while(1){
remain = (remain*10+7)%k;
if(remain==0){
printf("%lld\n"... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207865/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207865/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void) {
int k;
scanf("%d", &k);
int x = 7 % k;
for (int i = 1; i <= k; i++) {
if (x == 0) {
printf("%d\n", i);
return 0;
}
x = (x * 10 + 7) % k;
}
printf("-1\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207915/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207915/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ll long long
ll k;
int main(){
scanf("%lld",&k);
ll ans=-1;
ll tmp=7;
for(int i=1;i<=k;i++){
tmp%=k;
if(tmp==0){
ans=i;
break;}
tmp=10*tmp+7;}
printf("%lld\n",ans);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_207966/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_207966/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 c[200002];
void merge(int a,int b,int *s){
if(a!=b){
merge(a,(a+b)/2,s);
merge((a+b)/2+1,b,s);
int i=a,j=(a+b)/2+1,k;
for(k=a;k<=b;k++){
if(i!=(a+b)/2+1 && j!=b+1){
if(s[i]>s[j]){
c[k]=s[i];
i++;
}
else{
c[k]=s[j];
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208015/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208015/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@c = dso_local local_unname... |
#include <stdio.h>
#include <stdlib.h>
int compare_int(const void *a, const void *b)
{
return *(int*)a - *(int*)b;
}
int main(void)
{
int i,j,n,k;
scanf("%d%d",&n,&k);
unsigned long h[n],temp,sum = 0;
for(i = 0; i < n; i++)
{
scanf("%lu",&h[i]);
}
qsort(h,n,sizeof(unsigned... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208066/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208066/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 swap (long long int *x, long long int *y) {
long long int temp;
temp = *x;
*x = *y;
*y = temp;
}
int partition (long long int array[], int left, int right) {
int i, j, pivot;
i = left;
j = right + 1;
pivot = left;
do {
do { i++; } while (array[i] < array[pivot]);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208116/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208116/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,k=1,l=1,i,s1,s2;
scanf("%d %d",&a,&b);
scanf("%d %d",&c,&d);
s1=b;s2=d;
for(i=1;i<=100;i++){
if(s1<s2){
s1=b+k*a;k++;
}
if(s1>s2){
s2=d+l*c;l++;
}
if(s1==s2)break;
}
if(s1==s2)printf("%d",s1);
else
printf("-1");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20816/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20816/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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<stdbool.h>
#include<string.h>
#include<math.h>
#define rep(i,n) for(int i=0; i < (n); i++)
int main(){
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
if(a==b){
printf("%d\n",c);
}else if(a==c){
printf("%d\n",b);
}else{
printf("%d\n",a);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208202/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208202/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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%d",&a,&b,&c);
if(a==b) printf("%d",c);
else if(b==c) printf("%d",a);
else if(a==c) printf("%d",b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208246/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208246/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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()
{
int n,i,j,flag,count;
char str[500][500],s[500];
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%s",s);
for(j=0;j<n;j++)
{
str[i][j]=s[j];
}
}
flag=0;
for(i=0;i<n&&flag==0;i++)
{
for(j=0;j<n&&flag==0;j++)
{
count=0;
if(str[i+... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20829/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20829/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 ... |
/*
* util.c
*
* Created on: 30 ���� 2014 �.
* Author: ulgish
*/
#define DEBUG
#define TIME_COMPUTE
#define START_TIME \
clock_t _start_time = clock();
#define END_TIME \
_start_time = (clock() - _start_time);\
long ms = _start_time % CLOCKS_PER_SEC;\
_start_time = _start_time / CLOCKS_PER_SEC;\
printf... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20834/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20834/source.c"
target datalayout = "e-m:e-p270: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.q = type { i32, ptr, ... |
#include <stdio.h>
int main(void)
{
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if(a==b){
printf("%d\n",c);
} else if(b==c){
printf("%d\n",a);
} else{
printf("%d\n",b);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208390/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208390/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 %d", &a, &b, &c);
if(a == b) printf("%d", c);
if(b == c) printf("%d", a);
if(c == a) printf("%d", b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208433/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208433/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
char s_str[200001],t_str[200001];
int s_ch_count[26] = {},t_ch_count[26] = {};
int comp(const void *x,const void *y){
return *(int*)x - *(int *)y;
}
int main(void){
scanf("%s \n %s",s_str,t_str);
int length = strlen(s_str);
for(int i = 0;i < le... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208477/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208477/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@s_ch_count = dso_local glo... |
#include <stdio.h>
#include <string.h>
int main(void) {
int i, j, len;
int f = 1;
char c;
char s[200001], t[200001];
scanf("%s%s", s, t);
len = strlen(s);;
for (i = 0; i < len; i++) {
if (s[i] != t[i]) {
c = t[i];
for (j = 0; j < len; j++) {
if (t[j] == s[i] || t[j] == c) {
if (j < i) {
f... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208527/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208527/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 char_to_int(char c){
return (int)c - (int)'a';
}
int main(){
int N, i;
char *S = (char *)malloc(sizeof(char) * 200001);
char *T = (char *)malloc(sizeof(char) * 200001);
scanf("%s", S);
scanf("%s", T);
int will[26], did[26], alfS[26], alfT[26];
for(i = 0; i < 26; i++)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208570/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208570/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,P,x,y;
scanf("%d \n%d \n%d \n%d \n%d",&A,&B,&C,&D,&P);
x = P*A;
if(P <= C){
y = B;
}else{
y = B + ((P-C)*D);
}
if(x <= y){
printf("%d\n",x);
}else{
printf("%d\n",y);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208620/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208620/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 xf,yb,ylim,yov,water,X,Y;
scanf("%d %d %d %d %d",&xf,&yb,&ylim,&yov,&water);
/*
scanf("%d",&xf);
scanf("%d",&yb);
scanf("%d",&ylim);
scanf("%d",&yov);
scanf("%d",&water);
*/
X=xf*water;
if(water>ylim){
Y=yb+(yov*(water-ylim));
}
else{
Y=yb;
}
i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208671/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208671/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, P, X, Y;
scanf("%d %d %d %d %d", &A, &B, &C, &D, &P);
X = P * A;
if ( P <= C) Y = B;
else Y = B + ( P - C ) * D;
if ( X < Y ) printf("%d\n", X);
else printf("%d\n", Y);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208721/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208721/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h> // printf(), scanf()
#include <stdbool.h>
#define MAX_N 10000
int par[MAX_N + 1];
int rank[MAX_N + 1];
void
init_union_find(int n)
{
int i;
for (i = 0; i <= n; ++i)
{
par[i] = i;
rank[i] = 0;
}
}
int
find(int x)
{
if (x == par[x])
return x;
else
return par[x] = find(par[x]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208765/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208765/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@par = dso_local local_unna... |
#include <stdio.h>
#define N_MAX 2000
void merge_sort(int *a, int l, int r) {
int b[N_MAX + 1];
for(int k = 1; k <= r - l; k *= 2) {
int s = l, t = l + k;
while(t <= r) {
int so = t, to = t + k <= r + 1 ? t + k : r + 1;
for(int i = s; i < to; ++i) {
if(a[s] <= a[t]) {
b[i] = a[s++];
if(s == so... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208808/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208808/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 canmaketriangle(int a, int b, int c);
int main()
{
int n;
int* l;
int c = 0;
scanf("%d", &n);
l = (int*)malloc(n);
if (l == NULL)
return -1;
for (int i = 0; i < n; i++)
scanf("%d", &l[i]);
for (int i = 0; i < n - 2; i++)
for (int j = i + 1; j < n - ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208859/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208859/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 i, j, k, n, ans = 0;
scanf("%d", &n);
int l[n];
for(i = 0; i < n; ++i){
scanf("%d", &l[i]);
}
qsort(l, n, sizeof(int), compare);
for(i = 0; i < n-2... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208916/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208916/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main() {
long long int n, a[200005] = {}, result = 0;
scanf("%lld", &n);
for (int i = 0; i < n; i++) {
scanf("%lld", &a[i]);
}
for (int i = 0; i < n-1; i++) {
if (a[i] % 2 == 1&&a[i+1]>0) { a[i]--; a[i + 1]--; result++; }
result += a[i] / 2;
}
result += a[n-1] / 2;
printf("%lld", res... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_208967/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_208967/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#define N 10000
#define INT(X) \
( *( (const int *)(X) ) )
#define MAX(A,B) \
( (A) > (B) ? (A) : (B) )
int compare (
const void * a,
const void * b
)
{
return ( INT( a ) - INT( b ) );
}
/** Application main entry point. */
int main (
int argc,
char * arg... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209023/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209023/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
int H,W;
scanf("%d %d",&H,&W);
int h,w;
scanf("%d %d",&h,&w);
printf("%d\n",(H-h)*(W-w));
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209067/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209067/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int H,W,h,w,s;
scanf("%d%d" ,&H, &W);
scanf("%d%d" ,&h, &w);
s=(H*W)-((w*H)+(h*W)-(w*h));
printf("%d\n",s);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209117/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209117/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int H,W,h,w;
scanf("%d%d%d%d",&H,&W,&h,&w);
printf("%d",(H-h)*(W-w));
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209160/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209160/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
int H, W, h, w;
scanf("%d%d%d%d", &H, &W, &h, &w);
printf("%d", (H*W) - (h*W + H * w - h * w));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209203/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209203/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
// Your code here!
int H,W,h,w;
scanf("%d",&H);
scanf("%d",&W);
scanf("%d",&h);
scanf("%d",&w);
printf("%d\n",(H-h)*(W-w));
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209247/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209247/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main() {
int H,W,h,w;
scanf("%d %d\n",&H,&W);
scanf("%d %d\n",&h,&w);
int ans = (H*W) - (h*W + (w*H - h*w));
printf("%d\n",ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209298/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209298/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, n, m, ans;
scanf("%d %d", &a, &b);
scanf("%d %d", &c, &d);
ans=a*b-a*d-b*c+d*c;
printf("%d", ans);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209340/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209340/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
int H, W = 0;
scanf("%d %d", &H, &W);
int h, w = 0;
scanf("%d %d", &h, &w);
printf("%d\n", (H-h) * (W-w));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209391/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209391/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 map[5][5];
int rectangular(int x,int y){
int i,j,k;
int a[5];
int size;
i = 1;
while(1){
if(x+i < 5 && map[x+i][y])i++;
else break;
}
a[0] = i;
size = i;
j = 1;
while(1){
if(y+j < 5 && map[x][y+j]){
for(k=1;k<a[j-1];k++){
if(!map[x+k][y+j])break;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_209434/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_209434/source.c"
target datalayout = "e-m:e-p270: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 [5 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.