2006 年度「情報処理演習A」 2006-06-30 別紙データ

授業期間が終わるまでは、このデータはネット上では非公開でした。 (もしも公開していたら、 コピー&ペーストであっと言う間に課題が終わってしまったでしょう。)

開始 終了     甲       乙       丙       開始 終了     甲       乙       丙

 01:        124.96   181.09   266.91      47:  16:   354.30   469.93   576.27
 02:        112.87   184.78   276.08      48:  17:   345.15   478.48   598.52
 03:        125.09   188.55   262.59      49:  18:   352.47   474.44   586.51
 04:        135.45   199.63   278.95      50:  19:   375.87   492.07   613.74
 05:        149.82   220.96   296.93      51:  20:   369.53   502.46   598.38
 06:        137.39   234.09   299.85      52:  21:   369.86   486.21   618.77
 07:        162.54   230.21   281.46      53:  22:   369.55   497.58   631.49
 08:        168.50   231.96   317.38      54:  23:   392.77   517.23   639.69
 09:        156.83   233.22   308.99      55:  24:   398.01   521.32   634.42
 10:        178.42   258.99   308.65      56:  25:   392.34   504.79   624.75
 11:        156.85   261.35   310.69      57:  26:   408.03   518.29   636.87
 12:        177.57   256.98   340.16      58:  27:   414.72   525.56   651.61
 13:        179.71   266.90   347.29      59:  28:   407.81   551.67   653.20
 14:        201.23   284.35   348.27      60:  29:   416.31   534.81   669.52
 15:        187.09   274.34   361.84           30:   425.46   558.54   673.53
 16:        203.33   285.95   365.90           31:   426.18   555.77   672.44
 17:        212.73   287.34   378.66           32:   427.36   560.20   698.70
 18:        190.24   276.68   372.00           33:   444.53   562.27   683.99
 19:        195.02   309.28   365.72           34:   432.56   564.82   716.84
 20:        208.55   301.03   399.90           35:   461.81   577.15   710.12
 21:        236.90   317.42   407.23           36:   453.33   602.40   730.00
 22:        218.77   324.91   400.03           37:   446.41   588.91   731.03
 23:        220.09   309.13   410.63           38:   474.58   614.06   743.17
 24:        236.41   324.92   423.74           39:   464.56   596.81   740.18
 25:        238.02   329.40   437.09           40:   474.91   617.53   757.31
 26:        250.60   341.14   420.39           41:   490.94   626.35   758.80
 27:        264.44   344.44   438.04           42:   485.75   636.83   752.20
 28:        251.73   344.80   458.57           43:   494.00   627.00   753.34
 29:        258.82   367.59   464.42           44:   500.82   621.84   775.54
 30:        259.81   355.48   462.22           45:   492.96   655.08   784.03
 31:        280.45   368.98   453.51           46:   485.07   662.09   798.21
 32:  01:   276.58   370.13   469.54           47:   495.18   636.09   807.50
 33:  02:   281.27   382.67   467.23           48:   524.68   658.08   799.30
 34:  03:   289.21   398.43   469.91           49:   511.85   664.10   814.18
 35:  04:   298.26   388.07   492.10           50:   516.20   671.28   801.89
 36:  05:   301.08   395.83   485.25           51:   526.29   689.29   811.03
 37:  06:   308.71   421.90   508.41           52:   544.17   694.65   828.63
 38:  07:   313.07   422.38   507.33           53:   526.35   673.74   849.35
 39:  08:   301.08   430.17   511.23           54:   537.34   705.73   848.23
 40:  09:   318.47   419.51   535.92           55:   557.12   714.71   861.43
 41:  10:   313.14   426.42   527.19           56:   536.94   717.33   852.62
 42:  11:   310.73   435.20   527.42           57:   559.05   726.52   862.70
 43:  12:   324.42   449.77   564.32           58:   548.98   708.36   857.40
 44:  13:   325.91   448.08   554.53           59:   572.60   723.27   883.00
 45:  14:   351.48   443.80   557.34           60:   574.51   715.37   884.12
 46:  15:   351.40   445.68   563.97     

次が、上のデータを作るのに使ったプログラムです。これも当時は秘密でした。

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

#define N 60        /* 学生数 */
#define M 32        /* 一人あたりのデータ数 */
#define SEED 24387  /* 乱数の種(いちおう秘密) */

void out(int i);

double a[N+M];
double b[N+M];
double c[N+M];

main() {
    int i;

    srand(SEED);
    for (i = 1; i < N+M; i++) {
        a[i] = ((i+20) * 500 + rand()%65536/10) / 100.0;
        b[i] = ((i+28) * 600 + rand()%65536/10) / 100.0;
        c[i] = ((i+33) * 700 + rand()%65536/10) / 100.0;
    }

    printf("開始 終了     甲       乙       丙       開始 終了     甲       乙       丙\n\n");
    for (i = 1; i <= (N+M)/2; i++) {
        out(i);
        printf("     ");
        if (i+(N+M)/2 < N+M) {
            out(i+(N+M)/2);
        }
        putchar('\n');
    }
}


void out(int i) {
    char s[128+1];

    if (1 <= i && i <= N) {
        sprintf(s, "%02d", i);
        printf(" %02s: ", s);
    } else {
        printf("     ");
    }
    if (M <= i) {
        sprintf(s, "%02d", i-M+1);
        printf(" %02s:   ", s);
    } else {
        printf("       ");
    }
    printf("%.2f   %.2f   %.2f", a[i], b[i], c[i]);
}

岩瀬順一