結果
| 問題 | No.1943 消えたAGCT(1) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-05-22 18:38:51 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 133 ms / 2,000 ms |
| + 683µs | |
| コード長 | 157 bytes |
| 記録 | |
| コンパイル時間 | 284 ms |
| コンパイル使用メモリ | 21,204 KB |
| 実行使用メモリ | 19,532 KB |
| 最終ジャッジ日時 | 2026-08-31 19:26:17 |
| 合計ジャッジ時間 | 4,969 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)