結果
| 問題 | 
                            No.207 世界のなんとか
                             | 
                    
| コンテスト | |
| ユーザー | 
                             Shizuku
                         | 
                    
| 提出日時 | 2020-03-09 13:23:40 | 
| 言語 | Fortran  (gFortran 14.2.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 5,000 ms | 
| コード長 | 313 bytes | 
| コンパイル時間 | 415 ms | 
| コンパイル使用メモリ | 31,872 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-11-07 21:02:26 | 
| 合計ジャッジ時間 | 1,362 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 19 | 
ソースコード
program t
implicit none
integer::A,B
integer::i
read*,A,B
do i=A,B
  if(IS(i).or.mod(i,3)==0)print"(I0)",i
end do
contains
logical recursive function IS(N)result(res)
  integer::N
  if(mod(N,10)==3)then
    res=.true.
  else if(N<=10)then
    res=.false.
  else
    res=IS(N/10)
  endif
end function
end program t
            
            
            
        
            
Shizuku