提出 #6190047
ソースコード 拡げる
// {{{
#include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <random>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <tuple>
#include <utility>
#include <vector>
// }}}
using namespace std;
using ll = long long;
using ull = unsigned long long;
using ld = long double;
static constexpr int mod = (int)1e9 + 7;
static constexpr int inf = 100100100;
static constexpr ll linf = 1e18;
static constexpr double eps = 1e-9;
static constexpr double pi = 3.14159265359;
#define rep(i, n) for (ll i = 0; i < n; ++i)
#define rrep(i, n) for (ll i = n; i >= 0; --i)
#define all(c) begin(c), end(c)
#define rall(c) rbegin(c), rend(c)
#define pb push_back
#define ist insert
#define fst first
#define snd second
int main() {
// cin.tie(0);
// ios_base::sync_with_stdio(false);
char b;
cin >> b;
map<char, char> M = {
{'A', 'T'},
{'C', 'G'},
{'G', 'C'},
{'T', 'A'}
};
cout << M[b] << endl;
}
提出情報
| 提出日時 | |
|---|---|
| 問題 | A - Double Helix |
| ユーザ | gochiusa |
| 言語 | C++14 (Clang 3.8.0) |
| 得点 | 100 |
| コード長 | 1202 Byte |
| 結果 | AC |
| 実行時間 | 1 ms |
| メモリ | 256 KiB |
ジャッジ結果
| セット名 | Sample | All | ||||
|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 100 / 100 | ||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| Sample | a01, a02 |
| All | a01, a02, b03, b04 |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| a01 | AC | 1 ms | 256 KiB |
| a02 | AC | 1 ms | 256 KiB |
| b03 | AC | 1 ms | 256 KiB |
| b04 | AC | 1 ms | 256 KiB |