結果
問題 | No.26 シャッフルゲーム |
ユーザー | pirorirori_n712 |
提出日時 | 2018-07-28 12:33:05 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 57 ms / 5,000 ms |
コード長 | 305 bytes |
コンパイル時間 | 2,104 ms |
コンパイル使用メモリ | 101,148 KB |
実行使用メモリ | 22,756 KB |
最終ジャッジ日時 | 2023-09-19 06:06:32 |
合計ジャッジ時間 | 3,434 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 56 ms
22,680 KB |
testcase_01 | AC | 56 ms
22,756 KB |
testcase_02 | AC | 57 ms
22,704 KB |
testcase_03 | AC | 56 ms
20,752 KB |
testcase_04 | AC | 56 ms
20,808 KB |
testcase_05 | AC | 56 ms
20,744 KB |
testcase_06 | AC | 56 ms
20,632 KB |
testcase_07 | AC | 56 ms
22,688 KB |
testcase_08 | AC | 55 ms
20,712 KB |
testcase_09 | AC | 57 ms
20,732 KB |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; class No26{ static void Main(){ var a=Console.ReadLine(); var b=Int32.Parse(Console.ReadLine()); for(int i=0;i<b;++i){ var c=Console.ReadLine().Split(' '); a=(c[0]==a)?c[1]:(c[1]==a)?c[0]:a; } Console.WriteLine(a); } }