結果
| 問題 |
No.494 yukicoder
|
| コンテスト | |
| ユーザー |
kichirb3
|
| 提出日時 | 2018-02-27 09:56:48 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 404 bytes |
| コンパイル時間 | 442 ms |
| コンパイル使用メモリ | 64,128 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-27 19:28:42 |
| 合計ジャッジ時間 | 1,028 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 7 |
コンパイルメッセージ
main.cpp: In function 'char solve(std::string&)':
main.cpp:24:1: warning: control reaches end of non-void function [-Wreturn-type]
24 | }
| ^
ソースコード
// No.494 yukicoder
// https://yukicoder.me/problems/no/494
//
#include <iostream>
#include <string>
using namespace std;
char solve(string &S);
int main() {
string S;
cin >> S;
char ans = solve(S);
cout << ans << endl;
}
char solve(string &S) {
string orig = "yukicoder";
for (auto i = 0; i < S.size(); i++) {
if (S[i] != orig[i])
return orig[i];
}
}
kichirb3