結果
| 問題 |
No.201 yukicoderじゃんけん
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-05-10 20:08:59 |
| 言語 | D (dmd 2.109.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 412 bytes |
| コンパイル時間 | 941 ms |
| コンパイル使用メモリ | 101,076 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-12 19:08:05 |
| 合計ジャッジ時間 | 1,430 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 17 WA * 3 |
ソースコード
import std.algorithm, std.conv, std.range, std.stdio, std.string;
void main()
{
auto ra = readln.split, na = ra[0], pa = ra[1], la = pa.length;
auto rb = readln.split, nb = rb[0], pb = rb[1], lb = pb.length;
if (la > lb) pb = pb.rightJustify(la - lb, '0');
if (la < lb) pa = pa.rightJustify(lb - la, '0');
if (pa > pb)
writeln(na);
else if (pa < pb)
writeln(nb);
else
writeln(-1);
}