結果
問題 | No.1943 消えたAGCT(1) |
ユーザー |
|
提出日時 | 2022-12-14 09:11:44 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 64 ms / 2,000 ms |
コード長 | 337 bytes |
コンパイル時間 | 802 ms |
コンパイル使用メモリ | 82,048 KB |
実行使用メモリ | 76,240 KB |
最終ジャッジ日時 | 2024-11-08 01:15:14 |
合計ジャッジ時間 | 2,934 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 27 |
ソースコード
import sys if sys.platform =='ios': import clipboard a=clipboard.get() a = a.split('\n') text = '\n'.join(a) with open('input_file.txt','w') as f: f.write(text) sys.stdin = open('input_file.txt') n = int(input()) s = input() cnt = 0 A = ["A","G","C","T"] for i in range(n-1,-1,-1): if s[i] in A: print(i+1) exit() print(0)