結果
問題 |
No.1469 programing
|
ユーザー |
|
提出日時 | 2021-06-26 20:50:47 |
言語 | Crystal (1.14.0) |
結果 |
AC
|
実行時間 | 116 ms / 3,000 ms |
コード長 | 121 bytes |
コンパイル時間 | 13,069 ms |
コンパイル使用メモリ | 294,960 KB |
実行使用メモリ | 80,384 KB |
最終ジャッジ日時 | 2024-06-25 09:40:22 |
合計ジャッジ時間 | 12,609 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 15 |
ソースコード
s = gets.to_s.chars ans = [] of Char s.each do |c| if ans.empty? || ans[-1] != c ans << c end end puts ans.join