結果

問題 No.3043 yukicoderへようこそ!
ユーザー koba-e964koba-e964
提出日時 2019-04-01 21:42:59
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 135 bytes
コンパイル時間 226 ms
コンパイル使用メモリ 7,680 KB
実行使用メモリ 12,544 KB
最終ジャッジ日時 2024-05-05 04:21:35
合計ジャッジ時間 1,195 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 73 ms
12,416 KB
testcase_04 WA -
testcase_05 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

s=gets.chomp
if s==""
    puts "Hello World!"
    exit
end
s=s.split.map &:to_i
if s.size==1
    n=s[0]
    puts n*(n+1)/2
    exit
end
0