結果
問題 | No.312 置換処理 |
ユーザー |
![]() |
提出日時 | 2016-09-11 17:02:45 |
言語 | Fortran (gFortran 14.2.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 463 bytes |
コンパイル時間 | 558 ms |
コンパイル使用メモリ | 32,768 KB |
実行使用メモリ | 10,240 KB |
最終ジャッジ日時 | 2024-11-17 03:31:18 |
合計ジャッジ時間 | 1,488 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 26 WA * 19 |
ソースコード
program mainimplicit noneinteger*8::N,org,upper,i,jinteger*8,allocatable::furui(:)read *,Norg = Ndoif(MOD(N,2).eq.1) exitN = N/2end doupper = INT(SQRT(DBLE(N)+1))allocate(furui(3:upper))furui = 0do i=3,upper,2if(furui(i).ne.0) cycleif(MOD(N,i).eq.0) thenprint '(i0)',ireturnend ifdo j=i+i,upper,ifurui(j) = 1end doend doprint '(i0)',orgend program main