結果
問題 | No.244 ★1のグラフの問題 |
ユーザー |
|
提出日時 | 2017-09-11 12:50:27 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 94 ms / 2,000 ms |
コード長 | 346 bytes |
コンパイル時間 | 45 ms |
コンパイル使用メモリ | 7,424 KB |
実行使用メモリ | 12,288 KB |
最終ジャッジ日時 | 2024-11-07 16:54:04 |
合計ジャッジ時間 | 1,658 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 7 |
コンパイルメッセージ
Syntax OK
ソースコード
class GraphProblem attr_reader :n def initialize(n: 0) @n = n end def cause begin @n = Integer(gets.chomp) rescue end end def result puts @n - 1 end def run cause result end end if $0 == __FILE__ GraphProblem.new.run end