結果
問題 | No.537 ユーザーID |
ユーザー |
![]() |
提出日時 | 2017-06-30 23:01:33 |
言語 | Fortran (gFortran 14.2.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 617 bytes |
コンパイル時間 | 777 ms |
コンパイル使用メモリ | 32,384 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-04 21:04:28 |
合計ジャッジ時間 | 4,381 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 15 RE * 17 |
ソースコード
program mainimplicit noneinteger*8::i,jinteger*8::Ninteger*8::a,b,aa,bbinteger*8::aaa,bbbinteger*8::total=0integer*1::hist(1000000)data hist/1000000*0/read *,Ndo i=1,INT(sqrt(real(N)))if(MOD(N,i).ne.0) cyclea = ib = N/iaa = a+roundup(a)*bbb = a*roundup(b)+bhist(aa)=1hist(bb)=1! print *,aa,bbend doprint '(i0)', SUM(hist)containsfunction roundup(a) result(aa)integer*8::a,aa,tmpaa = 1tmp = adoaa = aa*10tmp = tmp/10if(tmp.eq.0) exitend doend function roundupend program main