結果
| 問題 |
No.418 ミンミンゼミ
|
| コンテスト | |
| ユーザー |
ゆーたろ
|
| 提出日時 | 2016-11-20 10:12:43 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 1,000 ms |
| コード長 | 153 bytes |
| コンパイル時間 | 105 ms |
| コンパイル使用メモリ | 20,224 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-16 02:13:46 |
| 合計ジャッジ時間 | 938 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 25 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:7:9: warning: implicit declaration of function ‘gets’; did you mean ‘fgets’? [-Wimplicit-function-declaration]
7 | gets(s);
| ^~~~
| fgets
/usr/bin/ld: /tmp/ccENkeOj.o: in function `main':
main.c:(.text.startup+0x1c): 警告: the `gets' function is dangerous and should not be used.
ソースコード
#include <stdio.h>
int main(void) {
char s[101];
int i,sum=0;
gets(s);
for(i=0; s[i]; i++)
if(s[i]=='n') sum++;
printf("%d", sum);
return 0;
}
ゆーたろ