結果
| 問題 | No.244 ★1のグラフの問題 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-09-11 12:50:27 |
| 言語 | Ruby (4.0.2) |
| 結果 |
AC
|
| 実行時間 | 54 ms / 2,000 ms |
| コード長 | 346 bytes |
| 記録 | |
| コンパイル時間 | 169 ms |
| コンパイル使用メモリ | 8,960 KB |
| 実行使用メモリ | 14,848 KB |
| 最終ジャッジ日時 | 2026-05-08 00:33:12 |
| 合計ジャッジ時間 | 1,645 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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