結果
| 問題 | No.1544 [Cherry 2nd Tune C] Synchroscope |
| コンテスト | |
| ユーザー |
siman
|
| 提出日時 | 2021-06-13 17:51:37 |
| 言語 | Ruby (4.0.7 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1,891 ms / 2,000 ms |
| + 25µs | |
| コード長 | 171 bytes |
| 記録 | |
| コンパイル時間 | 78 ms |
| コンパイル使用メモリ | 8,960 KB |
| 実行使用メモリ | 14,976 KB |
| 最終ジャッジ日時 | 2026-10-15 07:33:56 |
| 合計ジャッジ時間 | 25,410 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 49 |
コンパイルメッセージ
Main.rb:12: warning: ambiguous first argument; put parentheses or a space even after `-` operator Syntax OK
ソースコード
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 if A[i % N] != B[i % M] puts i + 1 exit end puts -1
siman