結果
問題 | 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 GraphProblemattr_reader :ndef initialize(n: 0)@n = nenddef causebegin@n = Integer(gets.chomp)rescueendenddef resultputs @n - 1enddef runcauseresultendendif $0 == __FILE__GraphProblem.new.runend