結果
| 問題 | 
                            No.1317 月曜日の朝、WAを出した
                             | 
                    
| コンテスト | |
| ユーザー | 
                             yuruhiya
                         | 
                    
| 提出日時 | 2020-12-15 16:00:59 | 
| 言語 | Ruby  (3.4.1)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 366 bytes | 
| コンパイル時間 | 154 ms | 
| コンパイル使用メモリ | 7,296 KB | 
| 実行使用メモリ | 12,544 KB | 
| 最終ジャッジ日時 | 2024-09-20 01:42:28 | 
| 合計ジャッジ時間 | 1,465 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 1 WA * 3 | 
コンパイルメッセージ
Syntax OK
ソースコード
status = %w[AC WA TLE MLE OLE RE]
gets.to_i.times do
	a = gets.split.map(&:to_i)
	b = gets.split.map(&:to_i)
	s = gets.chomp
	s_i = status.index(s)
	if (0...6).reject { |i| i == 0 || i == s_i }.all? { |i| b[i] == 0 }
		wrong_sum = a[1..].sum
		if a[0] >= b[0] && (a[0] - b[0] + wrong_sum) == b[s_i]
			puts "Yes"
		else
			puts "No"
		end
	else
		puts 'No'
	end
end
            
            
            
        
            
yuruhiya