結果
問題 | No.544 Delete 7 |
ユーザー |
|
提出日時 | 2017-07-20 21:35:50 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 95 ms / 1,000 ms |
コード長 | 176 bytes |
コンパイル時間 | 118 ms |
コンパイル使用メモリ | 7,424 KB |
実行使用メモリ | 12,288 KB |
最終ジャッジ日時 | 2024-11-21 16:21:36 |
合計ジャッジ時間 | 6,203 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 48 |
コンパイルメッセージ
Syntax OK
ソースコード
n = gets.chompflags = n.split('').map { |i| i == '7' }.reversestart = 0flags.each_with_index { |f, i| start += 10**i if f == true }printf("%d %d\n", start, n.to_i - start)