>>420
問1
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
/* 変数宣言 */
int res, n = 0;
const char* omikuji[4] = {"大凶", "凶", "吉", "大吉"};

void main()
{
/* 実行時の時間で乱数を初期化して実行ごとに違う結果を得られるようにする */
srandom((unsigned int) time(NULL));
/* 0〜19の20通りの乱数を得る。20分率、5%刻み。 */
res = random() % 20;
if(res >= 18) /* 確率10%で大吉 */
++n;
if(res >= 15) /* 確率15%で吉 */
++n;
if(res >= 1) /* 確率70%で凶 */
++n;
puts(omikuji[n]); /* 確率 5%で大凶 */
}