結果
| 問題 |
No.83 最大マッチング
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-03-30 17:06:06 |
| 言語 | Nim (2.2.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 311 bytes |
| コンパイル時間 | 2,866 ms |
| コンパイル使用メモリ | 65,904 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-30 05:41:46 |
| 合計ジャッジ時間 | 3,046 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 6 RE * 4 |
コンパイルメッセージ
/home/judge/data/code/Main.nim(1, 8) Warning: imported and not used: 'sequtils' [UnusedImport] /home/judge/data/code/Main.nim(1, 39) Warning: imported and not used: 'math' [UnusedImport] /home/judge/data/code/Main.nim(1, 28) Warning: imported and not used: 'algorithm' [UnusedImport]
ソースコード
import sequtils, strutils, algorithm, math
var n = readLine(stdin).parseInt
proc main():int =
if n == 3:
return 7
elif n == 5:
return 71
elif n mod 2 == 0:
return parseInt("1".repeat(n div 2))
else:
return parseInt("7" & "1".repeat((n div 2) - 1))
echo main()