結果
| 問題 |
No.69 文字を自由に並び替え
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-08-27 16:01:08 |
| 言語 | D (dmd 2.109.1) |
| 結果 |
CE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 242 bytes |
| コンパイル時間 | 1,355 ms |
| コンパイル使用メモリ | 93,180 KB |
| 最終ジャッジ日時 | 2024-11-14 19:48:47 |
| 合計ジャッジ時間 | 1,750 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
コンパイルメッセージ
/home/linuxbrew/.linuxbrew/opt/dmd/include/dlang/dmd/std/algorithm/sorting.d(1936): Error: static assert: "When using SwapStrategy.unstable, the passed Range 'char[]' must either fulfill hasSwappableElements, or hasAssignableElements, both were not the case"
Main.d(11): instantiated from here: `sort!("a < b", SwapStrategy.unstable, char[])`
ソースコード
import std.algorithm, std.array, std.range;
import std.string, std.conv;
import std.math;
import std.stdio, std.typecons;
void main()
{
auto a = readln.chomp.dup;
auto b = readln.chomp.dup;
writeln(a.sort == b.sort ? "YES" : "NO");
}