平成20年度春季 基本情報技術者試験(FE)の午後問題10は、
に関する問題でした。
プログラム例(h20h_fe_pm10.c)
実行結果
$ gcc h20h_fe_pm10.c && ./a.out 32 = 32/1 5.237 = 5237/1000 0.875 = 7/8 1.{3} = 4/3 0.2{142857} = 3/14
平成20年度春季 基本情報技術者試験(FE)の午後問題10は、
に関する問題でした。
$ gcc h20h_fe_pm10.c && ./a.out 32 = 32/1 5.237 = 5237/1000 0.875 = 7/8 1.{3} = 4/3 0.2{142857} = 3/14
平成20年度春季 基本情報技術者試験(FE)の午後問題6は、
に関する問題でした。
The program language includes C, COBOL, Java, etc\Computer Journal. The feature of the Java language has been to have taken the idea of object-oriented\Java Report. In other languages, the idea of object-oriented is being taken\Computer Journal.
$ gcc h20h_fe_pm6.c && ./a.out from.txt to.txt (C言語での実行) $ ruby h20h_fe_pm6.rb from.txt to.txt (Rubyでの実行)
The program language includes C, COBOL, Java, etc[1]. The feature of the Java language has been to have taken the idea of object-oriented[2]. In other languages, the idea of object-oriented is being taken[1].
References
[1] Computer Journal
[2] Java Report
平成20年度春季 基本情報技術者試験(FE)の午後問題4は、
に関する問題でした。
設問2を実行した様子が以下です。
$ gcc h20h_fe_pm4.c && ./a.out usb -> cgi -> cpu -> dos -> fat 1 cgi -> usb -> cpu -> dos -> fat 2 cpu -> cgi -> usb -> dos -> fat 3 dos -> cpu -> cgi -> usb -> fat
平成20年度秋季 基本情報技術者試験(FE)の午後問題10は、
に関する問題でした。
試験問題では、暗号化する関数のみでしたが、元に戻せないと面白くないので、平文に戻す復号関数(decrypt_text)も作って試してみました。換字表についても、問題文とは異なっています(単純な換字表です)。
$ gcc h20a_fe_pm10.c -o fecrypt
This is a plain text. Good Luck!!
$ ./fecrypt e in.txt out.txt !"#$%&'()*+,-./0123456 789:;<=>?@ABCDEFGHIJKLM NOPQRSTUVWXYZ[\]^_`abcd efghijklmnopqrstuvwxyz{
Qkjt$ee.N3qmRxe)ufyu0 E++N6GzTz99
$ ./fecrypt d out.txt tmp.txt !"#$%&'()*+,-./0123456 789:;<=>?@ABCDEFGHIJKLM NOPQRSTUVWXYZ[\]^_`abcd efghijklmnopqrstuvwxyz{ $ cat tmp.txt This is a plain text. Good Luck!!
平成20年度秋季 基本情報技術者試験(FE)の午後問題6は、
に関する問題でした。
$ gcc h20a_fe_pm6.c && ./a.out 1,234,567 -57,482 63 -999,999