結果

問題 No.1943 消えたAGCT(1)
ユーザー keisuke6
提出日時 2022-05-20 23:48:47
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 15 ms / 2,000 ms
コード長 258 bytes
コンパイル時間 1,679 ms
コンパイル使用メモリ 166,028 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-20 10:14:31
合計ジャッジ時間 2,565 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
#define int long long
signed main(){
  int N;
  string S;
  cin>>N>>S;
  int ans = 0;
  for(int i=0;i<N;i++){
     if(S[i] == 'A' || S[i] == 'C' || S[i] == 'G' || S[i] == 'T') ans = i+1;
  }
  cout<<ans<<endl;
}
0