結果
| 問題 | No.1232 2^x = x |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-09-26 00:04:17 |
| 言語 | Ruby (4.0.2) |
| 結果 |
RE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 54 bytes |
| 記録 | |
| コンパイル時間 | 76 ms |
| コンパイル使用メモリ | 8,960 KB |
| 実行使用メモリ | 22,528 KB |
| 最終ジャッジ日時 | 2026-03-16 20:32:49 |
| 合計ジャッジ時間 | 1,967 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 1 |
| other | RE * 3 |
コンパイルメッセージ
Main.rb:1: warning: ambiguous `*` has been interpreted as an argument prefix Syntax OK
ソースコード
gets;p *ARGF.lines.map{|_|n=_.to_i;n<3 ? 2 : (n-1)**2}