結果
問題 |
No.1837 Same but Different
|
ユーザー |
![]() |
提出日時 | 2022-02-12 00:02:42 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 323 bytes |
コンパイル時間 | 205 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 11,264 KB |
最終ジャッジ日時 | 2024-06-27 22:40:24 |
合計ジャッジ時間 | 6,630 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 8 WA * 15 |
ソースコード
import sys input = sys.stdin.readline N=int(input()) A=[i*3 for i in range(N)] B=[i*3+4 for i in range(N)] i=-1 while sum(A)<=sum(B)-3: if A[i]+3<10000: A[i]+=3 else: i-=1 i=-1 while sum(A)!=sum(B): if A[i]+1<10000: A[i]+=1 i-=1 else: i-=1 print(*A) print(*B)