結果
| 問題 |
No.1735 C#
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-12-28 00:58:12 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 204 bytes |
| コンパイル時間 | 1,825 ms |
| コンパイル使用メモリ | 192,248 KB |
| 最終ジャッジ日時 | 2025-02-18 14:47:37 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 7 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main(){
string s1="CDEFGABC",s2="ACDFG";
string s;
cin>>s;
if(s2.find(s)<5){
cout<<s<<"#"<<endl;
}
else{
cout<<s1[s1.find(s)+1]<<endl;
}
}