結果
問題 |
No.2451 Redistribute Integers
|
ユーザー |
![]() |
提出日時 | 2024-11-14 09:13:05 |
言語 | Go (1.23.4) |
結果 |
WA
|
実行時間 | - |
コード長 | 239 bytes |
コンパイル時間 | 12,350 ms |
コンパイル使用メモリ | 228,764 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-14 09:13:22 |
合計ジャッジ時間 | 14,002 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 WA * 8 |
ソースコード
package main import . "fmt" import . "os" import bf "bufio" func main() { rd:=bf.NewReader(Stdin) var a,b,n int Fscan(rd,&n,&a) for ;n>1;n-- { Fscan(rd,&b) d:=b-a if d/n*n!=d{ Println("No") return } } Println("Yes") }