結果

問題 No.692 square1001 and Permutation 1
ユーザー object1234object1234
提出日時 2019-01-31 18:33:09
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 151 bytes
コンパイル時間 187 ms
コンパイル使用メモリ 7,296 KB
実行使用メモリ 12,288 KB
最終ジャッジ日時 2024-04-28 12:11:25
合計ジャッジ時間 1,551 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

n = gets.chomp.to_i
a = ["Petr","square1001"]
a.each_with_index do |v,i|
    if n > 1
        n = 1
    else
        puts a[i == 0 ? 1 : 0]
    end
end
0