結果

問題 No.892 タピオカ
ユーザー shinozakishinozaki
提出日時 2019-11-06 21:08:30
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 260 bytes
コンパイル時間 66 ms
コンパイル使用メモリ 11,388 KB
実行使用メモリ 16,316 KB
最終ジャッジ日時 2023-10-13 02:44:04
合計ジャッジ時間 1,545 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 87 ms
15,044 KB
testcase_01 AC 82 ms
15,156 KB
testcase_02 AC 82 ms
15,256 KB
testcase_03 AC 84 ms
16,112 KB
testcase_04 WA -
testcase_05 AC 82 ms
15,536 KB
testcase_06 AC 83 ms
15,492 KB
testcase_07 AC 83 ms
15,528 KB
testcase_08 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

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
0