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