結果
| 問題 |
No.494 yukicoder
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-03-29 01:17:21 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 292 bytes |
| コンパイル時間 | 433 ms |
| コンパイル使用メモリ | 56,388 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-06 13:33:24 |
| 合計ジャッジ時間 | 879 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 7 |
ソースコード
#include <iostream>
#include <string>
int main() {
std::string s;
const std::string y("yukicoder");
std::cin >> s;
for (auto itr = s.begin(); itr != s.end(); itr++) {
if (*itr == '?') {
int d = std::distance(s.begin(), itr);
std::cout << y[d] << std::endl;
return 0;
}
}
}