結果
問題 | No.138 化石のバージョン |
ユーザー | fujita |
提出日時 | 2023-05-11 10:53:08 |
言語 | C# (.NET 8.0.203) |
結果 |
WA
|
実行時間 | - |
コード長 | 793 bytes |
コンパイル時間 | 6,869 ms |
コンパイル使用メモリ | 145,336 KB |
実行使用メモリ | 164,884 KB |
最終ジャッジ日時 | 2023-08-18 06:58:15 |
合計ジャッジ時間 | 11,934 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 45 ms
28,284 KB |
testcase_01 | AC | 46 ms
30,404 KB |
testcase_02 | AC | 45 ms
28,516 KB |
testcase_03 | AC | 44 ms
30,488 KB |
testcase_04 | AC | 43 ms
30,444 KB |
testcase_05 | AC | 45 ms
28,264 KB |
testcase_06 | AC | 46 ms
28,632 KB |
testcase_07 | AC | 43 ms
28,324 KB |
testcase_08 | AC | 45 ms
28,212 KB |
testcase_09 | AC | 43 ms
28,248 KB |
testcase_10 | AC | 43 ms
28,348 KB |
testcase_11 | AC | 45 ms
28,236 KB |
testcase_12 | WA | - |
testcase_13 | AC | 44 ms
28,432 KB |
testcase_14 | WA | - |
testcase_15 | AC | 42 ms
28,480 KB |
testcase_16 | RE | - |
testcase_17 | RE | - |
testcase_18 | RE | - |
testcase_19 | AC | 45 ms
28,236 KB |
testcase_20 | AC | 45 ms
30,500 KB |
testcase_21 | RE | - |
testcase_22 | AC | 48 ms
28,292 KB |
testcase_23 | AC | 46 ms
28,324 KB |
testcase_24 | AC | 45 ms
28,504 KB |
testcase_25 | AC | 47 ms
28,492 KB |
testcase_26 | AC | 46 ms
28,296 KB |
testcase_27 | AC | 45 ms
28,348 KB |
testcase_28 | AC | 44 ms
28,240 KB |
testcase_29 | WA | - |
testcase_30 | RE | - |
testcase_31 | WA | - |
testcase_32 | AC | 44 ms
28,524 KB |
testcase_33 | WA | - |
testcase_34 | AC | 44 ms
30,528 KB |
testcase_35 | WA | - |
コンパイルメッセージ
Determining projects to restore... Restored /home/judge/data/code/main.csproj (in 116 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, 1) == str.Substring(x, 1)) { x++; } int a = int.Parse(s.Substring(x, 1)); int b = int.Parse(str.Substring(x, 1)); if (a < b) { Console.WriteLine("NO"); } else { Console.WriteLine("YES"); } } } }