結果

問題 No.920 あかあお
ユーザー MaboyMaboy
提出日時 2021-06-18 20:57:44
言語 Swift
(5.10.0)
結果
TLE  
実行時間 -
コード長 172 bytes
コンパイル時間 9,952 ms
コンパイル使用メモリ 129,124 KB
実行使用メモリ 8,172 KB
最終ジャッジ日時 2023-09-04 21:56:10
合計ジャッジ時間 15,120 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
8,124 KB
testcase_01 AC 3 ms
8,052 KB
testcase_02 AC 3 ms
8,172 KB
testcase_03 AC 3 ms
8,156 KB
testcase_04 AC 3 ms
8,112 KB
testcase_05 AC 3 ms
8,088 KB
testcase_06 TLE -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

var z = readLine()!.split(separator: " ").map{Int($0)!}
for _ in 1...z[2]{
    if z[0] < z[1]{
        z[0] += 1
    }else{
        z[1] += 1
    }
}
print(z[0...1].min()!)
0