結果

問題 No.784 「,(カンマ)」
ユーザー むらためむらため
提出日時 2019-02-11 03:37:33
言語 Nim
(2.0.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 366 bytes
コンパイル時間 3,292 ms
コンパイル使用メモリ 68,072 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-09-14 11:53:45
合計ジャッジ時間 3,805 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,376 KB
testcase_01 AC 2 ms
4,380 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 2 ms
4,376 KB
testcase_07 AC 2 ms
4,376 KB
testcase_08 AC 1 ms
4,376 KB
testcase_09 AC 1 ms
4,376 KB
testcase_10 AC 2 ms
4,380 KB
testcase_11 AC 2 ms
4,376 KB
testcase_12 AC 2 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

proc getchar_unlocked():char {. importc:"getchar_unlocked",header: "<stdio.h>" ,discardable.}
proc putchar_unlocked(c:char){. importc:"putchar_unlocked",header: "<stdio.h>" .}
setStdIoUnbuffered()
let S = stdin.readLine()
if S.len <= 3: quit S,0
for i,s in S:
  if (S.len - i) mod 3 == 0 and i != 0: putchar_unlocked(',')
  putchar_unlocked(s)
putchar_unlocked('\n')
0