結果

問題 No.1232 2^x = x
ユーザー cielciel
提出日時 2021-04-13 02:23:50
言語 Ruby
(3.3.0)
結果
AC  
実行時間 87 ms / 2,000 ms
コード長 58 bytes
コンパイル時間 452 ms
コンパイル使用メモリ 11,540 KB
実行使用メモリ 15,304 KB
最終ジャッジ日時 2023-09-11 06:46:34
合計ジャッジ時間 1,675 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 84 ms
15,260 KB
testcase_01 AC 85 ms
15,152 KB
testcase_02 AC 86 ms
15,124 KB
testcase_03 AC 87 ms
15,304 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:1: warning: `*' interpreted as argument prefix
Syntax OK

ソースコード

diff #

gets;p *ARGF.each_line.map{|_|n=_.to_i;n<3 ? 2 : (n-1)**2}
0