結果
| 問題 | No.1943 消えたAGCT(1) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-05-22 18:38:51 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 137 ms / 2,000 ms |
| コード長 | 157 bytes |
| 記録 | |
| コンパイル時間 | 597 ms |
| コンパイル使用メモリ | 20,956 KB |
| 実行使用メモリ | 19,468 KB |
| 最終ジャッジ日時 | 2026-04-08 23:53:00 |
| 合計ジャッジ時間 | 4,907 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 27 |
ソースコード
n=int(input())
s=list(input()[::-1])
m=1e9
for c in "AGCT":
if c in s and s.index(c)<m:
m=s.index(c)
if m==1e9:
print(0)
else:
print(n-m)