Mercurial > hg > Game > Cerium
changeset 1271:ff23aec3d651 draft
changed print style
author | Daichi Toma <toma@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 20 Nov 2011 08:13:00 +0900 |
parents | a67d25aec253 |
children | 4e8c53b4c52a |
files | example/Miller_Rabin/ppe/PrintTask.cc example/Miller_Rabin/spe/PrintTask.cc |
diffstat | 2 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/example/Miller_Rabin/ppe/PrintTask.cc Sun Nov 20 08:09:26 2011 +0900 +++ b/example/Miller_Rabin/ppe/PrintTask.cc Sun Nov 20 08:13:00 2011 +0900 @@ -19,13 +19,14 @@ U64 size = ((U64)smanager->get_param(0)) >> 1; /* 出力する範囲 */ bool *input = (bool*)smanager->get_input(rbuf, 0); /* 出力する配列 */ - printf("%d\n",(int)2); + printf("%d ",(int)2); /* 素数の判定結果が1ならば出力する */ for (U64 i = 1; i < size; i++) { if ( input[i] == true ) { - printf("%llu\n",i*2+1); + printf("%llu ",i*2+1); } } + printf("\n"); return 0; }
--- a/example/Miller_Rabin/spe/PrintTask.cc Sun Nov 20 08:09:26 2011 +0900 +++ b/example/Miller_Rabin/spe/PrintTask.cc Sun Nov 20 08:13:00 2011 +0900 @@ -19,13 +19,14 @@ U64 size = ((U64)smanager->get_param(0)) >> 1; /* 出力する範囲 */ bool *input = (bool*)smanager->get_input(rbuf, 0); /* 出力する配列 */ - printf("%d\n",(int)2); + printf("%d ",(int)2); /* 素数の判定結果が1ならば出力する */ for (U64 i = 1; i < size; i++) { if ( input[i] == true ) { - printf("%llu\n",i*2+1); + printf("%llu ",i*2+1); } } + printf("\n"); return 0; }