結果
問題 | No.2246 1333-like Number |
ユーザー |
![]() |
提出日時 | 2023-03-29 23:48:20 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 82 ms / 2,000 ms |
コード長 | 140 bytes |
コンパイル時間 | 85 ms |
コンパイル使用メモリ | 7,424 KB |
実行使用メモリ | 12,288 KB |
最終ジャッジ日時 | 2024-09-21 14:31:23 |
合計ジャッジ時間 | 3,380 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 24 |
コンパイルメッセージ
Main.rb:4: warning: assigned but unused variable - ans Syntax OK
ソースコード
n=gets.to_ir=(n-1)/36q=(n-1)%36ans=0ls=[](1..8).each{|i|((i+1)..9).each{|j|ls<<([i.to_s,j.to_s])}}puts ls[q][0]+ls[q][1]*(r+1)