結果
問題 | No.2469 Umbrella Queries |
ユーザー |
|
提出日時 | 2024-04-24 17:10:08 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 250 ms / 2,000 ms |
コード長 | 128 bytes |
コンパイル時間 | 202 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 12,160 KB |
最終ジャッジ日時 | 2024-11-07 01:53:40 |
合計ジャッジ時間 | 1,324 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 1 |
コンパイルメッセージ
Main.rb:2: warning: assigned but unused variable - u Syntax OK
ソースコード
t = readline().to_ifor u in 1..t don = readline().to_iif n % 2 == 0puts n / 2 * (n - 2)elseputs 0endend