結果
| 問題 |
No.1644 Eight Digits
|
| コンテスト | |
| ユーザー |
horiesiniti
|
| 提出日時 | 2023-07-07 06:10:41 |
| 言語 | Ruby (3.4.1) |
| 結果 |
AC
|
| 実行時間 | 214 ms / 1,000 ms |
| コード長 | 99 bytes |
| コンパイル時間 | 121 ms |
| コンパイル使用メモリ | 7,552 KB |
| 実行使用メモリ | 12,544 KB |
| 最終ジャッジ日時 | 2024-07-21 00:58:55 |
| 合計ジャッジ時間 | 7,435 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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