質問編集履歴
2
プログラムの修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -72,11 +72,11 @@
|
|
72
72
|
|
73
73
|
|
74
74
|
|
75
|
-
if(line == date)
|
75
|
+
if(line == 'date')
|
76
76
|
|
77
77
|
client.puts Date.today
|
78
78
|
|
79
|
-
elsif(line == time)
|
79
|
+
elsif(line == 'time')
|
80
80
|
|
81
81
|
client.puts Time.now
|
82
82
|
|
@@ -88,6 +88,8 @@
|
|
88
88
|
|
89
89
|
end
|
90
90
|
|
91
|
+
end
|
92
|
+
|
91
93
|
```
|
92
94
|
|
93
95
|
|
@@ -170,11 +172,11 @@
|
|
170
172
|
|
171
173
|
|
172
174
|
|
173
|
-
if(line == date)
|
175
|
+
if(line == 'date')
|
174
176
|
|
175
177
|
client.puts Date.today
|
176
178
|
|
177
|
-
elsif(line == time)
|
179
|
+
elsif(line == 'time')
|
178
180
|
|
179
181
|
client.puts Time.now
|
180
182
|
|
@@ -186,6 +188,8 @@
|
|
186
188
|
|
187
189
|
end
|
188
190
|
|
191
|
+
end
|
192
|
+
|
189
193
|
```
|
190
194
|
|
191
195
|
|
1
書式の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,4 +1,8 @@
|
|
1
|
+
```ここに言語を入力
|
2
|
+
|
3
|
+
コード
|
4
|
+
|
1
|
-
### 前提・実現したいこと
|
5
|
+
```### 前提・実現したいこと
|
2
6
|
|
3
7
|
|
4
8
|
|
@@ -10,6 +14,8 @@
|
|
10
14
|
|
11
15
|
|
12
16
|
|
17
|
+
```Ruby
|
18
|
+
|
13
19
|
require "socket"
|
14
20
|
|
15
21
|
require 'date'
|
@@ -82,6 +88,8 @@
|
|
82
88
|
|
83
89
|
end
|
84
90
|
|
91
|
+
```
|
92
|
+
|
85
93
|
|
86
94
|
|
87
95
|
|
@@ -104,6 +112,8 @@
|
|
104
112
|
|
105
113
|
|
106
114
|
|
115
|
+
```Ruby
|
116
|
+
|
107
117
|
require "socket"
|
108
118
|
|
109
119
|
require 'date'
|
@@ -176,7 +186,7 @@
|
|
176
186
|
|
177
187
|
end
|
178
188
|
|
179
|
-
|
189
|
+
```
|
180
190
|
|
181
191
|
|
182
192
|
|