結果
| 問題 | 
                            No.1943 消えたAGCT(1)
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2022-05-20 22:11:52 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 16 ms / 2,000 ms | 
| コード長 | 414 bytes | 
| コンパイル時間 | 730 ms | 
| コンパイル使用メモリ | 93,764 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-09-20 08:22:28 | 
| 合計ジャッジ時間 | 1,980 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 27 | 
ソースコード
#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <map>
#include <set>
#include <fstream>
#include <cmath>
#include <stack>
#include <queue>
#include <iomanip>
using namespace std;
int main(){
  int n;cin>>n;
  string s;cin>>s;
  int index = 0;
  for(int i=1;i<=n;i++){
    if(s[i-1]=='A' || s[i-1]=='G' || s[i-1]=='C' || s[i-1]=='T') index = i;
  }
  cout << index << endl;
}