結果
問題 | No.1943 消えたAGCT(1) |
ユーザー |
👑 ![]() |
提出日時 | 2022-05-20 22:21:04 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 50 ms / 2,000 ms |
コード長 | 162 bytes |
コンパイル時間 | 228 ms |
コンパイル使用メモリ | 82,956 KB |
実行使用メモリ | 62,428 KB |
最終ジャッジ日時 | 2024-09-20 08:34:15 |
合計ジャッジ時間 | 2,288 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 27 |
ソースコード
N = int(input()) S = input() last = None for i in range(N): if S[i] in "AGCT": last = i if last == None: print (0) else: print (last+1)