結果
| 問題 |
No.892 タピオカ
|
| コンテスト | |
| ユーザー |
shinozaki
|
| 提出日時 | 2019-11-06 20:44:42 |
| 言語 | Ruby (3.4.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 236 bytes |
| コンパイル時間 | 290 ms |
| コンパイル使用メモリ | 7,296 KB |
| 実行使用メモリ | 12,160 KB |
| 最終ジャッジ日時 | 2024-09-15 00:24:07 |
| 合計ジャッジ時間 | 1,479 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 6 |
コンパイルメッセージ
Syntax OK
ソースコード
n = gets.chomp.split(" ")
i = 0
sum = 0
while n.length != 4
n = gets.chomp.split(" ")
end
while i <= n.length
sum += n[i].to_i^n[i + 1].to_i
i += 2
end
if sum % 2 == 0
print ":-)"
else
print ":-("
end
shinozaki