結果
問題 |
No.83 最大マッチング
|
ユーザー |
|
提出日時 | 2018-03-30 17:07:15 |
言語 | Nim (2.2.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 265 bytes |
コンパイル時間 | 2,487 ms |
コンパイル使用メモリ | 65,828 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-30 05:42:18 |
合計ジャッジ時間 | 3,001 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
コンパイルメッセージ
/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():string = if n == 3: return "7" elif n mod 2 == 0: return ("1".repeat(n div 2)) else: return ("7" & "1".repeat((n div 2) - 1)) echo main()