結果
問題 |
No.69 文字を自由に並び替え
|
ユーザー |
|
提出日時 | 2016-03-27 12:01:15 |
言語 | D (dmd 2.109.1) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 345 bytes |
コンパイル時間 | 1,878 ms |
コンパイル使用メモリ | 141,056 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-12 03:14:36 |
合計ジャッジ時間 | 2,320 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 15 |
ソースコード
import std.stdio; import std.string; import std.conv; import std.algorithm; import std.array; void main() { ubyte[] a = readln().strip.map!(to!ubyte).array; ubyte[] b = readln().strip.map!(to!ubyte).array; sort(a); sort(b); if (to!string(a) == to!string(b)) { writeln("YES"); return; } writeln("NO"); }