結果
問題 | No.571 3人兄弟(その2) |
ユーザー | toshiro_yanagi |
提出日時 | 2018-06-15 13:01:23 |
言語 | Nim (2.0.2) |
結果 |
WA
|
実行時間 | - |
コード長 | 439 bytes |
コンパイル時間 | 3,140 ms |
コンパイル使用メモリ | 69,080 KB |
実行使用メモリ | 4,380 KB |
最終ジャッジ日時 | 2023-09-13 04:34:51 |
合計ジャッジ時間 | 4,076 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
4,376 KB |
testcase_01 | AC | 1 ms
4,376 KB |
testcase_02 | AC | 1 ms
4,376 KB |
testcase_03 | AC | 1 ms
4,380 KB |
testcase_04 | WA | - |
testcase_05 | AC | 2 ms
4,380 KB |
testcase_06 | WA | - |
testcase_07 | AC | 2 ms
4,376 KB |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | AC | 2 ms
4,376 KB |
testcase_11 | AC | 1 ms
4,376 KB |
testcase_12 | WA | - |
testcase_13 | AC | 2 ms
4,376 KB |
ソースコード
import strutils, sequtils, algorithm const n = 3 var h, w = newSeq[int](n) dic = newSeq[int]() proc echo_name(i: int) = echo ('A'.int + i).chr dic.add i for i in 0 ..< n: (h[i], w[i]) = stdin.readLine.split.map parseInt for hv in h.sorted(cmp, Descending): if h.count(hv) == 1: let i = h.find(hv) echo_name i else: for wv in w.sorted(cmp): let j = w.find(wv) if j notin dic: echo_name j