結果
| 問題 |
No.1943 消えたAGCT(1)
|
| コンテスト | |
| ユーザー |
horiesiniti
|
| 提出日時 | 2023-05-12 20:29:47 |
| 言語 | Ruby (3.4.1) |
| 結果 |
AC
|
| 実行時間 | 87 ms / 2,000 ms |
| コード長 | 102 bytes |
| コンパイル時間 | 340 ms |
| コンパイル使用メモリ | 7,424 KB |
| 実行使用メモリ | 13,568 KB |
| 最終ジャッジ日時 | 2024-11-28 16:21:00 |
| 合計ジャッジ時間 | 3,785 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 27 |
コンパイルメッセージ
Syntax OK
ソースコード
n=gets.to_i s=gets.chomp.reverse ans=s.index(/[AGCT]/,0) if ans.nil? then puts 0 else puts n-ans end
horiesiniti