結果
問題 | No.494 yukicoder |
ユーザー |
![]() |
提出日時 | 2023-06-08 16:24:59 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 520 bytes |
コンパイル時間 | 244 ms |
コンパイル使用メモリ | 29,440 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-31 01:14:56 |
合計ジャッジ時間 | 844 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 7 |
ソースコード
#include <stdio.h>#include <malloc.h>char str[10];int str_len = 0;/// <summary>/// グローバル変数strの中身を入力された文字列で上書きする/// </summary>void ReadString() {char c = getchar();str_len = 0;while (c != '\n') {str[str_len] = c;c = getchar();str_len++;}}int main(){char yuki[9] = { 'y', 'u', 'k', 'i', 'c', 'o', 'd', 'e', 'r'};int index = 0;ReadString();for (int i = 0;i < 10;i++) {if (str[i] == '?') index = i;}printf("%c\n",yuki[index]);}