結果

問題 No.1544 [Cherry 2nd Tune C] Synchroscope
ユーザー yuruhiyayuruhiya
提出日時 2021-06-20 17:44:35
言語 Crystal
(1.11.2)
結果
AC  
実行時間 201 ms / 2,000 ms
コード長 163 bytes
コンパイル時間 22,760 ms
コンパイル使用メモリ 254,220 KB
実行使用メモリ 5,144 KB
最終ジャッジ日時 2023-09-05 01:28:29
合計ジャッジ時間 21,409 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,464 KB
testcase_01 AC 2 ms
4,380 KB
testcase_02 AC 2 ms
4,380 KB
testcase_03 AC 3 ms
4,776 KB
testcase_04 AC 4 ms
5,024 KB
testcase_05 AC 3 ms
4,692 KB
testcase_06 AC 3 ms
4,872 KB
testcase_07 AC 3 ms
4,884 KB
testcase_08 AC 3 ms
4,788 KB
testcase_09 AC 3 ms
4,804 KB
testcase_10 AC 3 ms
4,972 KB
testcase_11 AC 3 ms
4,836 KB
testcase_12 AC 3 ms
4,700 KB
testcase_13 AC 3 ms
4,616 KB
testcase_14 AC 3 ms
5,032 KB
testcase_15 AC 3 ms
5,040 KB
testcase_16 AC 3 ms
4,620 KB
testcase_17 AC 3 ms
4,640 KB
testcase_18 AC 3 ms
4,452 KB
testcase_19 AC 3 ms
4,472 KB
testcase_20 AC 3 ms
4,864 KB
testcase_21 AC 3 ms
4,656 KB
testcase_22 AC 2 ms
4,660 KB
testcase_23 AC 4 ms
5,072 KB
testcase_24 AC 4 ms
5,008 KB
testcase_25 AC 3 ms
4,996 KB
testcase_26 AC 3 ms
5,108 KB
testcase_27 AC 3 ms
5,100 KB
testcase_28 AC 3 ms
5,028 KB
testcase_29 AC 4 ms
5,012 KB
testcase_30 AC 3 ms
5,048 KB
testcase_31 AC 4 ms
5,144 KB
testcase_32 AC 3 ms
4,980 KB
testcase_33 AC 201 ms
4,868 KB
testcase_34 AC 3 ms
4,480 KB
testcase_35 AC 3 ms
4,552 KB
testcase_36 AC 3 ms
4,600 KB
testcase_37 AC 3 ms
4,572 KB
testcase_38 AC 200 ms
4,992 KB
testcase_39 AC 200 ms
4,912 KB
testcase_40 AC 200 ms
5,016 KB
testcase_41 AC 200 ms
5,072 KB
testcase_42 AC 197 ms
5,016 KB
testcase_43 AC 188 ms
4,964 KB
testcase_44 AC 191 ms
5,140 KB
testcase_45 AC 198 ms
5,132 KB
testcase_46 AC 192 ms
5,012 KB
testcase_47 AC 194 ms
5,008 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, m = read_line.split.map(&.to_i)
a = read_line.split.map(&.to_i)
b = read_line.split.map(&.to_i)
puts (1..n*m).find(-1) { |x|
  a[x.pred % n] == b[x.pred % m]
}
0