結果
| 問題 |
No.26 シャッフルゲーム
|
| コンテスト | |
| ユーザー |
pirorirori_n712
|
| 提出日時 | 2018-07-28 12:31:02 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 305 bytes |
| コンパイル時間 | 786 ms |
| コンパイル使用メモリ | 103,424 KB |
| 実行使用メモリ | 17,920 KB |
| 最終ジャッジ日時 | 2024-07-05 18:22:09 |
| 合計ジャッジ時間 | 1,570 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 WA * 9 |
コンパイルメッセージ
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=Int32.Parse(Console.ReadLine());
var b=Console.ReadLine();
for(int i=0;i<a;++i){
var c=Console.ReadLine().Split(' ');
b=(c[0]==b)?c[1]:(c[1]==b)?c[0]:b;
}
Console.WriteLine(b);
}
}
pirorirori_n712