結果
| 問題 |
No.392 2分木をたどれ
|
| コンテスト | |
| ユーザー |
jj
|
| 提出日時 | 2016-12-14 22:18:48 |
| 言語 | Fortran (gFortran 14.2.0) |
| 結果 |
CE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 357 bytes |
| コンパイル時間 | 143 ms |
| コンパイル使用メモリ | 20,736 KB |
| 最終ジャッジ日時 | 2024-11-30 07:41:51 |
| 合計ジャッジ時間 | 538 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
コンパイルメッセージ
Main.f90:16:13:
16 | print *,
| 1
Error: Comma after * at (1) not allowed without I/O list
Main.f90:11:38:
11 | write(*,'(a)',advance='no'),'R'
| 1
Warning: Legacy Extension: Comma before i/o item list at (1)
Main.f90:13:38:
13 | write(*,'(a)',advance='no'),'L'
| 1
Warning: Legacy Extension: Comma before i/o item list at (1)
ソースコード
program main
implicit none
integer::a,m,i,j,bits
read *,m
do i=1,m
read *, a
a = a + 1
bits=BIT_SIZE(a) - LEADZ(a) - 2
do j=bits,0,-1
if(BTEST(a, j)) then
write(*,'(a)',advance='no'),'R'
else
write(*,'(a)',advance='no'),'L'
end if
end do
print *,
end do
end program main
jj