結果

問題 No.35 タイパー高橋
ユーザー s0j1sans0j1san
提出日時 2017-12-24 13:39:35
言語 Fortran
(gFortran 13.2.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 420 bytes
コンパイル時間 247 ms
コンパイル使用メモリ 26,676 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-08-22 18:00:11
合計ジャッジ時間 841 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,376 KB
testcase_01 AC 2 ms
4,376 KB
testcase_02 AC 2 ms
4,380 KB
testcase_03 AC 2 ms
4,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

program main
	implicit none
	integer n
	integer,allocatable,dimension(:)::t
	integer::wrong=0,collect=0
	character s*100,mu*100
	integer i
	read(*,*)n
	allocate(t(n))
	do i=1,n
		read(*,*)t(1),s
		if(len_trim(s)>(12*t(1)/1000))then
			collect=collect+12*t(1)/1000
			wrong=wrong+len_trim(s)-12*t(1)/1000
		else
			collect=collect+len_trim(s)
		endif
		s(1:100)=mu(1:100)
	enddo
	write(*,*)collect,wrong
end program main
0