#include <stdio.h>
#include <stdlib.h>
/** argc: 引数の個数、argv[0]:プログラム名、argv[1]~argv[n]:実数 **/
int main( int argc, char *argv[] )
{
int i;
double d = 0.0;
if (argc < 2) {
printf("使用法: ./prog 得点 [..]\n"); return 1;
}
for (i = 1; i < argc; i++) {
}
printf("平均値=%f\n", d
/ (argc
- 1)); return(0);
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KCi8qKiBhcmdjOiDlvJXmlbDjga7lgIvmlbDjgIFhcmd2WzBd77ya44OX44Ot44Kw44Op44Og5ZCN44CBYXJndlsxXe+9nmFyZ3Zbbl3vvJrlrp/mlbAgKiovCmludCBtYWluKCBpbnQgYXJnYywgY2hhciAqYXJndltdICkKewoJaW50CWk7Cglkb3VibGUJZCA9IDAuMDsKCglpZiAoYXJnYyA8IDIpIHsKCQlwcmludGYoIuS9v+eUqOazlTogLi9wcm9nIOW+l+eCuSBbLi5dXG4iKTsKCQlyZXR1cm4gMTsKCX0KCWZvciAoaSA9IDE7IGkgPCBhcmdjOyBpKyspIHsKCQlkICs9IGF0b2YoIGFyZ3ZbaV0gKTsKCX0KCXByaW50Zigi5bmz5Z2H5YCkPSVmXG4iLCBkIC8gKGFyZ2MgLSAxKSk7CglyZXR1cm4oMCk7Cn0K