結果
問題 |
No.201 yukicoderじゃんけん
|
ユーザー |
|
提出日時 | 2018-04-04 22:44:49 |
言語 | Nim (2.2.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 352 bytes |
コンパイル時間 | 2,512 ms |
コンパイル使用メモリ | 66,404 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-30 05:44:47 |
合計ジャッジ時間 | 3,239 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 17 WA * 3 |
コンパイルメッセージ
/home/judge/data/code/Main.nim(2, 8) Warning: imported and not used: 'parseutils' [UnusedImport] /home/judge/data/code/Main.nim(1, 18) Warning: imported and not used: 'sequtils' [UnusedImport] /home/judge/data/code/Main.nim(1, 28) Warning: imported and not used: 'algorithm' [UnusedImport] /home/judge/data/code/Main.nim(1, 39) Warning: imported and not used: 'math' [UnusedImport]
ソースコード
import strutils, sequtils, algorithm, math import parseutils var aIn = readLine(stdin).split bIn = readLine(stdin).split a:tuple[name:string, point:string] b:tuple[name:string, point:string] a = (aIn[0], aIn[1]) b = (bIn[0], bIn[1]) if a.point == b.point: echo -1 elif max(a.point, b.point) == a.point: echo a.name else: echo b.name