結果
問題 |
No.2921 Seated in Classroom
|
ユーザー |
![]() |
提出日時 | 2024-10-12 16:52:56 |
言語 | Go (1.23.4) |
結果 |
WA
|
実行時間 | - |
コード長 | 340 bytes |
コンパイル時間 | 17,207 ms |
コンパイル使用メモリ | 239,544 KB |
実行使用メモリ | 8,240 KB |
最終ジャッジ日時 | 2024-10-12 16:53:22 |
合計ジャッジ時間 | 17,854 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 2 |
other | WA * 5 |
ソースコード
package main import "fmt" import "os" import "bufio" func main() { var t,n,m int64 sc := bufio.NewScanner(os.Stdin) sc.Scan() fmt.Sscan(sc.Text(), &t) for ;t>0;t-- { sc.Scan() fmt.Sscan(sc.Text(),&n,&m) if n >= m { fmt.Println((n+3)/4+1) } else { fmt.Println((n+m+7)/8+1) } } }