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