結果
| 問題 | No.138 化石のバージョン |
| コンテスト | |
| ユーザー |
fujita
|
| 提出日時 | 2023-05-11 10:53:08 |
| 言語 | C# (.NET 10.0.201) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 793 bytes |
| 記録 | |
| コンパイル時間 | 6,495 ms |
| コンパイル使用メモリ | 172,276 KB |
| 実行使用メモリ | 193,268 KB |
| 最終ジャッジ日時 | 2026-05-21 16:46:11 |
| 合計ジャッジ時間 | 11,523 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 WA * 6 RE * 5 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (90 ミリ秒)。 main -> /home/judge/data/code/bin/Release/net10.0/main.dll main -> /home/judge/data/code/bin/Release/net10.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");
}
}
}
}
fujita