結果
問題 | No.687 E869120 and Constructing Array 1 |
ユーザー |
![]() |
提出日時 | 2022-03-02 13:22:45 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 31 ms / 1,000 ms |
コード長 | 300 bytes |
コンパイル時間 | 186 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-07-16 06:41:37 |
合計ジャッジ時間 | 1,064 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 |
ソースコード
def a1plusa2(num):res = "{res1} {res2}"if num % 2 == 0:str = int(num / 2)res = res.format(res1=str ,res2= str)else:str1 = int(num / 2)str2 = int(num / 2 + 1)res = res.format(res1=str1,res2=str2)return resprint(a1plusa2(int(input())))