結果

問題 No.1644 Eight Digits
ユーザー 👑 horiesinitihoriesiniti
提出日時 2023-07-07 06:10:41
言語 Ruby
(3.3.0)
結果
AC  
実行時間 231 ms / 1,000 ms
コード長 99 bytes
コンパイル時間 225 ms
コンパイル使用メモリ 11,560 KB
実行使用メモリ 15,488 KB
最終ジャッジ日時 2023-09-28 06:31:32
合計ジャッジ時間 8,281 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 216 ms
15,408 KB
testcase_01 AC 221 ms
15,276 KB
testcase_02 AC 217 ms
15,360 KB
testcase_03 AC 216 ms
15,336 KB
testcase_04 AC 216 ms
15,140 KB
testcase_05 AC 216 ms
15,360 KB
testcase_06 AC 219 ms
15,136 KB
testcase_07 AC 220 ms
15,148 KB
testcase_08 AC 220 ms
15,144 KB
testcase_09 AC 220 ms
15,368 KB
testcase_10 AC 222 ms
15,248 KB
testcase_11 AC 219 ms
15,488 KB
testcase_12 AC 218 ms
15,248 KB
testcase_13 AC 213 ms
15,296 KB
testcase_14 AC 214 ms
15,464 KB
testcase_15 AC 231 ms
15,280 KB
testcase_16 AC 216 ms
15,468 KB
testcase_17 AC 216 ms
15,408 KB
testcase_18 AC 220 ms
15,156 KB
testcase_19 AC 217 ms
15,152 KB
testcase_20 AC 223 ms
15,380 KB
testcase_21 AC 219 ms
15,364 KB
testcase_22 AC 219 ms
15,376 KB
testcase_23 AC 219 ms
15,204 KB
testcase_24 AC 225 ms
15,152 KB
testcase_25 AC 216 ms
15,404 KB
testcase_26 AC 214 ms
15,240 KB
testcase_27 AC 217 ms
15,152 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n=gets.to_i
as=(1..8).to_a
ans=0
as.permutation{|e|
	t=e.join("").to_i
	ans+=1 if t%n==0
}
puts ans
0