結果
問題 |
No.69 文字を自由に並び替え
|
ユーザー |
|
提出日時 | 2016-03-27 12:11:14 |
言語 | D (dmd 2.109.1) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 278 bytes |
コンパイル時間 | 727 ms |
コンパイル使用メモリ | 101,968 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-12 03:14:39 |
合計ジャッジ時間 | 1,343 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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); writeln((a == b) ? "YES" : "NO"); }