結果
| 問題 |
No.138 化石のバージョン
|
| コンテスト | |
| ユーザー |
fujita
|
| 提出日時 | 2023-05-11 11:10:02 |
| 言語 | C# (.NET 8.0.404) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 831 bytes |
| コンパイル時間 | 6,835 ms |
| コンパイル使用メモリ | 166,408 KB |
| 実行使用メモリ | 186,460 KB |
| 最終ジャッジ日時 | 2024-11-27 10:42:42 |
| 合計ジャッジ時間 | 11,826 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 WA * 5 RE * 6 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (85 ms)。 MSBuild のバージョン 17.9.6+a4ecab324 (.NET) main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.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");
}
}
}
}
fujita