結果
問題 |
No.1837 Same but Different
|
ユーザー |
![]() |
提出日時 | 2022-02-12 00:05:54 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 322 bytes |
コンパイル時間 | 94 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 11,264 KB |
最終ジャッジ日時 | 2024-06-27 22:46:00 |
合計ジャッジ時間 | 10,404 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+10 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=0 while sum(A)!=sum(B): if A[i]+1<10000: A[i]+=1 i+=1 else: i+=1 print(*A) print(*B)