結果
問題 | No.201 yukicoderじゃんけん |
ユーザー | swdamdr |
提出日時 | 2017-01-26 10:11:57 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 787 bytes |
コンパイル時間 | 4,774 ms |
コンパイル使用メモリ | 99,744 KB |
実行使用メモリ | 22,764 KB |
最終ジャッジ日時 | 2023-08-24 23:18:07 |
合計ジャッジ時間 | 5,274 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 55 ms
20,656 KB |
testcase_01 | AC | 56 ms
20,792 KB |
testcase_02 | AC | 54 ms
20,564 KB |
testcase_03 | AC | 56 ms
20,752 KB |
testcase_04 | WA | - |
testcase_05 | AC | 56 ms
20,724 KB |
testcase_06 | AC | 56 ms
22,712 KB |
testcase_07 | AC | 55 ms
20,692 KB |
testcase_08 | AC | 57 ms
20,672 KB |
testcase_09 | AC | 57 ms
20,684 KB |
testcase_10 | AC | 57 ms
18,620 KB |
testcase_11 | AC | 56 ms
20,492 KB |
testcase_12 | AC | 55 ms
20,528 KB |
testcase_13 | AC | 57 ms
22,724 KB |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | AC | 56 ms
22,680 KB |
testcase_17 | AC | 56 ms
20,592 KB |
testcase_18 | AC | 56 ms
20,464 KB |
testcase_19 | AC | 60 ms
20,864 KB |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { string[] a = Console.ReadLine().Split(); string[] b = Console.ReadLine().Split(); string pa = a[1]; string pb = b[1]; if (pa == pb) { Console.WriteLine(-1); return; } for (int i = 0; i < pa.Length; i++) { if (int.Parse(pa[i].ToString()) > int.Parse(pb[i].ToString())) { Console.WriteLine(a[0]); return; } if (int.Parse(pa[i].ToString()) < int.Parse(pb[i].ToString())) { Console.WriteLine(b[0]); return; } } } }