結果
問題 | No.201 yukicoderじゃんけん |
ユーザー | しらゆき |
提出日時 | 2015-11-18 14:13:04 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 872 bytes |
コンパイル時間 | 1,978 ms |
コンパイル使用メモリ | 102,040 KB |
実行使用メモリ | 24,784 KB |
最終ジャッジ日時 | 2023-10-11 17:58:57 |
合計ジャッジ時間 | 4,137 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 56 ms
20,676 KB |
testcase_01 | AC | 55 ms
20,876 KB |
testcase_02 | AC | 58 ms
20,800 KB |
testcase_03 | AC | 57 ms
20,736 KB |
testcase_04 | WA | - |
testcase_05 | AC | 57 ms
20,828 KB |
testcase_06 | AC | 55 ms
20,780 KB |
testcase_07 | AC | 56 ms
20,796 KB |
testcase_08 | AC | 58 ms
20,652 KB |
testcase_09 | AC | 57 ms
18,708 KB |
testcase_10 | AC | 56 ms
18,804 KB |
testcase_11 | AC | 60 ms
22,808 KB |
testcase_12 | AC | 59 ms
20,808 KB |
testcase_13 | AC | 56 ms
20,748 KB |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | AC | 57 ms
20,888 KB |
testcase_17 | AC | 57 ms
20,724 KB |
testcase_18 | AC | 64 ms
20,788 KB |
testcase_19 | AC | 60 ms
22,656 KB |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; class Program { static void Main() { string[] a = Console.ReadLine().Split(); string[] b = Console.ReadLine().Split(); if (a.Length > b.Length) Console.WriteLine(a[0]); else if (a.Length < b.Length) Console.WriteLine(b[0]); else { for(int i = 0; i < a[1].Length; i++) { string A = a[1]; string B = b[1]; if (int.Parse(A[i].ToString()) > int.Parse(B[i].ToString())) { Console.WriteLine(a[0]); return; } else if(int.Parse(A[i].ToString()) < int.Parse(B[i].ToString())) { Console.WriteLine(b[0]); return; } } } Console.WriteLine(-1); } }