結果

問題 No.241 出席番号(1)
ユーザー %20%20
提出日時 2017-07-18 18:08:04
言語 Ruby
(3.3.0)
結果
AC  
実行時間 71 ms / 2,000 ms
コード長 91 bytes
コンパイル時間 546 ms
コンパイル使用メモリ 11,404 KB
実行使用メモリ 15,400 KB
最終ジャッジ日時 2023-08-20 17:58:51
合計ジャッジ時間 4,176 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
15,180 KB
testcase_01 AC 68 ms
15,272 KB
testcase_02 AC 67 ms
15,028 KB
testcase_03 AC 67 ms
15,292 KB
testcase_04 AC 64 ms
15,084 KB
testcase_05 AC 66 ms
14,992 KB
testcase_06 AC 66 ms
15,028 KB
testcase_07 AC 65 ms
14,992 KB
testcase_08 AC 65 ms
14,988 KB
testcase_09 AC 65 ms
15,260 KB
testcase_10 AC 65 ms
15,160 KB
testcase_11 AC 66 ms
15,076 KB
testcase_12 AC 66 ms
15,176 KB
testcase_13 AC 65 ms
15,032 KB
testcase_14 AC 65 ms
15,300 KB
testcase_15 AC 66 ms
15,212 KB
testcase_16 AC 65 ms
15,092 KB
testcase_17 AC 65 ms
15,172 KB
testcase_18 AC 65 ms
15,264 KB
testcase_19 AC 66 ms
15,028 KB
testcase_20 AC 69 ms
15,064 KB
testcase_21 AC 68 ms
15,100 KB
testcase_22 AC 66 ms
15,208 KB
testcase_23 AC 66 ms
15,264 KB
testcase_24 AC 67 ms
15,324 KB
testcase_25 AC 66 ms
15,312 KB
testcase_26 AC 65 ms
15,336 KB
testcase_27 AC 66 ms
15,280 KB
testcase_28 AC 67 ms
15,400 KB
testcase_29 AC 65 ms
15,356 KB
testcase_30 AC 66 ms
15,328 KB
testcase_31 AC 71 ms
15,336 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:2: warning: `*' interpreted as argument prefix
Syntax OK

ソースコード

diff #

N,*A=$<.map &:to_i
p *(0..99).map{[*0...N].shuffle}.find{|b|i=-1;b.all?{|b|b!=A[i+=1]}}||-1
0