Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include<stdio.h>
int main(){
int a, b;
int x;
scanf("%d%d",&a,&b);
if((a+b)%2!=0){
printf("IMPOSSIBLE\n");
}
else {
x=(a+b)/2;
printf("%d\n",x);
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_190888/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_190888/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
long long int a,b,ans;
scanf("%lld%lld",&a,&b);
ans = a+b;
if(ans%2==1){
printf("IMPOSSIBLE");
return 0;
}
else
printf("%d",ans/2);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_190930/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_190930/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
if((A+B)%2 == 0) printf("%d\n", (A+B)/2);
else printf("IMPOSSIBLE\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_190981/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_190981/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 1400
struct rect {
int height;
int pos;
};
int buffer[MAX][MAX], table[MAX][MAX];
int large_rectangle(int w, int *t);
int main(void)
{
int i, j, h, w, max = 0;
scanf("%d%d", &h, &w);
for (i = 0; i < h; i++) {
for (j = 0; j < w; j++) {
scanf("%d", &buffer[i][j]);
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_191030/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_191030/source.c"
target datalayout = "e-m:e-p270: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.rect = type { i32, ... |
#include <stdio.h>
#include <string.h>
int change(char c);
int main(void){
char roma[100];
int suji[100];
int answer,len;
int i;
while((scanf("%s",&*roma))!=EOF){
answer=0;
len=strlen(roma);
for(i=0;i<len;i++){
suji[i]=change(roma[i]);
}
if(len==1){
answer=suji[0];
}else{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_191081/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_191081/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,ans;
char str[101];
char data[8] = "IVXLCDM";
while(scanf("%s",str) != EOF){
ans = 0;
for(i = 0;str[i] != '\0';i++){
switch(str[i]){
case 'I':
if(str[i+1] == 'V' || str[i+1] == 'X'){
ans -= 1;
}else{
ans += 1;
}
break;
case 'V':
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_191124/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_191124/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
int i;
int N,A[110];
double a,b;
scanf("%d",&N);
for(i=0;i<N;i++)
scanf("%d",&A[i]);
for(i=0;i<N;i++)
a += (double)1/A[i];
b = 1/a;
printf("%.5lf\n",b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_191168/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_191168/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, N;
scanf("%d", &N);
double sum=0;
for(int i=0;i<N;i++){
scanf("%d", &a);
sum+=(double)1/a;
}
printf("%.6f\n",1/sum);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_191210/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_191210/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 NEW(p,n){p=malloc((n)*sizeof(p[0]));if(p==NULL){printf("not enough memory\n");exit(1);};}
//pの型の変数n個の要素分のメモリを確保し、そのアドレスをpに代入するマクロ
#define LEFT(i) (2*(i))
#define RIGHT(i) (2*(i)+1)
#define PARENT(i) ((i)/2)
//ヒープ木の構成要素型の定義
typedef struct{
double priority; //ここの値で降順にする... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_191261/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_191261/source.c"
target datalayout = "e-m:e-p270: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.heapdata = type { d... |
#include <stdio.h>
int main(void){
// Your code here!
int n;
int a[100];
double ans=0;
scanf("%d",&n);
for(int i=0;i<n;i++){
scanf("%d",&a[i]);
ans+=1.0/(double)a[i];
}
printf("%f\n",1.0/ans);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_191304/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_191304/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
int main(void) {
int n;
double *a;
scanf("%d", &n);
a = malloc(sizeof(double) * n);
int i;
for (i = 0; i < n; i++){
scanf("%lf", &a[i]);
}
double ans = 0;
for (i = 0; i < n; i++)
ans += 1.0/a[i];
ans = 1.0 / ans;
printf... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_191348/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_191348/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ara[n];
for(int i=0;i<n;i++){
scanf("%d",&ara[i]);
}
double d=0;
for(int k=0;k<n;k++){
d=(double)(d+(double) 1/ara[k]);
}
d=(double)1/d;
printf("%lf\n",d);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_191391/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_191391/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 s;
double a[1000],b=0;
scanf("%d",&s);
for(int i=1;i<=s;i++){
scanf("%lf",&a[i]);
}
for(int i=1;i<=s;i++){
b+=1/a[i];
}
printf("%lf",1/b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_191434/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_191434/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n;
int i;
scanf("%d",&n);
int d[n];
double ans=0.0;
for(i=0;i<n;i++){
scanf("%d",&d[i]);
ans+=1.0/d[i];
}
printf("%lf\n",1.0/ans);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_191478/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_191478/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 nax 100009
int rec(int n,int k,int a[],int dp[],int pos){
if(dp[pos]!=-1) return dp[pos];
for(int i = 0 ; i < n;i++){
if(pos-a[i]>=0){
if(rec(n,k,a,dp,pos-a[i])==0){
return dp[pos]=1;
}
}
}
return dp[pos] = 0;
}
int main(){
int n,k,a[102];
int dp[nax];
scanf("%d %d", &... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_191520/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_191520/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
char str[200];
int is_balanced(int start,int end) {
int i,j;
int kakko_nest;
for(i=start;i<end;i++) {
if(str[i]==')' || str[i]==']')return 0;
if(str[i]=='(') {
kakko_nest=1;
for(j=i+1;j<end;j++) {
if(str[j]=='(')kakko_nest++;
else if(str[j]==')')kakko_nest--... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_191571/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_191571/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@str = dso_local global [20... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
int main(void) {
int n;
scanf("%d", &n);
long long int a[n];
long long int former = 0; // 切れ目よりも前の部分の長さ
long long int latter = 0; // 切れ目よりも後の部分の長さ
for (int i = 0; i < n; i++) {
scanf("%lld", &a[i]);
lat... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_191621/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_191621/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int a[1000000], b[1000000],c[1000000],d[1000000];
int main(int argc, char const *argv[])
{
int i,j,k,l,n,q,x,y;
for(i=0;i<200005;i++){
a[i] = 0;
b[i] = 0;
}
scanf("%d %d %d", &n, &k, &q);
for(i=0;i<n;i++){
scanf("%d %d", &x, &y);
y++;
a[x]++;
b[y]++;
}
int count = 0;
for(i=0;i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_19168/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_19168/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@a = dso_local local_unnamed_... |
#include <stdio.h>
int maximum(int a, int b){ return a > b ? a : b; }
int main(){
int A, B, C, X, Y, i;
long int min=10000000000, ans;
scanf("%d %d %d %d %d", &A, &B, &C, &X, &Y);
for(i=0; i<=100000; i++){
ans = i*2*C + maximum(0, X-i)*A + maximum(0, Y-i)*B;
if(min > ans)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_191722/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_191722/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, x, y, price_min, price_ab, price_c_max, price_ab_c;
scanf("%d %d %d %d %d", &a, &b, &c, &x, &y);
price_ab = a*x + b*y;
if(x > y){
price_c_max = x*2*c;
price_ab_c = y*2*c + (x-y)*a;
}else{
price_c_max = y*2*c;
price_ab_c = x*2*c + (y-x)*b;
}
if(price_ab ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_191766/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_191766/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 max(int a, int b) {
if (a < b) return b;
else return a;
}
int min(int a, int b) {
if (a < b) return a;
else return b;
}
int main()
{
int a, b, c, x, y;
scanf("%d", &a);
scanf("%d", &b);
scanf("%d", &c);
scanf("%d", &x);
scanf("%d", &y);
int notcut = a * x + b * y;
int partialcut =... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_191809/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_191809/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
typedef long long ll;
int main() {
ll n;
scanf("%lld", &n);
for (ll i = 1; i < 8; i++) {
if (pow(2, i) > n) {
printf("%lld\n", (ll)pow(2, i - 1));
return 0;
}
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_191852/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_191852/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
int n,i;
scanf("%d",&n);
while(1){
int m=n;
while(1){
if(m%2==0||m==1){m=m>1?m/2:1;if(m==1){printf("%d",n);return 0;}}
else{break;}
}
n--;
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_191896/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_191896/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,sum=0,a=1;
scanf("%d",&n);
for(int i=1;i<=n;i++)
{
a*=2;
if(a>n) break;
}
printf("%d",a/2);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_191939/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_191939/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 number_x, answer, i = 0;
scanf("%d", &number_x);
while(1) {
i++;
if(pow(2, i) > number_x) {
break;
}
}
answer = pow(2, i-1);
printf("%d\n", answer);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_191982/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_191982/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,ans=2;
scanf("%d",&n);
while(n>ans){
ans=ans*2;
}
if(ans>n){
ans=ans/2;
}
printf("%d\n",ans);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_192024/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_192024/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ans;
scanf("%d", &n);
for(ans=128; ans>1; ans/=2){
if(ans<=n) break;
}
printf("%d\n", ans);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_192125/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_192125/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, j;
int M;
int count;
int max = 0;
scanf("%d", &N);
if (N >= 64) {
max = 64;
}
else if (N >= 32) {
max = 32;
}
else if (N >= 16) {
max = 16;
}
else if (N >= 8) {
max = 8;
}
else if (N >= 4) {
max = 4;
}
else if (N >= 2) {
max = 2;
}
else {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_192169/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_192169/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main() {
int N;
scanf("%d", &N);
if(N >= 64) { printf("64"); return 0; }
else if (N >= 32) { printf("32"); return 0; }
else if (N >= 16) { printf("16"); return 0; }
else if (N >= 8) { printf("8"); return 0; }
else if (N >= 4) { printf("4"); return 0; }
else if (N >= 2) { printf("2"); retu... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_192211/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_192211/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, S[2][100001], P[100001], r, i;
char buf[100001];
scanf(" %s", buf);
N = strlen(buf);
for (i = 0; i < N; i++) {
S[0][i] = buf[i] - '0';
}
scanf(" %s", buf);
for (i = 0; i < N; i++) {
S[1][i] = b... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_19227/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_19227/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
long long gcd(long long a,long long b){
int temp;
if(a < b){
temp = a;
a = b;
b = temp;
}
if(a%b == 0)
{
return b;
}else
{
return gcd(b,a%b);
}
}
int main()
{
int n;
long long gcd(long long a,long long b)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_192312/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_192312/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
static int n, i;
static long t[100], t2[100];
long gcd(long a, long b) {
if (b) return gcd(b, a % b);
return a;
}
long lcm(long a, long b) {
return a / gcd(a, b) * b;
}
int main(void) {
scanf("%d", &n);
for (i = 0; i < n; ++i) scanf("%ld", t + i);
t2[0] = t[0];
for (i = 1;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_192356/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_192356/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 run(void){
char s[51];
scanf("%s",s);
int n=0;
while(s[n]!='\0') n++;
s[n-8]='\0';
printf("%s\n",s);
}
int main(void){
run();
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_192413/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_192413/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 sum=800*n-200*(n/15);
printf("%d\n",sum);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_192464/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_192464/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d", &a);
int b = 0;
b = a / 15;
printf("%d\n",a*800-200*b);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_192507/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_192507/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,count,x,y;
scanf("%d",&N);
count=N/15;
x=800*N;
y=200*count;
printf("%d",x-y);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_192550/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_192550/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
int mul = A / 15 ;
printf("%d",(A*800)-mul*200);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_192594/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_192594/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,sum;
scanf ("%d",&a);
sum=(a*800)-(200*(a/15));
printf ("%d",sum);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_192637/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_192637/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int n;
scanf("%d", &n);
printf("%d\n", n * 800 - (n / 15) * 200);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_192695/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_192695/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <ctype.h>
#include <stdlib.h>
/******memore********/
#define maxn
#define inf
int main()
{
int n, m;
while (~scanf("%d", &n))
{
m = n / 15;
printf("%d\n",n * 800 - m * 200 );
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_192738/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_192738/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,x,y;
scanf("%d",&N);
x=800*N;
y=200*(N/15);
printf("%d\n",x-y);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_192789/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_192789/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 Hoshina_check(char str[],int num){
int i;
if(str[num+1] != 'o')return;
if(str[num+2] != 's')return;
if(str[num+3] != 'h')return;
if(str[num+4] != 'i')return;
if(str[num+5] != 'n')return;
if(str[num+6] != 'o')return;
str[num+6]='a';
return;
}
int main(void){
char str[1001... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_192839/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_192839/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[101][101], val[101], i, j, cnt = 0;
for(i = 0;i < 101;i++)
val[i] = 1;
scanf("%d", &n);
for(i = 1;i <= n;i++) {
for(j = 1;j <= n;j++)
scanf("%d", &a[i][j]);
}
for(i = 1;i <= n;i++) {
for(j = 1;j <= n;j++) {
switch(a[i][j]) {
case 1:
val[i] = 0;
brea... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_19289/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_19289/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 ... |
//set many funcs template
//Ver.20190820
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<stdbool.h>
#include<time.h>
#include<assert.h>
#define inf 1072114514
#define llinf 4154118101919364364
#define mod 1000000007
#define pi 3.1415926535897932384
int max(int a,int b){if(a>b){return a;}return b;}
int... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_192947/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_192947/source.c"
target datalayout = "e-m:e-p270: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.sd = type { i32, i3... |
#include<stdio.h>
int main(void){
int N,K,i;
scanf("%d %d",&N,&K);
for(i=0;;i++){
if(N<K){break;}
else(N=N/K);
}
printf("%d",i+1);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_192998/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_192998/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[101][101],i,j;
scanf("%d",&n);
for(i=1;i<=n;i++) for(j=1;j<=n;j++) scanf("%d",&a[i][j]);
int b[101]={0};
for(i=1;i<=n;i++)
for(j=1;j<=n;j++)
{
if(a[i][j]==-1||a[i][j]==0)
continue;
else if(a[i][j]==1)
b[i]=1;
else if(a[i][j]==2)
b[j]=1;
else if(a[... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_19304/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_19304/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 ... |
/* ex3_1
terakura */
#include <stdio.h>
int main(void){
int n, bace, digits = 0;
scanf("%d %d", &n, &bace);
//nをbaceで割った商が0になるまで繰り返す
while(n>0){
n = n/bace; //nにnをbで割った商を代入
digits++; //digitsに1をたす
}
printf("%d\n", digits); //桁数を出力
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_193090/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_193090/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/* ex3_3
sak_Citrus*/
#include <stdio.h>
int main(void){
//nはintだとオーバーフローする
long int n;
int k;
scanf("%ld %d",&n,&k);
//解の初期化、kで何回割れるかが桁数に一致
int ans = 0;
while(1){
n = n / k;
ans += 1;
if(n == 0)
break;
}
//解出力+改行
printf("%d\n",ans);... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_193133/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_193133/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main (void){
int N,K;
scanf("%d%d",&N,&K);
int ans=0;
while(N>0){
N/=K;
ans++;
}
printf("%d",ans);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_193177/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_193177/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
char s[100001],t[100001],a[100001];
int main()
{
int n,i,j,c=0;
scanf("%s",s);
n=strlen(s);
scanf("%s",t);
for(i=0;i<n;i++)
{
if(s[i]==t[i])
{
a[i]=s[i];
c++;
}
}
c=n-c;
if(c%2!=0)
printf("impossible\n");
else
{
j=c/2;
i=0;
while(j--&&i<n)
{
while... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_19322/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_19322/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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, K, P;
scanf("%d %d", &N, &K);
P=0;
while(N != 0){
N = N/K;
++P;
}
printf("%d\n", P);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_193263/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_193263/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main()
{ int n,k;
scanf("%d%d",&n,&k);
int i=0;
while(pow(k,i)<=n){
i++;
}
printf("%d",i);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_193306/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_193306/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, K,i,a,b;
scanf("%d %d",&N,&K);
i=0;
loop:
a=N/K;
b=N/K;
N=b;
i=i+1;
if(a!=0)
goto loop;
printf("%d",i);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_193357/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_193357/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int k,c=0;
scanf("%lld%d",&n,&k);
while(n)
{ n=n/k;
c++;
}
printf("%d",c);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_193407/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_193407/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#ifdef TEST
struct test {
int ans;
} td[] = {
{},
};
#endif
void
solver(long n, int k)
{
long d;
d = 1;
while(n >= k) {
d++;
n = n / k;
}
printf("%ld\n", d);
}
int
main(int argc, char *argv[])
{
#ifdef TEST
int tt;
for(tt = 0... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_193458/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_193458/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,A,x = 0;
scanf ("%d %d",&H,&A);
while (H>0) {
H=H-A;
x++;
}
printf ("%d",x);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_193500/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_193500/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, A, c;
scanf("%d %d", &H, &A);
c=((H-1) / A ) + 1;
printf("%d\n", c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_193544/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_193544/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, a;
scanf("%d%d", &h,&a);
if(h%a!=0){
printf("%d", h/a+1);
}else{
printf("%d", h/a);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_193588/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_193588/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,h,i,b;
scanf("%d%d",&h,&a);
b=h/a;
i=h%a;
if(i>0) b=b+1;
else b=b+0;
printf("%d\n",b);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_193630/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_193630/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,a; scanf("%d%d",&h,&a);
if (h%a==0) printf("%d\n",h/a);
else printf("%d\n",h/a+1);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_193674/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_193674/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int A;
scanf("%d%d", &H, &A);
printf("%d",(((H+A)-1)/A));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_193731/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_193731/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, h, a, count=0;
scanf("%d %d", &h, &a);
do{
h -= a;
count++;
}while(h > 0);
printf("%d", count);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_193782/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_193782/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, A;
scanf("%d%d", &H, &A);
int x = 0;
while (H > 0) {
H -= A;
++x;
}
printf("%d\n", x);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_193825/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_193825/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, a;
scanf("%d", &h);
scanf("%d", &a);
if (h % a == 0) {
printf("%d\n", h / a);
} else {
printf("%d\n", h / a + 1);
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_193869/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_193869/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, d;
scanf("%d %d",&n,&a);
if(n%a==0) printf("%d",n/a);
else printf("%d",n/a + 1);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_193911/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_193911/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,a,n;
scanf("%d%d",&h, &a);
if(h%a == 0){
n=h/a;
printf("%d",n);
}
else if(h%a!=0){
n=h/a;
printf("%d",n+1);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_193955/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_193955/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
int main()
{
float h,a;
int n;
scanf("%f %f",&h,&a);
n=ceil(h/a);
printf("%d",n);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_193999/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_193999/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,a;
scanf("%d%d",&h,&a);
int ans=h/a;
if(h%a!=0){
ans++;}
printf("%d\n",ans);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_194040/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_194040/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#include <stdint.h>
#include <stdlib.h>
#include <limits.h>
#include <math.h>
int acs(const void *a, const void *b) { return *(int *)a - *(int *)b; } /* 1,2,3,4.. */
int des(const void *a, const void *b) { return *(int *)b - *(int *)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_194091/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_194091/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
int main() {
int n, w;
scanf("%d", &n);
int arr[n];
int mysum = 0;
for (int i = 0; i < n; i++) {
scanf("%d", &w);
mysum += w;
arr[i] = w;
}
int mindata = abs(arr[0] - (mysum - arr[0]));
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_194134/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_194134/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 abs(int a){
if(a>0) return a;
else return -1*a;
}
int main(void) {
int N;
scanf("%d",&N);
int n[N];
int a=0;
for(int i=0;i<N;i++){
scanf("%d",&n[i]);
a+=n[i];
}
int b=0;
int ans = a;
for(int i=0;i<N;i++){
for(int j=0;j<=i;j++){
b += n[j];
}
if(ans>abs(a-2*b)) ans =... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_194185/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_194185/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
// https://atcoder.jp/contests/abc129/tasks/abc129_b
#include <stdio.h>
#include <stdlib.h>
#define forn(i,L,R) for (int i = L; i < R; i++)
#define wez(n) int (n); scanf("%d",&(n))
#define getInt(a) scanf("%d", &a)
int main(){
wez(n);
int arr[n], sum = 0;
forn(i, 0, n)
getInt(arr[i]);
forn(i, ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_194228/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_194228/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int sum=0;
int n;
int t=0;
int w[101];
long min;
int s1=0;
int s2=0;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d ",&w[i]);
sum+=w[i];
}
//printf("%d\n",sum);
int sa[n];
for(i=0;i<n;i++){
s1+=w[i];
//printf("%d\n",s1);
s2=sum-s1;
sa[i]=abs((s1-... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_194271/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_194271/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void) {
int n;
scanf("%d",&n);
int m[n];
for(int i=0;i<n;i++) {
scanf("%d",&m[i]);
}
int k;
int min[10000];
for(int i=0;i<n-1;i++) {
int s1=0;
int s2=0;
for(k=0;k<=i;k++) {
s1+=m[k];
}
for(int j=n-1;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_194314/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_194314/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
void inp_str(int*);
int main(void) {
int input1[150];
inp_str(input1);
int input2[150];
inp_str(input2);
int temp=10000;
int sum=0;
int i;
for(i=0;i<input1[0];i=i+1){
sum=sum+input2[i];
}
int diff;
int j;
int sum2;
for(j=0;j<input1[0... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_194358/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_194358/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
int main(void){
int n,i,j,sl,sr,ans=10000000;
int w[120];
for(i=0;i<120;i++){
w[i]=0;
}
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&w[i]);
}
sl=w[0];
sr=0;
for(i=1;i<n;i++){
sr+=w[i];
}
ans=abs(sl-sr);
for... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_194400/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_194400/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 bs (int [], int, int);
int min(int b,int c)
{
if(b>=c) return c;
return b;
}
int main(void)
{
int i,j,n,a,dp[1000001],dp2[1000001];
for(i=0;i<=1000000;i++)
{
dp[i]=i;
dp2[i]=i;
}
for(i=3,a=4;a<=1000000;i++)
{
for(j=0;j+a<=1000000;j++)
{
dp[j+a]=min(dp[j+a],dp[j]+1);
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_194444/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_194444/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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)
{
while(1){
int matrix[11][11]={0};
int i,j;
int number;
scanf("%d",&number);
if( number==0 )break;
if( number>10 )break;
if( number<0 )break;
for( i=0; i<number; i++ ){
for( j=0; j<number; j++ ){
scanf("%d",&matrix[i][j]);
}
}
for( i=0; ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_194501/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_194501/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 hyou[11][11];
int datakazu;
int i,j;
int sum;
while(1) {
scanf("%d",&datakazu);
if(datakazu==0)break;
for(j=0;j<datakazu;j++) {
sum=0;
for(i=0;i<datakazu;i++) {
scanf("%d",&hyou[i][j]);
sum+=hyou[i][j];
}
hyou[datakazu][j]=sum;
}
for(i=0;i<=dat... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_194552/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_194552/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[100],k,m,i,j,a[100][11][11],b;
for(k=0;k<100;k++){
scanf("%d",&n[k]);
if(n[k]==0) break;
for(i=0;i<n[k];i++){
for(j=0;j<n[k];j++){
scanf("%d",&a[k][i][j]);
}
}
}
for(m=0;m<k;m++){
for(i=0;i<n[m];i++){
b=0;
for(j=0;j<n[m];j++){
b+=a[m][i][j];
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_194596/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_194596/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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("%d %d\n",n/30,n%30*2);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_194639/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_194639/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 101
int n,Go[N],Back[N],Link[N],Keep[N][N],Count=1;
void dfs(int x){
int i;
Go[x] = Count++;
for(i = 0; i < Link[x]; i++){
if(Go[Keep[x][i+1]] == 0){
dfs(Keep[x][i+1]);
}
}
Back[x] = Count++;
}
int main(){
int i,j,Num;
scanf("%d",&n);
for( i = 0; i < n; i++){
Go[i+... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_194682/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_194682/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@Count = dso_local local_un... |
#include <stdio.h>
#include <stdlib.h>
int n,i,j,u,k,tmp;
int list[100][100]={};
int time=0;
int timelist[100][2];
void search(int y){
int ii,jj;
time++;
timelist[y][0]=time;
for(jj=0;jj<n;jj++){
list[jj][y]=0;
}
for(ii=0;ii<n;ii++){
if(list[y][ii]==1){
search(ii);
}
}
time++;
timelist[y][1]=time;
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_194826/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_194826/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@list = dso_local local_unn... |
#include<stdio.h>
#define N 105
#define WHITE 0
#define GRAY 1
#define BLACK 2
int d[N],f[N];
int n;
int color[N],t,a[N][N];
void dfs();
void visit(int);
int main(){
int id,v,k;
int i,j;
scanf("%d",&n);
for(i=1; i <= n; i++){
for(j=1; j <=n; j++){
d[i]=0;
f[i]=0;
a[i][j]=0;
}
}
for... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_194884/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_194884/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 100
#define WHITE 0
#define GRAY 1
#define BLACK 2
int n, M[N][N];
int color[N], d[N], f[N], tt;
void dfs_visit(int u) {
int v;
color[u] = GRAY;
d[u] = ++tt;
for ( v = 0; v < n; v++ ) {
if ( M[u][v] == 0 ) continue;
if ( color[v] == WHITE ) {
dfs_visit(v);
}
}
color[u] = BLA... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_194934/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_194934/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@color = dso_local local_un... |
#include <stdio.h>
#define WHITE 1
#define BLACK 0
#define GRAY -1
#define N 250
void dfs(void);
void visit(int);
int d[N];
int f[N];
int color[N];
int str[N][N];
int count = 0;
int n;
int main(){
int i;
int j;
int k;
int num;
int point;
scanf("%d",&n);
for(i=1;i<=n;i++){
scanf("%d%d",&num,&k);
for(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_194978/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_194978/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@count = dso_local local_un... |
#include<stdio.h>
#define N 100
#define WHITE 0
#define GRAY 1
#define BLACK 2
int n, M[N][N];
int color[N], d[N], f[N], tt;
void dfs_visit(int u){
int v;
color[u] = GRAY;
d[u] = ++tt;
for(v = 0 ; v < n ; v++){
if(M[u][v] == 0) continue;
if(color[v] == WHITE){
dfs_visit(v);
}
}
color[u] ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_195070/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_195070/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@color = dso_local local_un... |
/*s1190073 Rina Sato
File name: prog11b.c
This is a depth first search program.
*/
#include <stdio.h>
#define White 0
#define Gray -1
#define Black 1
int d[103],f[103];
int n,time,r;
int A[103][103];
int color[103];
typedef struct Input{
int u;
int k;
int v[1000];
}input;
void DFSvisit(int u){
int i,j... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_195120/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_195120/source.c"
target datalayout = "e-m:e-p270: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.Input = type { i32,... |
#include<stdio.h>
#define N 100
#define WHITE 0
#define GRAY 1
#define BLACK 2
int n, M[N][N];
int color[N],d[N],f[N], tt;
void dfs_visit(int u){
int v;
color[u] = GRAY;
d[u] = ++tt;
for(v = 0; v < n; v++ ){
if( M[u][v] == 0 ) continue;
if( color[v] == WHITE ){
dfs_visit(v);
}
}
color[u... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_195171/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_195171/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@color = dso_local local_un... |
#include <stdio.h>
int N[101], d[101], f[101], C[101][101], nt[101];
int time, n;
typedef struct stack{
int arry[101];
int top;
}Stack;
struct stack S;
int push(int input){
if(S.top < 101){
S.top++;
S.arry[S.top] = input;
return 0;
}
return -1;
}
int pop(){
if(S.top != 0){
int temp ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_195214/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_195214/source.c"
target datalayout = "e-m:e-p270: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.stack = type { [101... |
#include <stdio.h>
#define N 100
#define WHITE 0
#define BLACK 1
#define GRAY 2
int represent[N][N],u,color[N],f[N],d[N],tt;
void dfs_cal(int n)
{
int v;
color[n]=GRAY;
d[n]=++tt;
for(v=0;v<u;v++)
{
if(represent[n][v]==0)continue;
if(color[v]==WHITE)
{
dfs_cal(v);
}
}
color[n]=BLACK... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_195258/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_195258/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@color = dso_local local_un... |
#include <stdio.h>
#define N 100
#define WHITE 0
#define GRAY 1
#define BLACK 2
int n,G[N][N];
int color[N],d[N],f[N],t;
void _dfs(int u){
int v;
color[u] = GRAY;
d[u] = ++t;
for(v=0;v<n;v++){
if(G[u][v] == 0)continue;
if(color[v] == WHITE){
_dfs(v);
}
}
color[u] = BLACK;
f[u] = ++t;
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_195300/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_195300/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@color = dso_local local_un... |
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#define MAX_NODE 100
struct Vertex {
int i; /* vertex id */
int degree;
int adj[MAX_NODE + 1]; /* 1 ~ MAX_NODE */
};
static void VertexInitialize(struct Vertex* V, ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_195344/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_195344/source.c"
target datalayout = "e-m:e-p270: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.Graph = type { i32,... |
#include<stdio.h>
#define N 100
#define WHITE 0
#define GRAY 1
#define BLACK 2
int n,M[N][N];
int color[N],d[N],f[N],tt;
void dfs_visit(int u){
int v;
color[u]=GRAY;
d[u]=++tt;
for(v=0;v<n;v++){
if(M[u][v]==0) continue;
if(color[v]==WHITE){
dfs_visit(v);
}
}
color[u]=BLACK;
f[u]=++tt;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_195388/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_195388/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@color = dso_local local_un... |
#include<stdio.h>
#define N 100
#define WHITE 0
#define GRAY 1
#define BLACK 2
int g[N][N],n;
int color[N],d[N],f[N],time;
void visit(int u){
int v;
color[u]=GRAY;
d[u]=++time;
for(v=0;v<n;v++){
if(g[u][v]==0) continue;
if(color[v]==WHITE){
visit(v);
}
}
color[u]=BLACK;
f[u]=++time;
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_195430/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_195430/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@color = dso_local local_un... |
#include<stdio.h>
#define MAX 100
#define WHILE 0
#define GRAY 1
#define BLACK 2
int G[MAX+1][MAX+1],vt[MAX+1],f[MAX+1];
int col[MAX+1];
int time=0,n;
void visit(int i){
int u;
col[i] = GRAY;
vt[i] = ++time;
for(u=1; u<=n; u++){
if(G[i][u] == 0)continue;
if(col[u] == WHILE){
visit(u);
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_195474/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_195474/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@time = dso_local local_unn... |
#include <stdio.h>
#define N 100
void dfs(void);
void dfs_visit(int);
int m[N][N],n;
int color[N],f[N],d[N],tt;
int main()
{
int i,j,z,v,k;
scanf("%d",&n);
for(i=0;i<n;i++)
{
for(j=0;j<n;j++)
{
m[i][j]=0;
}
}
for(i=0;i<n;i++)
{
scanf("%d %d",&v,&z);
v--;
for(j=0;j<z... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_195517/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_195517/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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
#define white 0
#define gray 1
#define black 2;
void dfs();
void visit(int);
int num,array[max][max];
int color[max],data[max],f[max],count;
int main(){
int u,v,k,i,j;
scanf("%d",&num);
for(i = 0;i < num;i++){
for(j = 0;j < num;j++){
array[i][j] = 0;
}
}
f... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_195560/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_195560/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 W 0
#define G 1
#define B 2
int n,M[100][100];
int color[100],d[100],f[100],time;
void visit(int);
void dfs();
int main(){
int i,j,u,k,v;
scanf("%d",&n);
for(i=0;i<n;i++){
for(j=0;j<n;j++){
M[i][j]=0;
}
}
for(i=0;i<n;i++){
scanf("%d%d",&u,&k);
u--;
for... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_195618/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_195618/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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 2824: Coastline
// 2017.9.23 bal4u@uu
// 2017.11.25
// 2018.1.4
#include <stdio.h>
int a[100000], size;
//#define getchar_unlocked() getchar()
int in()
{
int n = 0;
int c = getchar_unlocked();
do n = (n<<3)+(n<<1) + (c & 0xf), c = getchar_unlocked();
while (c >= '0');
return n;
}
int main()
{
int t, d... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_195661/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_195661/source.c"
target datalayout = "e-m:e-p270: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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.