結果

問題 No.494 yukicoder
ユーザー takahiro-serikawa
提出日時 2019-05-02 23:29:44
言語 C90
(gcc 12.3.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 161 bytes
コンパイル時間 236 ms
コンパイル使用メモリ 20,480 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-12-31 13:52:03
合計ジャッジ時間 940 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 7
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:7:9: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    7 |         fgets(S, 10, stdin);
      |         ^~~~~~~~~~~~~~~~~~~

ソースコード

diff #

#include <stdio.h>
#include <string.h>

int main()
{
	char S[10];
	fgets(S, 10, stdin);
	int i = strchr(S, '?') - S;
	putchar("yukicoder"[i]);
	putchar('\n');
}
0