結果
| 問題 |
No.1317 月曜日の朝、WAを出した
|
| コンテスト | |
| ユーザー |
yuruhiya
|
| 提出日時 | 2020-12-15 16:08:22 |
| 言語 | Ruby (3.4.1) |
| 結果 |
AC
|
| 実行時間 | 156 ms / 1,500 ms |
| コード長 | 381 bytes |
| コンパイル時間 | 208 ms |
| コンパイル使用メモリ | 7,552 KB |
| 実行使用メモリ | 12,416 KB |
| 最終ジャッジ日時 | 2024-09-20 01:42:55 |
| 合計ジャッジ時間 | 1,580 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
コンパイルメッセージ
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] && a[s_i] == 0
puts "Yes"
else
puts "No"
end
else
puts 'No'
end
end
yuruhiya