結果
問題 | No.201 yukicoderじゃんけん |
ユーザー | qwrtpsfg |
提出日時 | 2017-08-22 23:35:08 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 950 bytes |
コンパイル時間 | 836 ms |
コンパイル使用メモリ | 109,692 KB |
実行使用メモリ | 26,160 KB |
最終ジャッジ日時 | 2024-04-23 04:49:46 |
合計ジャッジ時間 | 1,734 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 22 ms
25,992 KB |
testcase_01 | AC | 23 ms
23,772 KB |
testcase_02 | RE | - |
testcase_03 | AC | 23 ms
26,000 KB |
testcase_04 | AC | 20 ms
23,728 KB |
testcase_05 | AC | 21 ms
24,032 KB |
testcase_06 | AC | 21 ms
23,656 KB |
testcase_07 | AC | 21 ms
23,776 KB |
testcase_08 | AC | 22 ms
23,776 KB |
testcase_09 | AC | 22 ms
24,164 KB |
testcase_10 | AC | 21 ms
23,784 KB |
testcase_11 | RE | - |
testcase_12 | RE | - |
testcase_13 | AC | 23 ms
24,032 KB |
testcase_14 | AC | 21 ms
23,728 KB |
testcase_15 | AC | 21 ms
23,656 KB |
testcase_16 | AC | 22 ms
26,160 KB |
testcase_17 | AC | 21 ms
23,980 KB |
testcase_18 | RE | - |
testcase_19 | AC | 27 ms
25,732 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; public class yukicoder { public static void Main() { string[] a = Console.ReadLine().Split(' '); string[] b = Console.ReadLine().Split(' '); if(a[1].Length == b[1].Length) { for(int i = 0; i <= a[1].Length; i++) { if(int.Parse(a[1].Substring(i, 1)) > int.Parse(b[1].Substring(i, 1))) { Console.WriteLine(a[0]); break; } else if(int.Parse(a[1].Substring(i, 1)) < int.Parse(b[1].Substring(i, 1))) { Console.WriteLine(b[0]); break; } } } else if(a[1].Length > b[1].Length) { Console.WriteLine(a[0]); } else { Console.WriteLine(b[0]); } } }