結果
| 問題 |
No.1168 Digit Sum Sequence
|
| コンテスト | |
| ユーザー |
horiesiniti
|
| 提出日時 | 2022-12-28 00:33:56 |
| 言語 | Ruby (3.4.1) |
| 結果 |
AC
|
| 実行時間 | 91 ms / 2,000 ms |
| コード長 | 109 bytes |
| コンパイル時間 | 165 ms |
| コンパイル使用メモリ | 7,552 KB |
| 実行使用メモリ | 12,288 KB |
| 最終ジャッジ日時 | 2024-11-22 12:04:26 |
| 合計ジャッジ時間 | 4,243 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 29 |
コンパイルメッセージ
Syntax OK
ソースコード
n=gets.chomp.split("").map{|e| e.to_i}
2.upto(100){
n=n.sum.to_s.split("").map{|e| e.to_i}
}
puts n.join("")
horiesiniti