結果
| 問題 | No.1943 消えたAGCT(1) |
| コンテスト | |
| ユーザー |
horiesiniti
|
| 提出日時 | 2023-05-12 20:29:47 |
| 言語 | Ruby (4.0.2) |
| 結果 |
AC
|
| 実行時間 | 56 ms / 2,000 ms |
| コード長 | 102 bytes |
| 記録 | |
| コンパイル時間 | 565 ms |
| コンパイル使用メモリ | 8,832 KB |
| 実行使用メモリ | 16,384 KB |
| 最終ジャッジ日時 | 2026-05-22 16:26:32 |
| 合計ジャッジ時間 | 3,472 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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