結果
問題 |
No.537 ユーザーID
|
ユーザー |
![]() |
提出日時 | 2017-06-30 22:56:10 |
言語 | Fortran (gFortran 14.2.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 661 bytes |
コンパイル時間 | 1,571 ms |
コンパイル使用メモリ | 31,616 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-04 20:57:14 |
合計ジャッジ時間 | 1,436 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 25 WA * 7 |
ソースコード
program main implicit none integer*8::i,j integer*8::N integer*8::a,b,aa,bb integer*8::aaa,bbb integer*8::total=0 read *,N do i=1,INT(sqrt(real(N))) if(MOD(N,i).ne.0) cycle a = i b = N/i aa = a+roundup(a)*b bb = a*roundup(b)+b ! print *, a,b,aa,bb if(aa.eq.bb) then aa = a*roundup(b)*b total = total + 1 else total = total + 2 end if end do print '(i0)', total contains function roundup(a) result(aa) integer*8::a,aa,tmp aa = 1 tmp = a do aa = aa*10 tmp = tmp/10 if(tmp.eq.0) exit end do end function roundup end program main