結果

問題 No.494 yukicoder
ユーザー 西尾西尾
提出日時 2017-09-13 15:15:41
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 368 bytes
コンパイル時間 1,848 ms
コンパイル使用メモリ 162,560 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-25 09:14:41
合計ジャッジ時間 2,128 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,248 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

//No.494 yukicoder


#include <bits/stdc++.h>
using namespace std;
namespace
{
int iB;
int iR;
const char lpYuki[] = "yukicoder";

int Chk( char *S )
{
int i;
char C;

	i = 0;
	C = S[ i ];
	while( C == lpYuki[ i ] && C != '\0' ) i++;

	return i;
}

}

int main()
{
int i;
char S[ 20 ];

	cin >> S;

	i = Chk( S );

	cout << lpYuki[ i + 1 ] << endl;


	return 0;
}




0