WOJ 1002 Genesis

WOJ 1002 Genesis
刚刚通过武大保送生测试,刚开始做WOJ,结果第二道题就用了打表。
不过打表也需要技术,打表也需要耐心。这道题你不仔细数还真数不对!我一遍就AC了~
以下是我的代码:
#include < stdio.h >
int  main()
{
    printf(
" 1:1 10\n " );
    printf(
" 1:2 31\n " );
    printf(
" 1:3 11\n " );
    printf(
" 1:4 22\n " );
    printf(
" 1:5 19\n " );
    printf(
" 1:6 19\n " );
    printf(
" 1:7 26\n " );
    printf(
" 1:8 20\n " );
    printf(
" 1:9 25\n " );
    printf(
" 1:10 27\n " );
    printf(
" 1:11 30\n " );
    printf(
" 1:12 35\n " );
    printf(
" 1:13 11\n " );
    printf(
" 1:14 41\n " );
    printf(
" 1:15 21\n " );
    printf(
" 1:16 33\n " );
    printf(
" 1:17 15\n " );
    printf(
" 1:18 26\n " );
    printf(
" 1:19 11\n " );
    printf(
" 1:20 25\n " );
    printf(
" 1:21 33\n " );
    printf(
" 1:22 29\n " );
    printf(
" 1:23 11\n " );
    printf(
" 1:24 34\n " );
    printf(
" 1:25 36\n " );
    printf(
" 1:26 50\n " );
    printf(
" 1:27 21\n " );
    printf(
" 1:28 49\n " );
    printf(
" 1:29 33\n " );
    printf(
" 1:30 37\n " );
    printf(
" 1:31 24\n " );
    printf(
" 2:1 13\n " );
    printf(
" 2:2 31\n " );
    printf(
" 2:3 31\n " );
return   0 ;
}

你可能感兴趣的:(WOJ 1002 Genesis)