結果
| 問題 |
No.294 SuperFizzBuzz
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-10-23 23:20:32 |
| 言語 | Ruby (3.4.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 259 bytes |
| コンパイル時間 | 300 ms |
| コンパイル使用メモリ | 7,680 KB |
| 実行使用メモリ | 12,416 KB |
| 最終ジャッジ日時 | 2024-07-23 15:49:54 |
| 合計ジャッジ時間 | 2,247 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 12 |
コンパイルメッセージ
Syntax OK
ソースコード
#!/usr/bin/ruby
S=gets.split.map(&:to_i)
h=[0]*26
gets.chomp.bytes{|b|
h[b-97]+=1
}
res=1
S.size.times{|i|
next if h[i]==0
d,r=S[i].divmod(h[i])
p [S[i],h[i],d,r]
h[i].times{|j|
res*=d+(j<r ? 1 : 0)
if res>=2**62
puts :hel
exit
end
}
}
p res