結果
問題 | No.1469 programing |
ユーザー | kanno_kanno |
提出日時 | 2021-04-22 18:25:05 |
言語 | Ruby (3.3.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 210 bytes |
コンパイル時間 | 276 ms |
コンパイル使用メモリ | 11,456 KB |
実行使用メモリ | 126,376 KB |
最終ジャッジ日時 | 2023-09-17 10:14:56 |
合計ジャッジ時間 | 9,090 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 80 ms
15,144 KB |
testcase_01 | AC | 84 ms
15,164 KB |
testcase_02 | AC | 82 ms
15,264 KB |
testcase_03 | AC | 81 ms
15,308 KB |
testcase_04 | AC | 84 ms
15,280 KB |
testcase_05 | AC | 86 ms
16,528 KB |
testcase_06 | AC | 84 ms
15,224 KB |
testcase_07 | AC | 85 ms
16,556 KB |
testcase_08 | AC | 684 ms
121,192 KB |
testcase_09 | AC | 1,022 ms
121,792 KB |
testcase_10 | AC | 913 ms
122,084 KB |
testcase_11 | TLE | - |
testcase_12 | -- | - |
testcase_13 | -- | - |
testcase_14 | -- | - |
testcase_15 | -- | - |
testcase_16 | -- | - |
testcase_17 | -- | - |
コンパイルメッセージ
Syntax OK
ソースコード
def solve(line) length = line.length harurun = line[0] (1...length).each do |i| next if line[i - 1] == line[i] harurun += line[i] end return harurun end line = gets.chomp puts solve(line)