結果
| 問題 | No.1644 Eight Digits |
| コンテスト | |
| ユーザー |
horiesiniti
|
| 提出日時 | 2023-07-07 06:10:41 |
| 言語 | Ruby (4.0.2) |
| 結果 |
AC
|
| 実行時間 | 141 ms / 1,000 ms |
| + 683µs | |
| コード長 | 99 bytes |
| 記録 | |
| コンパイル時間 | 9 ms |
| コンパイル使用メモリ | 8,832 KB |
| 実行使用メモリ | 14,720 KB |
| 最終ジャッジ日時 | 2026-08-20 20:24:19 |
| 合計ジャッジ時間 | 6,295 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 |
コンパイルメッセージ
Syntax OK
ソースコード
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
horiesiniti