結果
| 問題 | No.1644 Eight Digits |
| コンテスト | |
| ユーザー |
horiesiniti
|
| 提出日時 | 2023-07-07 06:10:41 |
| 言語 | Ruby (4.0.2) |
| 結果 |
AC
|
| 実行時間 | 264 ms / 1,000 ms |
| コード長 | 99 bytes |
| 記録 | |
| コンパイル時間 | 143 ms |
| コンパイル使用メモリ | 9,216 KB |
| 実行使用メモリ | 15,616 KB |
| 最終ジャッジ日時 | 2026-04-03 02:52:46 |
| 合計ジャッジ時間 | 5,844 ms |
|
ジャッジサーバーID (参考情報) |
judge5_1 / judge3_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