結果
| 問題 |
No.1735 C#
|
| コンテスト | |
| ユーザー |
houren
|
| 提出日時 | 2021-11-12 21:22:06 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 397 bytes |
| コンパイル時間 | 1,314 ms |
| コンパイル使用メモリ | 166,648 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-25 11:48:51 |
| 合計ジャッジ時間 | 1,760 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 7 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int,int>;
#define rep(i, n) for(int i = 0; i < n; i++)
#define all(x) (x).begin(),(x).end()
int main(){
char c;
cin >> c;
string s = "ACDFG";
rep(i,5){
if(c==s[i]){
cout << c << "#" << endl;
return 0;
}
}
cout << (char)(c+1) << endl;
return 0;
}
houren