結果
| 問題 | No.188 HAPPY DAY | 
| コンテスト | |
| ユーザー |  tanukidon | 
| 提出日時 | 2018-03-18 23:30:35 | 
| 言語 | Ruby (3.4.1) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 261 bytes | 
| コンパイル時間 | 119 ms | 
| コンパイル使用メモリ | 7,424 KB | 
| 実行使用メモリ | 12,160 KB | 
| 最終ジャッジ日時 | 2024-12-30 03:29:53 | 
| 合計ジャッジ時間 | 814 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | WA * 1 | 
コンパイルメッセージ
Main.rb:7: warning: `+' after local variable or literal is interpreted as binary operator Main.rb:7: warning: even though it seems like unary operator Main.rb:14: warning: `+' after local variable or literal is interpreted as binary operator Main.rb:14: warning: even though it seems like unary operator Main.rb:20: warning: `+' after local variable or literal is interpreted as binary operator Main.rb:20: warning: even though it seems like unary operator Syntax OK
ソースコード
n = [1,3,5,7,8,10,12] m = [4,6,9,11] c = 0 n.each do |i| 4.times do |j| 10.times do |k| c += 1 if i == j +k end end end m.each do |i| 4.times do |j| 10.times do |k| c += 1 if i == j +k end end end 2.times do |j| 28.times do |k| c += 1 if 2 == j +k end end p c
