結果
| 問題 |
No.337 P versus NP
|
| コンテスト | |
| ユーザー |
yoza
|
| 提出日時 | 2017-02-15 22:45:20 |
| 言語 | Vim script (v9.1) |
| 結果 |
AC
|
| 実行時間 | 12 ms / 2,000 ms |
| コード長 | 504 bytes |
| コンパイル時間 | 282 ms |
| コンパイル使用メモリ | 7,076 KB |
| 実行使用メモリ | 11,776 KB |
| 最終ジャッジ日時 | 2024-12-30 00:06:39 |
| 合計ジャッジ時間 | 2,374 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 23 |
ソースコード
function! s:output()
let this = {'lines': []}
function! this.append(line) abort
call add(self.lines, a:line)
endfunction
function! this.build() abort
return join(self.lines, "\n")
endfunction
return this
endfunction
function! s:main(input) abort
let o = s:output()
let [n, p] = map(split(a:input[0], ' '), 'str2nr(v:val)')
let r = (p == n * p) ? '=' : '!='
call o.append(r)
return o.build()
endfunction
let s:input = getline(1, '$')
enew
put =s:main(s:input)
2,$print
yoza