結果

問題 No.2921 Seated in Classroom
ユーザー 転生チートなし転生チートなし
提出日時 2024-10-12 16:52:56
言語 Go
(1.22.1)
結果
WA  
実行時間 -
コード長 340 bytes
コンパイル時間 17,207 ms
コンパイル使用メモリ 239,544 KB
実行使用メモリ 8,240 KB
最終ジャッジ日時 2024-10-12 16:53:22
合計ジャッジ時間 17,854 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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)
		}
		
		
		
		
		
		
		
	
		
	}
	
}
0