結果

問題 No.1544 [Cherry 2nd Tune C] Synchroscope
ユーザー Takuya NoguchiTakuya Noguchi
提出日時 2021-06-23 21:52:37
言語 Ruby
(3.3.0)
結果
TLE  
実行時間 -
コード長 174 bytes
コンパイル時間 327 ms
コンパイル使用メモリ 11,324 KB
実行使用メモリ 15,628 KB
最終ジャッジ日時 2023-09-07 03:40:09
合計ジャッジ時間 36,456 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
15,108 KB
testcase_01 AC 84 ms
15,108 KB
testcase_02 AC 85 ms
15,240 KB
testcase_03 AC 83 ms
15,120 KB
testcase_04 AC 88 ms
15,440 KB
testcase_05 AC 85 ms
15,516 KB
testcase_06 AC 87 ms
15,376 KB
testcase_07 AC 89 ms
15,384 KB
testcase_08 AC 88 ms
15,224 KB
testcase_09 AC 86 ms
15,148 KB
testcase_10 AC 88 ms
15,512 KB
testcase_11 AC 88 ms
15,324 KB
testcase_12 AC 85 ms
15,120 KB
testcase_13 AC 86 ms
15,272 KB
testcase_14 AC 89 ms
15,272 KB
testcase_15 AC 89 ms
15,364 KB
testcase_16 AC 88 ms
15,308 KB
testcase_17 AC 84 ms
15,136 KB
testcase_18 AC 84 ms
15,112 KB
testcase_19 AC 88 ms
15,072 KB
testcase_20 AC 86 ms
15,360 KB
testcase_21 AC 87 ms
15,124 KB
testcase_22 AC 88 ms
15,100 KB
testcase_23 AC 90 ms
15,460 KB
testcase_24 AC 85 ms
15,472 KB
testcase_25 AC 84 ms
15,444 KB
testcase_26 AC 84 ms
15,540 KB
testcase_27 AC 87 ms
15,392 KB
testcase_28 AC 88 ms
15,412 KB
testcase_29 AC 86 ms
15,512 KB
testcase_30 AC 86 ms
15,524 KB
testcase_31 AC 88 ms
15,432 KB
testcase_32 AC 86 ms
15,388 KB
testcase_33 TLE -
testcase_34 AC 82 ms
15,108 KB
testcase_35 AC 85 ms
15,108 KB
testcase_36 AC 84 ms
15,100 KB
testcase_37 AC 84 ms
15,264 KB
testcase_38 TLE -
testcase_39 TLE -
testcase_40 TLE -
testcase_41 TLE -
testcase_42 TLE -
testcase_43 TLE -
testcase_44 TLE -
testcase_45 TLE -
testcase_46 TLE -
testcase_47 TLE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:12: warning: ambiguous first argument; put parentheses or a space even after `-' operator
Syntax OK

ソースコード

diff #

N, M = gets.split.map(&:to_i)
A = gets.split.map(&:to_i)
B = gets.split.map(&:to_i)

(N * M).times do |i|
  next unless A[i % N] == B[i % M]

  puts i + 1
  exit
end

puts -1
0