結果
| 問題 | No.2460 #強調# |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-10-04 16:50:53 |
| 言語 | C++17(clang) (clang++ 22.1.8 + boost 1.92.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| + 274µs | |
| コード長 | 363 bytes |
| 記録 | |
| コンパイル時間 | 1,099 ms |
| コンパイル使用メモリ | 129,024 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-08-24 11:54:18 |
| 合計ジャッジ時間 | 1,931 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 11 |
ソースコード
#include <iostream>
#include <string>
int main() {
std::string S;
std::cin >> S;
size_t left = S.find('#');
size_t right = S.rfind('#');
if (left != std::string::npos && right != std::string::npos && left < right) {
std::string ans = S.substr(left + 1, right - left - 1);
std::cout << ans << std::endl;
}
return 0;
}