結果
| 問題 |
No.138 化石のバージョン
|
| コンテスト | |
| ユーザー |
fujita
|
| 提出日時 | 2023-05-11 10:53:08 |
| 言語 | C# (.NET 8.0.404) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 793 bytes |
| コンパイル時間 | 19,052 ms |
| コンパイル使用メモリ | 168,268 KB |
| 実行使用メモリ | 183,756 KB |
| 最終ジャッジ日時 | 2024-11-27 10:32:22 |
| 合計ジャッジ時間 | 13,839 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 WA * 6 RE * 5 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (118 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, 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