結果
| 問題 | No.494 yukicoder |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-05-02 23:29:44 |
| 言語 | C90 (gcc 12.4.0) |
| 結果 |
AC
|
| 実行時間 | 19 ms / 2,000 ms |
| コード長 | 161 bytes |
| 記録 | |
| コンパイル時間 | 140 ms |
| コンパイル使用メモリ | 28,996 KB |
| 最終ジャッジ日時 | 2026-02-24 01:03:02 |
|
ジャッジサーバー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);
| ^~~~~~~~~~~~~~~~~~~
ソースコード
#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');
}