Sha256: d4fb886e7e870e34d1263feaf7ad6f784076457bd08abc82ef3338292a7c2324

Contents?: true

Size: 523 Bytes

Versions: 7

Compression:

Stored size: 523 Bytes

Contents

#include <stdio.h>
#include <stdlib.h>

int get_int() {
  int x;
  if (scanf("%d", &x) == EOF) {
    exit(0);
  }
  return x;
}

int put_int(int x) {
  printf("%d\n", x);
  return 0;
}

float get_float() {
  float x;
  if (scanf("%f", &x) == EOF) {
    exit(0);
  }
  return x;
}

int put_float(float x) {
  printf("%f\n", x);
  return 0;
}

int get_int_pair(int* a, int* b) {
  if (scanf("%d %d", a, b) == EOF) {
    exit(0);
  }
  return 0;
}

int put_int_pair(int a, int b) {
  printf("(%d, %d)\n", a, b);
  return 0;
}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sfrp-1.5.2 base-library/Base/STDIO.c
sfrp-1.5.1 base-library/Base/STDIO.c
sfrp-1.5.0 base-library/Base/STDIO.c
sfrp-1.4.0 base-library/Base/STDIO.c
sfrp-1.2.1 base-library/Base/IO/STDIO.c
sfrp-1.2.0 base-library/Base/IO/STDIO.c
sfrp-1.1.0 base-library/IO/STDIO.c