結果
| 問題 | No.1129 Rating じゃんけん |
| ユーザー |
kou_kkk
|
| 提出日時 | 2023-10-06 12:39:55 |
| 言語 | Nim (2.2.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 331 bytes |
| コンパイル時間 | 2,623 ms |
| コンパイル使用メモリ | 61,316 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-26 15:22:41 |
| 合計ジャッジ時間 | 3,421 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 16 |
ソースコード
import strscans
let (_, a, b, c, d) = stdin.readAll.scanTuple"$i $i $i $i"
var result: string
case cmp(a, c)
of -1:
result = "tRue"
of 1:
result = "null"
else:
# 0 グー、1 チョキ、2 パー
if b == d:
result = "Draw"
elif b - d == 1 or b - d == -2:
result = "tRue"
else:
result = "null"
echo result
kou_kkk