結果

問題 No.1183 コイン遊び
ユーザー maguroflymagurofly
提出日時 2020-08-22 16:21:50
言語 Ruby
(3.3.0)
結果
AC  
実行時間 807 ms / 2,000 ms
コード長 279 bytes
コンパイル時間 377 ms
コンパイル使用メモリ 7,424 KB
実行使用メモリ 107,276 KB
最終ジャッジ日時 2024-04-23 10:31:23
合計ジャッジ時間 21,184 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
12,160 KB
testcase_01 AC 77 ms
12,288 KB
testcase_02 AC 74 ms
12,288 KB
testcase_03 AC 75 ms
12,160 KB
testcase_04 AC 75 ms
12,416 KB
testcase_05 AC 75 ms
12,160 KB
testcase_06 AC 76 ms
12,288 KB
testcase_07 AC 79 ms
12,160 KB
testcase_08 AC 81 ms
12,416 KB
testcase_09 AC 93 ms
12,160 KB
testcase_10 AC 109 ms
14,464 KB
testcase_11 AC 122 ms
19,328 KB
testcase_12 AC 508 ms
87,936 KB
testcase_13 AC 470 ms
80,512 KB
testcase_14 AC 760 ms
105,352 KB
testcase_15 AC 796 ms
106,988 KB
testcase_16 AC 807 ms
106,988 KB
testcase_17 AC 784 ms
106,904 KB
testcase_18 AC 799 ms
107,188 KB
testcase_19 AC 793 ms
106,908 KB
testcase_20 AC 789 ms
106,988 KB
testcase_21 AC 768 ms
107,276 KB
testcase_22 AC 781 ms
106,968 KB
testcase_23 AC 793 ms
106,984 KB
testcase_24 AC 769 ms
106,900 KB
testcase_25 AC 788 ms
106,996 KB
testcase_26 AC 801 ms
107,032 KB
testcase_27 AC 803 ms
107,160 KB
testcase_28 AC 792 ms
107,024 KB
testcase_29 AC 776 ms
107,032 KB
testcase_30 AC 793 ms
106,980 KB
testcase_31 AC 799 ms
107,188 KB
testcase_32 AC 792 ms
106,996 KB
testcase_33 AC 791 ms
107,244 KB
testcase_34 AC 792 ms
107,272 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n = gets.to_i
a = gets.split.map &:to_i
b = gets.split.map &:to_i

diff = false
p(n.times.count do |i|
    if a[i] != b[i]
        if diff
            false
        else
            diff = true
            true
        end
    else
        diff = false
        false
    end
end)
0