結果

問題 No.805 UMG
ユーザー cielciel
提出日時 2019-03-25 01:54:41
言語 Ruby
(3.3.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 113 bytes
コンパイル時間 338 ms
コンパイル使用メモリ 11,340 KB
実行使用メモリ 15,552 KB
最終ジャッジ日時 2023-08-11 19:27:06
合計ジャッジ時間 15,631 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
15,384 KB
testcase_01 AC 82 ms
15,164 KB
testcase_02 AC 80 ms
15,152 KB
testcase_03 AC 80 ms
15,092 KB
testcase_04 AC 78 ms
15,248 KB
testcase_05 AC 79 ms
15,208 KB
testcase_06 AC 77 ms
15,284 KB
testcase_07 AC 84 ms
15,308 KB
testcase_08 AC 85 ms
15,312 KB
testcase_09 AC 80 ms
15,292 KB
testcase_10 AC 79 ms
15,284 KB
testcase_11 AC 80 ms
15,044 KB
testcase_12 AC 78 ms
15,288 KB
testcase_13 AC 83 ms
15,280 KB
testcase_14 AC 78 ms
15,284 KB
testcase_15 AC 146 ms
15,284 KB
testcase_16 AC 139 ms
15,400 KB
testcase_17 AC 120 ms
15,288 KB
testcase_18 AC 166 ms
15,260 KB
testcase_19 AC 109 ms
15,152 KB
testcase_20 AC 162 ms
15,316 KB
testcase_21 AC 129 ms
15,356 KB
testcase_22 AC 141 ms
15,316 KB
testcase_23 TLE -
testcase_24 TLE -
testcase_25 TLE -
testcase_26 TLE -
testcase_27 TLE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

r=0
n=gets.to_i
s=gets.chomp
n.times{|i|(i+2).step(n-1,2){|j|k=i+(j-i)/2;s[i]==?U&&s[k]==?M&&s[j]==?G&&r+=1}}
p r
0