結果
問題 | No.138 化石のバージョン |
ユーザー | fujita |
提出日時 | 2023-05-11 11:10:02 |
言語 | C# (.NET 8.0.203) |
結果 |
WA
|
実行時間 | - |
コード長 | 831 bytes |
コンパイル時間 | 8,115 ms |
コンパイル使用メモリ | 145,832 KB |
実行使用メモリ | 167,552 KB |
最終ジャッジ日時 | 2023-08-18 07:05:59 |
合計ジャッジ時間 | 14,429 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 68 ms
32,684 KB |
testcase_01 | AC | 69 ms
30,884 KB |
testcase_02 | AC | 70 ms
30,692 KB |
testcase_03 | AC | 71 ms
30,588 KB |
testcase_04 | AC | 70 ms
30,628 KB |
testcase_05 | AC | 70 ms
30,780 KB |
testcase_06 | AC | 70 ms
30,904 KB |
testcase_07 | AC | 70 ms
30,660 KB |
testcase_08 | AC | 70 ms
30,692 KB |
testcase_09 | AC | 69 ms
32,740 KB |
testcase_10 | AC | 70 ms
30,616 KB |
testcase_11 | AC | 70 ms
30,836 KB |
testcase_12 | WA | - |
testcase_13 | AC | 70 ms
30,548 KB |
testcase_14 | RE | - |
testcase_15 | RE | - |
testcase_16 | RE | - |
testcase_17 | RE | - |
testcase_18 | RE | - |
testcase_19 | AC | 69 ms
31,144 KB |
testcase_20 | AC | 70 ms
30,580 KB |
testcase_21 | RE | - |
testcase_22 | AC | 71 ms
30,576 KB |
testcase_23 | AC | 70 ms
32,644 KB |
testcase_24 | AC | 70 ms
30,836 KB |
testcase_25 | AC | 70 ms
30,780 KB |
testcase_26 | AC | 71 ms
30,376 KB |
testcase_27 | AC | 68 ms
30,672 KB |
testcase_28 | AC | 70 ms
30,464 KB |
testcase_29 | WA | - |
testcase_30 | AC | 69 ms
30,664 KB |
testcase_31 | WA | - |
testcase_32 | AC | 68 ms
32,732 KB |
testcase_33 | WA | - |
testcase_34 | AC | 70 ms
32,992 KB |
testcase_35 | WA | - |
コンパイルメッセージ
Determining projects to restore... Restored /home/judge/data/code/main.csproj (in 195 ms). .NET 向け Microsoft (R) Build Engine バージョン 17.0.0-preview-21470-01+cb055d28f Copyright (C) Microsoft Corporation.All rights reserved. プレビュー版の .NET を使用しています。https://aka.ms/dotnet-core-preview をご覧ください main -> /home/judge/data/code/bin/Release/net6.0/main.dll main -> /home/judge/data/code/bin/Release/net6.0/publish/
ソースコード
using System.Collections.Generic; using System; using System.Drawing; namespace yukicoder { class Program { static void Main(string[] args) { var s = Console.ReadLine(); var str = Console.ReadLine(); List<int> list = new List<int>(6); List<int> list2 = new List<int>(6); int x = 0; while (s.Substring(x, s.IndexOf(".")) == str.Substring(x, str.IndexOf("."))) { x++; } int a = int.Parse(s.Substring(x, 1)); int b = int.Parse(str.Substring(x, 1)); if (a < b || a == b) { Console.WriteLine("NO"); } else { Console.WriteLine("YES"); } } } }